Website : rimsha.abasa.com
backdoor
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
canvas
/
log
/
Filename :
production.log
back
Copy
# Logfile created on 2024-08-27 19:23:08 +0200 by logger.rb/v1.6.0 [- -] Reading app-canvas/data/secrets from vault [- -] [1m[35m (34.9ms)[0m [1m[34mSELECT * FROM unnest(current_schemas(false))[0m [- -] Unable to read setting: PG::UndefinedTable: ERROR: relation "public.settings" does not exist LINE 10: WHERE a.attrelid = '"public"."settings"'::regclass ^ [- -] Unable to read setting: PG::UndefinedTable: ERROR: relation "public.settings" does not exist LINE 10: WHERE a.attrelid = '"public"."settings"'::regclass ^ [- -] Unable to read setting: PG::UndefinedTable: ERROR: relation "public.settings" does not exist LINE 10: WHERE a.attrelid = '"public"."settings"'::regclass ^ [- -] Unable to read setting: PG::UndefinedTable: ERROR: relation "public.settings" does not exist LINE 10: WHERE a.attrelid = '"public"."settings"'::regclass ^ [- -] Unable to read setting: PG::UndefinedTable: ERROR: relation "public.settings" does not exist LINE 10: WHERE a.attrelid = '"public"."settings"'::regclass ^ [- -] Initializing the Sentry background worker with 5 threads [- -] Unable to read setting: PG::UndefinedTable: ERROR: relation "public.settings" does not exist LINE 10: WHERE a.attrelid = '"public"."settings"'::regclass ^ [- -] [1m[36mSQL (31.6ms)[0m [1m[35mCREATE TABLE "public"."schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m [- -] [1m[36mSQL (4.7ms)[0m [1m[35mCREATE TABLE "public"."ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (1.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'migrator_advisory_lock_id' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Create (1.5ms)[0m [1m[32mINSERT INTO "public"."ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('migrator_advisory_lock_id', 2056879866724502505, '2024-08-27 17:23:18.635213', '2024-08-27 17:23:18.635221') RETURNING "key"[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(2056879866724502505)[0m [- -] [1m[36mSQL ActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "public"."schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [- -] [1m[36mSQL (30.4ms)[0m [1m[35mCREATE COLLATION public."und-u-kn-true" (LOCALE='und-u-kn-true', PROVIDER='icu', DETERMINISTIC=false)[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE COLLATION public."ar-u-kn-true" (LOCALE='ar-u-kn-true', PROVIDER='icu', DETERMINISTIC=false)[0m [- -] [1m[36mSQL (0.8ms)[0m [1m[35mCREATE COLLATION public."cy-u-kn-true" (LOCALE='cy-u-kn-true', PROVIDER='icu', DETERMINISTIC=false)[0m [- -] [1m[36mSQL (1.1ms)[0m [1m[35mCREATE COLLATION public."da-u-kn-true" (LOCALE='da-u-kn-true', PROVIDER='icu', DETERMINISTIC=false)[0m [- -] [1m[36mSQL (1.2ms)[0m [1m[35mCREATE COLLATION public."el-u-kn-true" (LOCALE='el-u-kn-true', PROVIDER='icu', DETERMINISTIC=false)[0m [- -] [1m[36mSQL (1.2ms)[0m [1m[35mCREATE COLLATION public."es-ES-u-kn-true" (LOCALE='es-ES-u-kn-true', PROVIDER='icu', DETERMINISTIC=false)[0m [- -] [1m[36mSQL (0.8ms)[0m [1m[35mCREATE COLLATION public."es-u-kn-true" (LOCALE='es-u-kn-true', PROVIDER='icu', DETERMINISTIC=false)[0m [- -] [1m[36mSQL (1.1ms)[0m [1m[35mCREATE COLLATION public."fa-u-kn-true" (LOCALE='fa-u-kn-true', PROVIDER='icu', DETERMINISTIC=false)[0m [- -] [1m[36mSQL (0.9ms)[0m [1m[35mCREATE COLLATION public."fi-u-kn-true" (LOCALE='fi-u-kn-true', PROVIDER='icu', DETERMINISTIC=false)[0m [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE COLLATION public."fr-CA-u-kn-true" (LOCALE='fr-CA-u-kn-true', PROVIDER='icu', DETERMINISTIC=false)[0m [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE COLLATION public."he-u-kn-true" (LOCALE='he-u-kn-true', PROVIDER='icu', DETERMINISTIC=false)[0m [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE COLLATION public."hi-u-kn-true" (LOCALE='hi-u-kn-true', PROVIDER='icu', DETERMINISTIC=false)[0m [- -] [1m[36mSQL (0.9ms)[0m [1m[35mCREATE COLLATION public."hu-u-kn-true" (LOCALE='hu-u-kn-true', PROVIDER='icu', DETERMINISTIC=false)[0m [- -] [1m[36mSQL (0.8ms)[0m [1m[35mCREATE COLLATION public."hy-u-kn-true" (LOCALE='hy-u-kn-true', PROVIDER='icu', DETERMINISTIC=false)[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE COLLATION public."is-u-kn-true" (LOCALE='is-u-kn-true', PROVIDER='icu', DETERMINISTIC=false)[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE COLLATION public."ja-u-kn-true" (LOCALE='ja-u-kn-true', PROVIDER='icu', DETERMINISTIC=false)[0m [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE COLLATION public."ko-u-kn-true" (LOCALE='ko-u-kn-true', PROVIDER='icu', DETERMINISTIC=false)[0m [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE COLLATION public."nb-u-kn-true" (LOCALE='nb-u-kn-true', PROVIDER='icu', DETERMINISTIC=false)[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE COLLATION public."nn-u-kn-true" (LOCALE='nn-u-kn-true', PROVIDER='icu', DETERMINISTIC=false)[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE COLLATION public."pl-u-kn-true" (LOCALE='pl-u-kn-true', PROVIDER='icu', DETERMINISTIC=false)[0m [- -] [1m[36mSQL (0.8ms)[0m [1m[35mCREATE COLLATION public."ru-u-kn-true" (LOCALE='ru-u-kn-true', PROVIDER='icu', DETERMINISTIC=false)[0m [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE COLLATION public."sl-u-kn-true" (LOCALE='sl-u-kn-true', PROVIDER='icu', DETERMINISTIC=false)[0m [- -] [1m[36mSQL (0.9ms)[0m [1m[35mCREATE COLLATION public."sv-u-kn-true" (LOCALE='sv-u-kn-true', PROVIDER='icu', DETERMINISTIC=false)[0m [- -] [1m[36mSQL (1.0ms)[0m [1m[35mCREATE COLLATION public."th-u-kn-true" (LOCALE='th-u-kn-true', PROVIDER='icu', DETERMINISTIC=false)[0m [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE COLLATION public."tr-u-kn-true" (LOCALE='tr-u-kn-true', PROVIDER='icu', DETERMINISTIC=false)[0m [- -] [1m[36mSQL (0.8ms)[0m [1m[35mCREATE COLLATION public."uk-u-kn-true" (LOCALE='uk-u-kn-true', PROVIDER='icu', DETERMINISTIC=false)[0m [- -] [1m[36mSQL (0.9ms)[0m [1m[35mCREATE COLLATION public."vi-u-kn-true" (LOCALE='vi-u-kn-true', PROVIDER='icu', DETERMINISTIC=false)[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE COLLATION public."zh-Hans-u-kn-true" (LOCALE='zh-Hans-u-kn-true', PROVIDER='icu', DETERMINISTIC=false)[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE COLLATION public."zh-Hant-u-kn-true" (LOCALE='zh-Hant-u-kn-true', PROVIDER='icu', DETERMINISTIC=false)[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Create (1.1ms)[0m [1m[32mINSERT INTO "public"."ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'production', '2024-08-27 17:23:18.799092', '2024-08-27 17:23:18.799098') RETURNING "key"[0m [- -] [1m[36mSQL (17.3ms)[0m [1m[34mSELECT 1 FROM pg_available_extensions WHERE name='vector'[0m [- -] [1m[36mSQL (2.5ms)[0m [1m[34mSELECT 1 FROM pg_available_extensions WHERE name='vector'[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[34mSELECT 1 FROM pg_available_extensions WHERE name='vector'[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[34mSELECT 1 FROM pg_available_extensions WHERE name='vector'[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[34mSELECT 1 FROM pg_available_extensions WHERE name='vector'[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[34mSELECT 1 FROM pg_available_extensions WHERE name='vector'[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[34mSELECT 1 FROM pg_available_extensions WHERE name='vector'[0m [- -] Migrating to ValidateMigrationIntegrity (20101201000090) [- -] [1m[36mSQL ActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "public"."schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (1.2ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20101201000090') RETURNING "version"[0m [- -] Migrating to InitCanvasDb (20101210192618) [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL (2.6ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS pg_collkey SCHEMA public[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[31mROLLBACK AND CHAIN[0m [- -] [1m[36mSQL (32.2ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS pg_trgm SCHEMA public[0m [- -] [1m[36mSQL (3.5ms)[0m [1m[35mCREATE FUNCTION "public"."setting_as_int"( IN p_setting TEXT ) RETURNS INT4 as $$ DECLARE v_text text; v_int8 int8; BEGIN v_text := current_setting( p_setting, true ); IF v_text IS NULL THEN RETURN NULL; END IF; IF NOT v_text ~ '^-?[0-9]{1,10}$' THEN RETURN NULL; END IF; v_int8 := v_text::INT8; IF v_int8 > 2147483647 OR v_int8 < -2147483648 THEN RETURN NULL; END IF; RETURN v_int8::int4; END; $$ language plpgsql;[0m [- -] [1m[36mSQL (0.8ms)[0m [1m[35mCREATE FUNCTION "public"."guard_excessive_updates"() RETURNS TRIGGER AS $BODY$ DECLARE record_count integer; max_record_count integer; BEGIN SELECT count(*) FROM oldtbl INTO record_count; max_record_count := COALESCE(setting_as_int('inst.max_update_limit.' || TG_TABLE_NAME), setting_as_int('inst.max_update_limit'), '1000'); IF record_count > max_record_count THEN IF current_setting('inst.max_update_fail', true) IS NOT DISTINCT FROM 'true' THEN RAISE EXCEPTION 'guard_excessive_updates: % to %.% failed', TG_OP, TG_TABLE_SCHEMA, TG_TABLE_NAME USING DETAIL = 'Would update ' || record_count || ' records but max is ' || max_record_count || ', orig query: ' || current_query(); ELSE RAISE WARNING 'guard_excessive_updates: % to %.% was dangerous', TG_OP, TG_TABLE_SCHEMA, TG_TABLE_NAME USING DETAIL = 'Updated ' || record_count || ' records but threshold is ' || max_record_count || ', orig query: ' || current_query(); END IF; END IF; RETURN NULL; END $BODY$ LANGUAGE plpgsql;[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35m ALTER FUNCTION "public"."guard_excessive_updates"() SET search_path TO public [0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.8ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Create (0.4ms)[0m [1m[32mINSERT INTO "public"."ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('guard_dangerous_changes_installed', 'true', '2024-08-27 17:23:18.978822', '2024-08-27 17:23:18.978827') RETURNING "key"[0m [- -] [1m[36mSQL (13.3ms)[0m [1m[35mCREATE TABLE "public"."accounts" ("id" bigserial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "workflow_state" character varying(255) DEFAULT 'active' NOT NULL, "deleted_at" timestamp, "parent_account_id" bigint CONSTRAINT "fk_rails_add3a59cd7" REFERENCES "public"."accounts" ("id"), "sis_source_id" character varying(255), "sis_batch_id" bigint, "current_sis_batch_id" bigint, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_5de7ad5dec" REFERENCES "public"."accounts" ("id") DEFERRABLE INITIALLY IMMEDIATE, "last_successful_sis_batch_id" bigint, "membership_types" character varying(255), "default_time_zone" character varying(255), "external_status" character varying(255) DEFAULT 'active', "storage_quota" bigint, "default_storage_quota" bigint, "enable_user_notes" boolean DEFAULT FALSE, "allowed_services" character varying(255), "turnitin_pledge" text, "turnitin_comments" text, "turnitin_account_id" character varying(255), "turnitin_salt" character varying(255), "turnitin_crypted_secret" character varying(255), "show_section_name_as_course_name" boolean DEFAULT FALSE, "allow_sis_import" boolean DEFAULT FALSE, "equella_endpoint" character varying(255), "settings" text, "uuid" character varying(255), "default_locale" character varying(255), "stuck_sis_fields" text, "default_user_storage_quota" bigint, "lti_guid" character varying(255), "default_group_storage_quota" bigint, "turnitin_host" character varying(255), "integration_id" character varying(255), "lti_context_id" character varying(255), "brand_config_md5" character varying(32), "turnitin_originality" character varying(255), "account_calendar_subscription_type" character varying(255) DEFAULT 'manual' NOT NULL, "latest_outcome_import_id" bigint, "course_template_id" bigint, "account_calendar_visible" boolean DEFAULT FALSE NOT NULL, "grading_standard_id" bigint)[0m [- -] [1m[36mSQL (2.5ms)[0m [1m[35mCREATE INDEX "index_accounts_on_sis_batch_id" ON "public"."accounts" ("sis_batch_id") WHERE sis_batch_id IS NOT NULL[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_accounts_on_uuid" ON "public"."accounts" ("uuid")[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_accounts_on_lti_context_id" ON "public"."accounts" ("lti_context_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_accounts_on_brand_config_md5" ON "public"."accounts" ("brand_config_md5") WHERE brand_config_md5 IS NOT NULL[0m [- -] [1m[36mSQL (2.6ms)[0m [1m[35mCREATE INDEX "index_accounts_on_account_calendar_subscription_type" ON "public"."accounts" ("account_calendar_subscription_type") WHERE account_calendar_subscription_type <> 'manual'[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_accounts_on_latest_outcome_import_id" ON "public"."accounts" ("latest_outcome_import_id") WHERE latest_outcome_import_id IS NOT NULL[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE INDEX "index_accounts_on_course_template_id" ON "public"."accounts" ("course_template_id") WHERE course_template_id IS NOT NULL[0m [- -] [1m[36mSQL (3.3ms)[0m [1m[35mCREATE INDEX "index_accounts_on_grading_standard_id" ON "public"."accounts" ("grading_standard_id") WHERE grading_standard_id IS NOT NULL[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_accounts_replica_identity" ON "public"."accounts" ("root_account_id", "id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_accounts_on_name_and_parent_account_id" ON "public"."accounts" ("name", "parent_account_id")[0m [- -] [1m[36mSQL (1.2ms)[0m [1m[35mCREATE INDEX "index_accounts_on_parent_account_id_and_root_account_id" ON "public"."accounts" ("parent_account_id", "root_account_id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_accounts_on_sis_source_id_and_root_account_id" ON "public"."accounts" ("sis_source_id", "root_account_id") WHERE sis_source_id IS NOT NULL[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_accounts_on_integration_id" ON "public"."accounts" ("integration_id", "root_account_id") WHERE integration_id IS NOT NULL[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."accounts" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."accounts" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (3.5ms)[0m [1m[35mCREATE TABLE "public"."cloned_items" ("id" bigserial primary key, "original_item_id" bigint, "original_item_type" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."cloned_items" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."cloned_items" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.9ms)[0m [1m[35mCREATE TABLE "public"."courses" ("id" bigserial primary key, "name" character varying(255), "account_id" bigint NOT NULL CONSTRAINT "fk_rails_f9bb591b41" REFERENCES "public"."accounts" ("id"), "group_weighting_scheme" character varying(255), "workflow_state" character varying(255) NOT NULL, "uuid" character varying(255), "start_at" timestamp, "conclude_at" timestamp, "grading_standard_id" bigint, "is_public" boolean, "allow_student_wiki_edits" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "show_public_context_messages" boolean, "syllabus_body" text, "allow_student_forum_attachments" boolean DEFAULT FALSE, "default_wiki_editing_roles" character varying(255), "wiki_id" bigint, "allow_student_organized_groups" boolean DEFAULT TRUE, "course_code" character varying(255), "default_view" character varying(255), "abstract_course_id" bigint, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_8f8adab10c" REFERENCES "public"."accounts" ("id"), "enrollment_term_id" bigint NOT NULL, "sis_source_id" character varying(255), "sis_batch_id" bigint, "open_enrollment" boolean, "storage_quota" bigint, "tab_configuration" text, "allow_wiki_comments" boolean, "turnitin_comments" text, "self_enrollment" boolean, "license" character varying(255), "indexed" boolean, "restrict_enrollments_to_course_dates" boolean, "template_course_id" bigint CONSTRAINT "fk_rails_fa9ac2c08c" REFERENCES "public"."courses" ("id"), "locale" character varying(255), "settings" text, "replacement_course_id" bigint, "stuck_sis_fields" text, "public_description" text, "self_enrollment_code" character varying(255), "self_enrollment_limit" integer, "integration_id" character varying(255), "time_zone" character varying(255), "lti_context_id" character varying(255), "turnitin_id" bigint, "show_announcements_on_home_page" boolean, "home_page_announcement_limit" integer, "latest_outcome_import_id" bigint, "grade_passback_setting" character varying(255), "template" boolean DEFAULT FALSE NOT NULL, "homeroom_course" boolean DEFAULT FALSE NOT NULL, "sync_enrollments_from_homeroom" boolean DEFAULT FALSE NOT NULL, "homeroom_course_id" bigint, "deleted_at" timestamp(6))[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_courses_on_account_id" ON "public"."courses" ("account_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_courses_on_uuid" ON "public"."courses" ("uuid")[0m [- -] [1m[36mSQL (2.7ms)[0m [1m[35mCREATE INDEX "index_courses_on_wiki_id" ON "public"."courses" ("wiki_id") WHERE wiki_id IS NOT NULL[0m [- -] [1m[36mSQL (4.0ms)[0m [1m[35mCREATE INDEX "index_courses_on_abstract_course_id" ON "public"."courses" ("abstract_course_id") WHERE abstract_course_id IS NOT NULL[0m [- -] [1m[36mSQL (13.6ms)[0m [1m[35mCREATE INDEX "index_courses_on_enrollment_term_id" ON "public"."courses" ("enrollment_term_id")[0m [- -] [1m[36mSQL (5.9ms)[0m [1m[35mCREATE INDEX "index_courses_on_sis_batch_id" ON "public"."courses" ("sis_batch_id") WHERE sis_batch_id IS NOT NULL[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE INDEX "index_courses_on_template_course_id" ON "public"."courses" ("template_course_id")[0m [- -] [1m[36mSQL (22.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_self_enrollment_code" ON "public"."courses" ("self_enrollment_code") WHERE self_enrollment_code IS NOT NULL[0m [- -] [1m[36mSQL (6.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_lti_context_id" ON "public"."courses" ("lti_context_id")[0m [- -] [1m[36mSQL (5.0ms)[0m [1m[35mCREATE INDEX "index_courses_on_latest_outcome_import_id" ON "public"."courses" ("latest_outcome_import_id") WHERE latest_outcome_import_id IS NOT NULL[0m [- -] [1m[36mSQL (3.3ms)[0m [1m[35mCREATE INDEX "index_courses_on_homeroom_course" ON "public"."courses" ("homeroom_course") WHERE "homeroom_course"[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE INDEX "index_courses_on_sync_enrollments_from_homeroom" ON "public"."courses" ("sync_enrollments_from_homeroom") WHERE "sync_enrollments_from_homeroom"[0m [- -] [1m[36mSQL (2.9ms)[0m [1m[35mCREATE INDEX "index_courses_on_homeroom_course_id" ON "public"."courses" ("homeroom_course_id") WHERE homeroom_course_id IS NOT NULL[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_replica_identity" ON "public"."courses" ("root_account_id", "id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_sis_source_id_and_root_account_id" ON "public"."courses" ("sis_source_id", "root_account_id") WHERE sis_source_id IS NOT NULL[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_gin_trgm_courses_composite_search" ON "public"."courses" USING gin (( coalesce(lower(name), '') || ' ' || coalesce(lower(sis_source_id), '') || ' ' || coalesce(lower(course_code), '') ) public.gin_trgm_ops)[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_integration_id" ON "public"."courses" ("integration_id", "root_account_id") WHERE integration_id IS NOT NULL[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."courses" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."courses" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (4.8ms)[0m [1m[35mCREATE TABLE "public"."sis_batches" ("id" bigserial primary key, "account_id" bigint NOT NULL, "ended_at" timestamp, "workflow_state" character varying(255) NOT NULL, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "attachment_id" bigint, "progress" integer, "processing_errors" text, "processing_warnings" text, "batch_mode" boolean, "batch_mode_term_id" bigint, "options" text, "user_id" bigint, "started_at" timestamp, "diffing_data_set_identifier" character varying(255), "diffing_remaster" boolean, "generated_diff_id" bigint, "errors_attachment_id" bigint, "change_threshold" integer, "diffing_threshold_exceeded" boolean DEFAULT FALSE NOT NULL, "job_ids" bigint[] DEFAULT '{}' NOT NULL)[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_sis_batches_on_attachment_id" ON "public"."sis_batches" ("attachment_id")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_sis_batches_on_batch_mode_term_id" ON "public"."sis_batches" ("batch_mode_term_id") WHERE batch_mode_term_id IS NOT NULL[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_sis_batches_on_user_id" ON "public"."sis_batches" ("user_id") WHERE user_id IS NOT NULL[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_sis_batches_on_errors_attachment_id" ON "public"."sis_batches" ("errors_attachment_id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_sis_batches_account_id_created_at" ON "public"."sis_batches" ("account_id", "created_at")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_sis_batches_diffing" ON "public"."sis_batches" ("account_id", "diffing_data_set_identifier", "created_at")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_sis_batches_workflow_state_for_accounts" ON "public"."sis_batches" ("account_id", "workflow_state", "created_at")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."sis_batches" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."sis_batches" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.1ms)[0m [1m[35mCREATE TABLE "public"."users" ("id" bigserial primary key, "name" character varying(255), "sortable_name" character varying(255), "workflow_state" character varying(255) NOT NULL, "time_zone" character varying(255), "uuid" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "avatar_image_url" character varying(255), "avatar_image_source" character varying(255), "avatar_image_updated_at" timestamp, "phone" character varying(255), "school_name" character varying(255), "school_position" character varying(255), "short_name" character varying(255), "deleted_at" timestamp, "show_user_services" boolean DEFAULT TRUE, "page_views_count" integer DEFAULT 0, "reminder_time_for_due_dates" integer DEFAULT 172800, "reminder_time_for_grading" integer DEFAULT 0, "storage_quota" bigint, "visible_inbox_types" character varying(255), "last_user_note" timestamp, "subscribe_to_emails" boolean, "features_used" text, "preferences" text, "avatar_state" character varying(255), "locale" character varying(255), "browser_locale" character varying(255), "unread_conversations_count" integer DEFAULT 0, "stuck_sis_fields" text, "public" boolean, "otp_secret_key_enc" character varying(255), "otp_secret_key_salt" character varying(255), "otp_communication_channel_id" bigint, "initial_enrollment_type" character varying(255), "crocodoc_id" integer, "last_logged_out" timestamp, "lti_context_id" character varying(255), "turnitin_id" bigint, "lti_id" text, "pronouns" character varying, "root_account_ids" bigint[] DEFAULT '{}' NOT NULL, "merged_into_user_id" bigint CONSTRAINT "fk_rails_a47cd9d666" REFERENCES "public"."users" ("id"))[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_users_on_workflow_state" ON "public"."users" ("workflow_state")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_unique_uuid" ON "public"."users" ("uuid")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_lti_context_id" ON "public"."users" ("lti_context_id")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_turnitin_id" ON "public"."users" ("turnitin_id") WHERE turnitin_id IS NOT NULL[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_unique_lti_id" ON "public"."users" ("lti_id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_users_on_merged_into_user_id" ON "public"."users" ("merged_into_user_id") WHERE merged_into_user_id IS NOT NULL[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_replica_identity" ON "public"."users" ("root_account_ids", "id")[0m [- -] [1m[36mSQL (1.2ms)[0m [1m[35mCREATE INDEX "index_users_on_avatar_state_and_avatar_image_updated_at" ON "public"."users" ("avatar_state", "avatar_image_updated_at")[0m [- -] [1m[36mSQL (0.8ms)[0m [1m[35mCREATE INDEX "index_gin_trgm_users_name" ON "public"."users" USING gin (lower(name) public.gin_trgm_ops)[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE INDEX "index_gin_trgm_users_short_name" ON "public"."users" USING gin (LOWER(short_name) public.gin_trgm_ops)[0m [- -] [1m[36mSQL (1.1ms)[0m [1m[35mCREATE INDEX "index_gin_trgm_users_name_active_only" ON "public"."users" USING gin (LOWER(name) public.gin_trgm_ops) WHERE workflow_state IN ('registered', 'pre_registered')[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_users_on_sortable_name" ON "public"."users" ((sortable_name COLLATE "public"."und-u-kn-true"), id)[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_active_users_on_id" ON "public"."users" ("id") WHERE workflow_state <> 'deleted'[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."users" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."users" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.2ms)[0m [1m[35mCREATE TABLE "public"."abstract_courses" ("id" bigserial primary key, "sis_source_id" character varying(255), "sis_batch_id" bigint CONSTRAINT "fk_rails_9c92877701" REFERENCES "public"."sis_batches" ("id"), "account_id" bigint NOT NULL CONSTRAINT "fk_rails_c38b94c5bc" REFERENCES "public"."accounts" ("id"), "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_3077d9a014" REFERENCES "public"."accounts" ("id"), "short_name" character varying(255), "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "enrollment_term_id" bigint NOT NULL, "workflow_state" character varying(255) NOT NULL, "stuck_sis_fields" text)[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_abstract_courses_on_sis_source_id" ON "public"."abstract_courses" ("sis_source_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_abstract_courses_on_sis_batch_id" ON "public"."abstract_courses" ("sis_batch_id") WHERE sis_batch_id IS NOT NULL[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_abstract_courses_on_account_id" ON "public"."abstract_courses" ("account_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_abstract_courses_on_enrollment_term_id" ON "public"."abstract_courses" ("enrollment_term_id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_abstract_courses_on_root_account_id_and_sis_source_id" ON "public"."abstract_courses" ("root_account_id", "sis_source_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."abstract_courses" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."abstract_courses" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (9.9ms)[0m [1m[35mCREATE TABLE "public"."access_tokens" ("id" bigserial primary key, "developer_key_id" bigint NOT NULL, "user_id" bigint CONSTRAINT "fk_rails_96fc070778" REFERENCES "public"."users" ("id"), "last_used_at" timestamp, "expires_at" timestamp, "purpose" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "crypted_token" character varying(255), "token_hint" character varying(255), "scopes" text, "remember_access" boolean, "crypted_refresh_token" character varying(255), "workflow_state" character varying DEFAULT 'active' NOT NULL, "root_account_id" bigint NOT NULL, "real_user_id" bigint CONSTRAINT "fk_rails_ecb5f23187" REFERENCES "public"."users" ("id"), "permanent_expires_at" timestamp)[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_access_tokens_on_user_id" ON "public"."access_tokens" ("user_id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_access_tokens_on_crypted_token" ON "public"."access_tokens" ("crypted_token")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_access_tokens_on_crypted_refresh_token" ON "public"."access_tokens" ("crypted_refresh_token")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_access_tokens_on_workflow_state" ON "public"."access_tokens" ("workflow_state")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_access_tokens_on_real_user_id" ON "public"."access_tokens" ("real_user_id") WHERE real_user_id IS NOT NULL[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_access_tokens_replica_identity" ON "public"."access_tokens" ("root_account_id", "id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_access_tokens_on_developer_key_id_and_last_used_at" ON "public"."access_tokens" ("developer_key_id", "last_used_at")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."access_tokens" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."access_tokens" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.7ms)[0m [1m[35mCREATE TABLE "public"."account_notifications" ("id" bigserial primary key, "subject" character varying(255), "icon" character varying(255) DEFAULT 'warning', "message" text, "account_id" bigint NOT NULL CONSTRAINT "fk_rails_9a3f0df4a1" REFERENCES "public"."accounts" ("id"), "user_id" bigint NOT NULL CONSTRAINT "fk_rails_f83172407d" REFERENCES "public"."users" ("id"), "start_at" timestamp NOT NULL, "end_at" timestamp NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "required_account_service" character varying(255), "months_in_display_cycle" integer, "domain_specific" boolean DEFAULT FALSE NOT NULL, "send_message" boolean DEFAULT FALSE NOT NULL, "messages_sent_at" timestamp)[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_account_notifications_on_user_id" ON "public"."account_notifications" ("user_id")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_account_notifications_by_account_and_timespan" ON "public"."account_notifications" ("account_id", "end_at", "start_at")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."account_notifications" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."account_notifications" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (3.6ms)[0m [1m[35mCREATE TABLE "public"."account_notification_roles" ("id" bigserial primary key, "account_notification_id" bigint NOT NULL CONSTRAINT "fk_rails_5948b12a95" REFERENCES "public"."account_notifications" ("id"), "role_id" bigint)[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE INDEX "index_account_notification_roles_only_on_role_id" ON "public"."account_notification_roles" ("role_id") WHERE role_id IS NOT NULL[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_account_notification_roles_on_role_id" ON "public"."account_notification_roles" ("account_notification_id", "role_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."account_notification_roles" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."account_notification_roles" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.7ms)[0m [1m[35mCREATE TABLE "public"."account_reports" ("id" bigserial primary key, "user_id" bigint NOT NULL CONSTRAINT "fk_rails_1ee483dd34" REFERENCES "public"."users" ("id"), "message" text, "account_id" bigint NOT NULL CONSTRAINT "fk_rails_865683f386" REFERENCES "public"."accounts" ("id"), "attachment_id" bigint, "workflow_state" character varying(255) DEFAULT 'created' NOT NULL, "report_type" character varying(255), "progress" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "parameters" text, "current_line" integer, "total_lines" integer, "start_at" timestamp, "end_at" timestamp, "job_ids" bigint[] DEFAULT '{}' NOT NULL)[0m [- -] [1m[36mSQL (1.2ms)[0m [1m[35mCREATE INDEX "index_account_reports_on_user_id" ON "public"."account_reports" ("user_id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_account_reports_on_attachment_id" ON "public"."account_reports" ("attachment_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_account_reports_latest_of_type_per_account" ON "public"."account_reports" ("account_id", "report_type", "created_at" DESC)[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."account_reports" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."account_reports" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.8ms)[0m [1m[35mCREATE TABLE "public"."account_report_runners" ("id" bigserial primary key, "account_report_id" bigint NOT NULL CONSTRAINT "fk_rails_e03a0118ae" REFERENCES "public"."account_reports" ("id"), "workflow_state" character varying(255) DEFAULT 'created' NOT NULL, "batch_items" character varying[] DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "started_at" timestamp, "ended_at" timestamp, "job_ids" bigint[] DEFAULT '{}' NOT NULL)[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_account_report_runners_on_account_report_id" ON "public"."account_report_runners" ("account_report_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."account_report_runners" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."account_report_runners" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.3ms)[0m [1m[35mCREATE TABLE "public"."account_report_rows" ("id" bigserial primary key, "account_report_id" bigint NOT NULL CONSTRAINT "fk_rails_bb695932fe" REFERENCES "public"."account_reports" ("id"), "account_report_runner_id" bigint NOT NULL CONSTRAINT "fk_rails_df404c1a41" REFERENCES "public"."account_report_runners" ("id"), "row_number" integer, "row" character varying[] DEFAULT '{}', "created_at" timestamp NOT NULL, "file" character varying)[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_account_report_rows_on_account_report_id" ON "public"."account_report_rows" ("account_report_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_account_report_rows_on_account_report_runner_id" ON "public"."account_report_rows" ("account_report_runner_id")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_account_report_rows_on_created_at" ON "public"."account_report_rows" ("created_at")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_account_report_rows_on_file" ON "public"."account_report_rows" ("file")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."account_report_rows" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."account_report_rows" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.4ms)[0m [1m[35mCREATE TABLE "public"."account_users" ("id" bigserial primary key, "account_id" bigint NOT NULL CONSTRAINT "fk_rails_c96445f213" REFERENCES "public"."accounts" ("id"), "user_id" bigint NOT NULL CONSTRAINT "fk_rails_685e030c15" REFERENCES "public"."users" ("id"), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "role_id" bigint NOT NULL, "workflow_state" character varying DEFAULT 'active' NOT NULL, "sis_batch_id" bigint, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_23b8e88a4b" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_account_users_on_account_id" ON "public"."account_users" ("account_id")[0m [- -] [1m[36mSQL (1.2ms)[0m [1m[35mCREATE INDEX "index_account_users_on_user_id" ON "public"."account_users" ("user_id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_account_users_on_role_id" ON "public"."account_users" ("role_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_account_users_on_workflow_state" ON "public"."account_users" ("workflow_state")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_account_users_on_sis_batch_id" ON "public"."account_users" ("sis_batch_id") WHERE sis_batch_id IS NOT NULL[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_account_users_replica_identity" ON "public"."account_users" ("root_account_id", "id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."account_users" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."account_users" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (4.5ms)[0m [1m[35mCREATE TABLE "public"."alerts" ("id" bigserial primary key, "context_id" bigint NOT NULL, "context_type" character varying(255) NOT NULL, "recipients" text NOT NULL, "repetition" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."alerts" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."alerts" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (3.0ms)[0m [1m[35mCREATE TABLE "public"."alert_criteria" ("id" bigserial primary key, "alert_id" bigint CONSTRAINT "fk_rails_f95d56943d" REFERENCES "public"."alerts" ("id"), "criterion_type" character varying(255), "threshold" float)[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_alert_criteria_on_alert_id" ON "public"."alert_criteria" ("alert_id") WHERE alert_id IS NOT NULL[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."alert_criteria" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."alert_criteria" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.2ms)[0m [1m[35mCREATE TABLE "public"."anonymous_or_moderation_events" ("id" bigserial primary key, "assignment_id" bigint NOT NULL, "user_id" bigint CONSTRAINT "fk_rails_8c95885a92" REFERENCES "public"."users" ("id"), "submission_id" bigint, "canvadoc_id" bigint, "event_type" character varying NOT NULL, "payload" jsonb DEFAULT '{}' NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "context_external_tool_id" bigint, "quiz_id" bigint)[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_anonymous_or_moderation_events_on_assignment_id" ON "public"."anonymous_or_moderation_events" ("assignment_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_anonymous_or_moderation_events_on_user_id" ON "public"."anonymous_or_moderation_events" ("user_id")[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE INDEX "index_anonymous_or_moderation_events_on_submission_id" ON "public"."anonymous_or_moderation_events" ("submission_id")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_anonymous_or_moderation_events_on_canvadoc_id" ON "public"."anonymous_or_moderation_events" ("canvadoc_id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_ame_on_context_external_tool_id" ON "public"."anonymous_or_moderation_events" ("context_external_tool_id") WHERE context_external_tool_id IS NOT NULL[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_anonymous_or_moderation_events_on_quiz_id" ON "public"."anonymous_or_moderation_events" ("quiz_id") WHERE quiz_id IS NOT NULL[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."anonymous_or_moderation_events" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."anonymous_or_moderation_events" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (4.3ms)[0m [1m[35mCREATE TABLE "public"."appointment_groups" ("id" bigserial primary key, "title" character varying(255), "description" text, "location_name" character varying(255), "location_address" character varying(255), "context_code" character varying(255), "sub_context_code" character varying(255), "workflow_state" character varying(255) NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "start_at" timestamp, "end_at" timestamp, "participants_per_appointment" integer, "max_appointments_per_participant" integer, "min_appointments_per_participant" integer DEFAULT 0, "participant_visibility" character varying(255), "allow_observer_signup" boolean DEFAULT FALSE NOT NULL)[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."appointment_groups" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."appointment_groups" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (4.2ms)[0m [1m[35mCREATE TABLE "public"."appointment_group_contexts" ("id" bigserial primary key, "appointment_group_id" bigint, "context_code" character varying(255), "context_id" bigint, "context_type" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_appointment_group_contexts_on_appointment_group_id" ON "public"."appointment_group_contexts" ("appointment_group_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."appointment_group_contexts" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."appointment_group_contexts" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (4.4ms)[0m [1m[35mCREATE TABLE "public"."appointment_group_sub_contexts" ("id" bigserial primary key, "appointment_group_id" bigint, "sub_context_id" bigint, "sub_context_type" character varying(255), "sub_context_code" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_appointment_group_sub_contexts_on_appointment_group_id" ON "public"."appointment_group_sub_contexts" ("appointment_group_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."appointment_group_sub_contexts" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."appointment_group_sub_contexts" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.2ms)[0m [1m[35mCREATE TABLE "public"."assessment_question_banks" ("id" bigserial primary key, "context_id" bigint, "context_type" character varying(255), "title" text, "workflow_state" character varying(255) NOT NULL, "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "migration_id" character varying(255), "root_account_id" bigint CONSTRAINT "fk_rails_f991f9b353" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (1.0ms)[0m [1m[35mCREATE INDEX "index_assessment_question_banks_on_root_account_id" ON "public"."assessment_question_banks" ("root_account_id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_on_aqb_on_context_id_and_context_type" ON "public"."assessment_question_banks" ("context_id", "context_type")[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_aqb_context_and_title" ON "public"."assessment_question_banks" ("context_id", "context_type", "title", "id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."assessment_question_banks" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."assessment_question_banks" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (2.8ms)[0m [1m[35mCREATE TABLE "public"."assessment_question_bank_users" ("id" bigserial primary key, "assessment_question_bank_id" bigint NOT NULL, "user_id" bigint NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "assessment_qbu_aqb_id" ON "public"."assessment_question_bank_users" ("assessment_question_bank_id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "assessment_qbu_u_id" ON "public"."assessment_question_bank_users" ("user_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."assessment_question_bank_users" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."assessment_question_bank_users" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.7ms)[0m [1m[35mCREATE TABLE "public"."assessment_questions" ("id" bigserial primary key, "name" text, "question_data" text, "context_id" bigint, "context_type" character varying(255), "workflow_state" character varying(255), "created_at" timestamp, "updated_at" timestamp, "assessment_question_bank_id" bigint, "deleted_at" timestamp, "migration_id" character varying(255), "position" integer, "root_account_id" bigint CONSTRAINT "fk_rails_2ea0ec3c6e" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_assessment_questions_on_root_account_id" ON "public"."assessment_questions" ("root_account_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "question_bank_id_and_position" ON "public"."assessment_questions" ("assessment_question_bank_id", "position")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."assessment_questions" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."assessment_questions" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.8ms)[0m [1m[35mCREATE TABLE "public"."assessment_requests" ("id" bigserial primary key, "rubric_assessment_id" bigint, "user_id" bigint NOT NULL CONSTRAINT "fk_rails_33d90b7c30" REFERENCES "public"."users" ("id"), "asset_id" bigint NOT NULL, "asset_type" character varying(255) NOT NULL, "assessor_asset_id" bigint NOT NULL, "assessor_asset_type" character varying(255) NOT NULL, "workflow_state" character varying(255) NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "uuid" character varying(255), "rubric_association_id" bigint, "assessor_id" bigint NOT NULL CONSTRAINT "fk_rails_c86f7bbc12" REFERENCES "public"."users" ("id"))[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_assessment_requests_on_rubric_assessment_id" ON "public"."assessment_requests" ("rubric_assessment_id")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_assessment_requests_on_user_id" ON "public"."assessment_requests" ("user_id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_assessment_requests_on_rubric_association_id" ON "public"."assessment_requests" ("rubric_association_id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_assessment_requests_on_assessor_id" ON "public"."assessment_requests" ("assessor_id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "aa_id_and_aa_type" ON "public"."assessment_requests" ("assessor_asset_id", "assessor_asset_type")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_assessment_requests_on_asset_id_and_asset_type" ON "public"."assessment_requests" ("asset_id", "asset_type")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."assessment_requests" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."assessment_requests" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.2ms)[0m [1m[35mCREATE TABLE "public"."asset_user_accesses" ("id" bigserial primary key, "asset_code" character varying(255), "asset_group_code" character varying(255), "user_id" bigint, "context_id" bigint, "context_type" character varying(255), "last_access" timestamp, "created_at" timestamp, "updated_at" timestamp, "asset_category" character varying(255), "view_score" float, "participate_score" float, "action_level" character varying(255), "display_name" text, "membership_type" character varying(255), "root_account_id" bigint NOT NULL)[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_asset_user_accesses_replica_identity" ON "public"."asset_user_accesses" ("root_account_id", "id")[0m [- -] [1m[36mSQL (2.5ms)[0m [1m[35mCREATE INDEX "index_asset_user_accesses_on_user_id_and_asset_code" ON "public"."asset_user_accesses" ("user_id", "asset_code")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_asset_user_accesses_on_ci_ct_ui_ua" ON "public"."asset_user_accesses" ("context_id", "context_type", "user_id", "updated_at")[0m [- -] [1m[36mSQL (3.3ms)[0m [1m[35mCREATE INDEX "index_asset_user_accesses_on_user_id_context_id_asset_code" ON "public"."asset_user_accesses" ("user_id", "context_id", "asset_code", "id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."asset_user_accesses" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."asset_user_accesses" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (3.4ms)[0m [1m[35mCREATE TABLE "public"."aua_logs_0" ("id" bigserial primary key, "asset_user_access_id" bigint NOT NULL, "created_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."aua_logs_0" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."aua_logs_0" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (2.7ms)[0m [1m[35mCREATE TABLE "public"."aua_logs_1" ("id" bigserial primary key, "asset_user_access_id" bigint NOT NULL, "created_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."aua_logs_1" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."aua_logs_1" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (3.0ms)[0m [1m[35mCREATE TABLE "public"."aua_logs_2" ("id" bigserial primary key, "asset_user_access_id" bigint NOT NULL, "created_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."aua_logs_2" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."aua_logs_2" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (2.9ms)[0m [1m[35mCREATE TABLE "public"."aua_logs_3" ("id" bigserial primary key, "asset_user_access_id" bigint NOT NULL, "created_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."aua_logs_3" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."aua_logs_3" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (2.7ms)[0m [1m[35mCREATE TABLE "public"."aua_logs_4" ("id" bigserial primary key, "asset_user_access_id" bigint NOT NULL, "created_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."aua_logs_4" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."aua_logs_4" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (3.0ms)[0m [1m[35mCREATE TABLE "public"."aua_logs_5" ("id" bigserial primary key, "asset_user_access_id" bigint NOT NULL, "created_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."aua_logs_5" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."aua_logs_5" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (3.0ms)[0m [1m[35mCREATE TABLE "public"."aua_logs_6" ("id" bigserial primary key, "asset_user_access_id" bigint NOT NULL, "created_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."aua_logs_6" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."aua_logs_6" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.2ms)[0m [1m[35mCREATE TABLE "public"."assignment_groups" ("id" bigserial primary key, "name" character varying(255), "rules" text, "default_assignment_name" character varying(255), "position" integer, "assignment_weighting_scheme" character varying(255), "group_weight" float, "context_id" bigint NOT NULL, "context_type" character varying(255) NOT NULL, "workflow_state" character varying(255) NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "cloned_item_id" bigint CONSTRAINT "fk_rails_2d906abe72" REFERENCES "public"."cloned_items" ("id"), "context_code" character varying(255), "migration_id" character varying(255), "sis_source_id" character varying(255), "integration_data" text, "root_account_id" bigint CONSTRAINT "fk_rails_9a6cbb6167" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE INDEX "index_assignment_groups_on_cloned_item_id" ON "public"."assignment_groups" ("cloned_item_id") WHERE cloned_item_id IS NOT NULL[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_assignment_groups_on_root_account_id" ON "public"."assignment_groups" ("root_account_id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_assignment_groups_on_context_id_and_context_type" ON "public"."assignment_groups" ("context_id", "context_type")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."assignment_groups" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."assignment_groups" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (11.3ms)[0m [1m[35mCREATE TABLE "public"."assignments" ("id" bigserial primary key, "title" character varying(255), "description" text, "due_at" timestamp, "unlock_at" timestamp, "lock_at" timestamp, "points_possible" float, "min_score" float, "max_score" float, "mastery_score" float, "grading_type" character varying(255), "submission_types" character varying(255), "workflow_state" character varying(255) DEFAULT 'published' NOT NULL, "context_id" bigint NOT NULL, "context_type" character varying(255) NOT NULL, "assignment_group_id" bigint, "grading_standard_id" bigint, "created_at" timestamp, "updated_at" timestamp, "group_category" character varying(255), "submissions_downloads" integer DEFAULT 0, "peer_review_count" integer DEFAULT 0, "peer_reviews_due_at" timestamp, "peer_reviews_assigned" boolean DEFAULT FALSE NOT NULL, "peer_reviews" boolean DEFAULT FALSE NOT NULL, "automatic_peer_reviews" boolean DEFAULT FALSE NOT NULL, "all_day" boolean DEFAULT FALSE NOT NULL, "all_day_date" date, "could_be_locked" boolean DEFAULT FALSE NOT NULL, "cloned_item_id" bigint CONSTRAINT "fk_rails_289e40e18c" REFERENCES "public"."cloned_items" ("id"), "position" integer, "migration_id" character varying(255), "grade_group_students_individually" boolean DEFAULT FALSE NOT NULL, "anonymous_peer_reviews" boolean DEFAULT FALSE NOT NULL, "time_zone_edited" character varying(255), "turnitin_enabled" boolean DEFAULT FALSE NOT NULL, "allowed_extensions" character varying(255), "turnitin_settings" text, "muted" boolean DEFAULT FALSE NOT NULL, "group_category_id" bigint, "freeze_on_copy" boolean DEFAULT FALSE NOT NULL, "copied" boolean DEFAULT FALSE NOT NULL, "only_visible_to_overrides" boolean DEFAULT FALSE NOT NULL, "post_to_sis" boolean DEFAULT FALSE NOT NULL, "integration_id" character varying(255), "integration_data" text, "turnitin_id" bigint, "moderated_grading" boolean DEFAULT FALSE NOT NULL, "grades_published_at" timestamp, "omit_from_final_grade" boolean DEFAULT FALSE NOT NULL, "vericite_enabled" boolean DEFAULT FALSE NOT NULL, "intra_group_peer_reviews" boolean DEFAULT FALSE NOT NULL, "lti_context_id" character varying, "anonymous_instructor_annotations" boolean DEFAULT FALSE NOT NULL, "duplicate_of_id" bigint CONSTRAINT "fk_rails_47a0621bf1" REFERENCES "public"."assignments" ("id"), "anonymous_grading" boolean DEFAULT FALSE, "graders_anonymous_to_graders" boolean DEFAULT FALSE, "grader_count" integer DEFAULT 0, "grader_comments_visible_to_graders" boolean DEFAULT TRUE, "grader_section_id" bigint, "final_grader_id" bigint CONSTRAINT "fk_rails_efc38ac892" REFERENCES "public"."users" ("id"), "grader_names_visible_to_final_grader" boolean DEFAULT TRUE, "duplication_started_at" timestamp, "importing_started_at" timestamp, "allowed_attempts" integer, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_b5ed4ab660" REFERENCES "public"."accounts" ("id"), "sis_source_id" character varying, "migrate_from_id" bigint, "settings" jsonb, "annotatable_attachment_id" bigint, "important_dates" boolean DEFAULT FALSE NOT NULL, "hide_in_gradebook" boolean DEFAULT FALSE NOT NULL, "ab_guid" character varying[] DEFAULT '{}' NOT NULL, "parent_assignment_id" bigint CONSTRAINT "fk_rails_5546acbfe8" REFERENCES "public"."assignments" ("id"), "type" character varying(255) DEFAULT 'Assignment' NOT NULL, "sub_assignment_tag" character varying(255), "has_sub_assignments" boolean DEFAULT FALSE NOT NULL)[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_assignments_on_workflow_state" ON "public"."assignments" ("workflow_state")[0m [- -] [1m[36mSQL (2.8ms)[0m [1m[35mCREATE INDEX "index_assignments_active" ON "public"."assignments" ("context_id") WHERE context_type='Course' AND workflow_state<>'deleted'[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_assignments_on_assignment_group_id" ON "public"."assignments" ("assignment_group_id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_assignments_on_grading_standard_id" ON "public"."assignments" ("grading_standard_id")[0m [- -] [1m[36mSQL (2.7ms)[0m [1m[35mCREATE INDEX "index_assignments_on_cloned_item_id" ON "public"."assignments" ("cloned_item_id") WHERE cloned_item_id IS NOT NULL[0m [- -] [1m[36mSQL (3.1ms)[0m [1m[35mCREATE INDEX "index_assignments_on_group_category_id" ON "public"."assignments" ("group_category_id") WHERE group_category_id IS NOT NULL[0m [- -] [1m[36mSQL (2.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_turnitin_id" ON "public"."assignments" ("turnitin_id") WHERE turnitin_id IS NOT NULL[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_lti_context_id" ON "public"."assignments" ("lti_context_id")[0m [- -] [1m[36mSQL (2.7ms)[0m [1m[35mCREATE INDEX "index_assignments_on_duplicate_of_id" ON "public"."assignments" ("duplicate_of_id") WHERE duplicate_of_id IS NOT NULL[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE INDEX "index_assignments_on_grader_section_id" ON "public"."assignments" ("grader_section_id") WHERE grader_section_id IS NOT NULL[0m [- -] [1m[36mSQL (2.6ms)[0m [1m[35mCREATE INDEX "index_assignments_on_final_grader_id" ON "public"."assignments" ("final_grader_id") WHERE final_grader_id IS NOT NULL[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE INDEX "index_assignments_on_duplication_started_at" ON "public"."assignments" ("duplication_started_at") WHERE duplication_started_at IS NOT NULL AND workflow_state = 'duplicating'[0m [- -] [1m[36mSQL (2.6ms)[0m [1m[35mCREATE INDEX "index_assignments_on_importing_started_at" ON "public"."assignments" ("importing_started_at") WHERE importing_started_at IS NOT NULL AND workflow_state = 'importing'[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_assignments_on_root_account_id" ON "public"."assignments" ("root_account_id")[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_assignments_on_migrate_from_id" ON "public"."assignments" ("migrate_from_id") WHERE migrate_from_id IS NOT NULL[0m [- -] [1m[36mSQL (2.7ms)[0m [1m[35mCREATE INDEX "index_assignments_on_annotatable_attachment_id" ON "public"."assignments" ("annotatable_attachment_id") WHERE annotatable_attachment_id IS NOT NULL[0m [- -] [1m[36mSQL (3.2ms)[0m [1m[35mCREATE INDEX "index_assignments_on_important_dates" ON "public"."assignments" ("important_dates") WHERE "important_dates"[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_assignments_on_parent_assignment_id" ON "public"."assignments" ("parent_assignment_id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "public"."assignments" ("context_id", "context_type")[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_sis_source_id_and_root_account_id" ON "public"."assignments" ("sis_source_id", "root_account_id") WHERE sis_source_id IS NOT NULL[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_assignments_duplicating_on_started_at" ON "public"."assignments" ("duplication_started_at") WHERE workflow_state = 'migrating' AND duplication_started_at IS NOT NULL[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."assignments" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."assignments" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.8ms)[0m [1m[35mCREATE TABLE "public"."assignment_configuration_tool_lookups" ("id" bigserial primary key, "assignment_id" bigint NOT NULL CONSTRAINT "fk_rails_73f7ea9f92" REFERENCES "public"."assignments" ("id"), "tool_id" bigint, "tool_type" character varying(255) NOT NULL, "subscription_id" character varying, "tool_product_code" character varying, "tool_vendor_code" character varying, "tool_resource_type_code" character varying, "context_type" character varying DEFAULT 'Account' NOT NULL)[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE INDEX "index_assignment_configuration_tool_lookups_on_assignment_id" ON "public"."assignment_configuration_tool_lookups" ("assignment_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_tool_lookup_on_tool_assignment_id" ON "public"."assignment_configuration_tool_lookups" ("tool_id", "tool_type", "assignment_id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_resource_codes_on_assignment_configuration_tool_lookups" ON "public"."assignment_configuration_tool_lookups" ("tool_product_code", "tool_vendor_code", "tool_resource_type_code")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."assignment_configuration_tool_lookups" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."assignment_configuration_tool_lookups" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (8.4ms)[0m [1m[35mCREATE TABLE "public"."assignment_overrides" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "assignment_id" bigint CONSTRAINT "fk_rails_58f8ee369b" REFERENCES "public"."assignments" ("id"), "assignment_version" integer, "set_type" character varying(255), "set_id" bigint, "title" character varying(255) NOT NULL, "workflow_state" character varying(255) NOT NULL, "due_at_overridden" boolean DEFAULT FALSE NOT NULL, "due_at" timestamp, "all_day" boolean, "all_day_date" date, "unlock_at_overridden" boolean DEFAULT FALSE NOT NULL, "unlock_at" timestamp, "lock_at_overridden" boolean DEFAULT FALSE NOT NULL, "lock_at" timestamp, "quiz_id" bigint, "quiz_version" integer, "root_account_id" bigint CONSTRAINT "fk_rails_4aaa63725e" REFERENCES "public"."accounts" ("id"), "context_module_id" bigint, "unassign_item" boolean DEFAULT FALSE NOT NULL, "wiki_page_id" bigint, "discussion_topic_id" bigint, "attachment_id" bigint, CONSTRAINT require_association CHECK (workflow_state='deleted' OR assignment_id IS NOT NULL OR quiz_id IS NOT NULL OR context_module_id IS NOT NULL OR wiki_page_id IS NOT NULL OR discussion_topic_id IS NOT NULL OR attachment_id IS NOT NULL))[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE INDEX "index_assignment_overrides_on_assignment_id" ON "public"."assignment_overrides" ("assignment_id")[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_assignment_overrides_on_set_type_and_set_id" ON "public"."assignment_overrides" ("set_type", "set_id")[0m [- -] [1m[36mSQL (2.8ms)[0m [1m[35mCREATE INDEX "index_assignment_overrides_due_at_when_overridden" ON "public"."assignment_overrides" ("due_at") WHERE "due_at_overridden"[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE INDEX "index_assignment_overrides_on_quiz_id" ON "public"."assignment_overrides" ("quiz_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_assignment_overrides_on_root_account_id" ON "public"."assignment_overrides" ("root_account_id")[0m [- -] [1m[36mSQL (3.2ms)[0m [1m[35mCREATE INDEX "index_assignment_overrides_on_context_module_id" ON "public"."assignment_overrides" ("context_module_id") WHERE context_module_id IS NOT NULL[0m [- -] [1m[36mSQL (3.3ms)[0m [1m[35mCREATE INDEX "index_assignment_overrides_on_wiki_page_id" ON "public"."assignment_overrides" ("wiki_page_id") WHERE wiki_page_id IS NOT NULL[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE INDEX "index_assignment_overrides_on_discussion_topic_id" ON "public"."assignment_overrides" ("discussion_topic_id") WHERE discussion_topic_id IS NOT NULL[0m [- -] [1m[36mSQL (2.5ms)[0m [1m[35mCREATE INDEX "index_assignment_overrides_on_attachment_id" ON "public"."assignment_overrides" ("attachment_id") WHERE attachment_id IS NOT NULL[0m [- -] [1m[36mSQL (2.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignment_overrides_on_assignment_and_set" ON "public"."assignment_overrides" ("assignment_id", "set_type", "set_id") WHERE workflow_state='active' and set_id is not null[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignment_overrides_on_context_module_id_and_set" ON "public"."assignment_overrides" ("context_module_id", "set_id", "set_type") WHERE context_module_id IS NOT NULL AND workflow_state = 'active' AND set_id IS NOT NULL[0m [- -] [1m[36mSQL (2.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignment_overrides_on_wiki_page_id_and_set" ON "public"."assignment_overrides" ("wiki_page_id", "set_id", "set_type") WHERE wiki_page_id IS NOT NULL AND workflow_state = 'active' AND set_id IS NOT NULL[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignment_overrides_on_discussion_topic_id_and_set" ON "public"."assignment_overrides" ("discussion_topic_id", "set_id", "set_type") WHERE discussion_topic_id IS NOT NULL AND workflow_state = 'active' AND set_id IS NOT NULL[0m [- -] [1m[36mSQL (2.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignment_overrides_on_attachment_id_and_set" ON "public"."assignment_overrides" ("attachment_id", "set_id", "set_type") WHERE attachment_id IS NOT NULL AND workflow_state = 'active' AND set_id IS NOT NULL[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."assignment_overrides" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."assignment_overrides" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (8.6ms)[0m [1m[35mCREATE TABLE "public"."assignment_override_students" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "assignment_id" bigint CONSTRAINT "fk_rails_9ffe0aa305" REFERENCES "public"."assignments" ("id"), "assignment_override_id" bigint NOT NULL CONSTRAINT "fk_rails_ea26ada45d" REFERENCES "public"."assignment_overrides" ("id"), "user_id" bigint NOT NULL CONSTRAINT "fk_rails_5215564217" REFERENCES "public"."users" ("id") DEFERRABLE INITIALLY IMMEDIATE, "quiz_id" bigint, "workflow_state" character varying DEFAULT 'active' NOT NULL, "root_account_id" bigint CONSTRAINT "fk_rails_9bb878faf3" REFERENCES "public"."accounts" ("id"), "context_module_id" bigint, "wiki_page_id" bigint, "discussion_topic_id" bigint, "attachment_id" bigint)[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_assignment_override_students_on_assignment_id" ON "public"."assignment_override_students" ("assignment_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_assignment_override_students_on_assignment_override_id" ON "public"."assignment_override_students" ("assignment_override_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_assignment_override_students_on_user_id" ON "public"."assignment_override_students" ("user_id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_assignment_override_students_on_quiz_id" ON "public"."assignment_override_students" ("quiz_id")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_assignment_override_students_on_workflow_state" ON "public"."assignment_override_students" ("workflow_state")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_assignment_override_students_on_root_account_id" ON "public"."assignment_override_students" ("root_account_id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignment_override_students_on_assignment_id_and_user_id" ON "public"."assignment_override_students" ("assignment_id", "user_id") WHERE workflow_state = 'active'[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_assignment_override_students_on_user_id_and_quiz_id" ON "public"."assignment_override_students" ("user_id", "quiz_id")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignment_override_students_on_context_module_and_user" ON "public"."assignment_override_students" ("context_module_id", "user_id") WHERE context_module_id IS NOT NULL[0m [- -] [1m[36mSQL (3.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignment_override_students_on_wiki_page_id_and_user_id" ON "public"."assignment_override_students" ("wiki_page_id", "user_id") WHERE wiki_page_id IS NOT NULL[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignment_override_students_on_discussion_topic_and_user" ON "public"."assignment_override_students" ("discussion_topic_id", "user_id") WHERE discussion_topic_id IS NOT NULL[0m [- -] [1m[36mSQL (3.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignment_override_students_on_attachment_id_and_user_id" ON "public"."assignment_override_students" ("attachment_id", "user_id") WHERE attachment_id IS NOT NULL[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."assignment_override_students" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."assignment_override_students" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (9.7ms)[0m [1m[35mCREATE TABLE "public"."attachments" ("id" bigserial primary key, "context_id" bigint, "context_type" character varying(255), "size" bigint, "folder_id" bigint, "content_type" character varying(255), "filename" text, "uuid" character varying(255), "display_name" text, "created_at" timestamp, "updated_at" timestamp, "workflow_state" character varying(255), "user_id" bigint, "locked" boolean DEFAULT FALSE, "file_state" character varying(255), "deleted_at" timestamp, "position" integer, "lock_at" timestamp, "unlock_at" timestamp, "could_be_locked" boolean, "root_attachment_id" bigint CONSTRAINT "fk_rails_b6a31db404" REFERENCES "public"."attachments" ("id"), "cloned_item_id" bigint, "migration_id" character varying(255), "namespace" character varying(255), "media_entry_id" character varying(255), "md5" character varying(255), "encoding" character varying(255), "need_notify" boolean, "upload_error_message" text, "replacement_attachment_id" bigint CONSTRAINT "fk_rails_b7c6788fce" REFERENCES "public"."attachments" ("id"), "usage_rights_id" bigint, "modified_at" timestamp, "viewed_at" timestamp, "instfs_uuid" character varying, "root_account_id" bigint, "category" character varying DEFAULT 'uncategorized' NOT NULL, "word_count" integer, "visibility_level" character varying(32) DEFAULT 'inherit' NOT NULL, "only_visible_to_overrides" boolean DEFAULT FALSE NOT NULL)[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_attachments_on_user_id" ON "public"."attachments" ("user_id")[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE INDEX "index_attachments_on_root_attachment_id_not_null" ON "public"."attachments" ("root_attachment_id") WHERE root_attachment_id IS NOT NULL[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_attachments_on_cloned_item_id" ON "public"."attachments" ("cloned_item_id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_attachments_on_namespace" ON "public"."attachments" ("namespace")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_attachments_on_media_entry_id" ON "public"."attachments" ("media_entry_id")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_attachments_on_need_notify" ON "public"."attachments" ("need_notify") WHERE "need_notify"[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_attachments_on_replacement_attachment_id" ON "public"."attachments" ("replacement_attachment_id") WHERE replacement_attachment_id IS NOT NULL[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE INDEX "index_attachments_on_usage_rights_id" ON "public"."attachments" ("usage_rights_id") WHERE usage_rights_id IS NOT NULL[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE INDEX "index_attachments_on_instfs_uuid" ON "public"."attachments" ("instfs_uuid") WHERE instfs_uuid IS NOT NULL[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_attachments_on_root_account_id" ON "public"."attachments" ("root_account_id")[0m [- -] [1m[36mSQL (2.6ms)[0m [1m[35mCREATE INDEX "index_attachments_on_context_id_and_context_type" ON "public"."attachments" ("context_id", "context_type")[0m [- -] [1m[36mSQL (2.9ms)[0m [1m[35mCREATE INDEX "index_attachments_on_md5_and_namespace" ON "public"."attachments" ("md5", "namespace")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_attachments_on_workflow_state_and_updated_at" ON "public"."attachments" ("workflow_state", "updated_at")[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE INDEX "index_attachments_on_folder_id_and_file_state_and_position" ON "public"."attachments" ("folder_id", "file_state", "position")[0m [- -] [1m[36mSQL (3.0ms)[0m [1m[35mCREATE INDEX "index_attachments_on_folder_id_and_position" ON "public"."attachments" ("folder_id", "position") WHERE folder_id IS NOT NULL[0m [- -] [1m[36mSQL (2.5ms)[0m [1m[35mCREATE INDEX "index_attachments_on_context_and_migration_id" ON "public"."attachments" ("context_id", "context_type", "migration_id") WHERE migration_id IS NOT NULL[0m [- -] [1m[36mSQL (3.1ms)[0m [1m[35mCREATE INDEX "index_attachments_on_md5_and_namespace_and_content_type" ON "public"."attachments" ("md5", "namespace", "content_type") WHERE root_attachment_id IS NULL and filename IS NOT NULL[0m [- -] [1m[36mSQL (3.3ms)[0m [1m[35mCREATE INDEX "index_attachments_on_context_and_migration_id_pattern_ops" ON "public"."attachments" ("context_id", "context_type", "migration_id" text_pattern_ops) WHERE migration_id IS NOT NULL[0m [- -] [1m[36mSQL (2.9ms)[0m [1m[35mCREATE INDEX "index_attachments_on_created_at" ON "public"."attachments" ("created_at") WHERE context_type IN ('ContentExport', 'ContentMigration') and file_state NOT IN ('deleted', 'broken') and root_attachment_id is null[0m [- -] [1m[36mSQL (3.0ms)[0m [1m[35mCREATE INDEX "index_attachments_on_context_type" ON "public"."attachments" ("context_type") WHERE workflow_state = 'deleted' and file_state = 'deleted'[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."attachments" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."attachments" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE FUNCTION "public"."attachment_before_insert_verify_active_folder__tr_fn" () RETURNS trigger AS $$ DECLARE folder_state text; BEGIN SELECT workflow_state INTO folder_state FROM folders WHERE folders.id = NEW.folder_id FOR SHARE; if folder_state = 'deleted' then RAISE EXCEPTION 'Cannot create attachments in deleted folders --> %', NEW.folder_id; end if; RETURN NEW; END; $$ LANGUAGE plpgsql; [0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35m ALTER FUNCTION "public"."attachment_before_insert_verify_active_folder__tr_fn"() SET search_path TO public [0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER attachment_before_insert_verify_active_folder__tr BEFORE INSERT ON "public"."attachments" FOR EACH ROW EXECUTE PROCEDURE "public"."attachment_before_insert_verify_active_folder__tr_fn"()[0m [- -] [1m[36mSQL (4.3ms)[0m [1m[35mCREATE TABLE "public"."attachment_associations" ("id" bigserial primary key, "attachment_id" bigint, "context_id" bigint, "context_type" character varying(255), "root_account_id" bigint)[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_attachment_associations_on_attachment_id" ON "public"."attachment_associations" ("attachment_id")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_attachment_associations_on_root_account_id" ON "public"."attachment_associations" ("root_account_id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "attachment_associations_a_id_a_type" ON "public"."attachment_associations" ("context_id", "context_type")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."attachment_associations" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."attachment_associations" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (8.7ms)[0m [1m[35mCREATE TABLE "public"."attachment_upload_statuses" ("id" bigserial primary key, "attachment_id" bigint NOT NULL CONSTRAINT "fk_rails_45ef35c05a" REFERENCES "public"."attachments" ("id"), "error" text NOT NULL, "created_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (3.0ms)[0m [1m[35mCREATE INDEX "index_attachment_upload_statuses_on_attachment_id" ON "public"."attachment_upload_statuses" ("attachment_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.8ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."attachment_upload_statuses" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."attachment_upload_statuses" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (8.6ms)[0m [1m[35mCREATE TABLE "public"."auditor_authentication_records" ("id" bigserial primary key, "uuid" character varying NOT NULL, "account_id" bigint NOT NULL CONSTRAINT "fk_rails_150aa17e55" REFERENCES "public"."accounts" ("id"), "event_type" character varying NOT NULL, "pseudonym_id" bigint NOT NULL, "request_id" character varying NOT NULL, "user_id" bigint NOT NULL CONSTRAINT "fk_rails_191f85fb7d" REFERENCES "public"."users" ("id"), "created_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (2.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_auth_audits_on_unique_uuid" ON "public"."auditor_authentication_records" ("uuid")[0m [- -] [1m[36mSQL (2.5ms)[0m [1m[35mCREATE INDEX "index_auditor_authentication_records_on_account_id" ON "public"."auditor_authentication_records" ("account_id")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_auditor_authentication_records_on_pseudonym_id" ON "public"."auditor_authentication_records" ("pseudonym_id")[0m [- -] [1m[36mSQL (2.5ms)[0m [1m[35mCREATE INDEX "index_auditor_authentication_records_on_user_id" ON "public"."auditor_authentication_records" ("user_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."auditor_authentication_records" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."auditor_authentication_records" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.4ms)[0m [1m[35mCREATE TABLE "public"."auditor_course_records" ("id" bigserial primary key, "uuid" character varying NOT NULL, "account_id" bigint NOT NULL CONSTRAINT "fk_rails_feace04d08" REFERENCES "public"."accounts" ("id"), "course_id" bigint NOT NULL CONSTRAINT "fk_rails_baec14f76a" REFERENCES "public"."courses" ("id"), "data" text, "event_source" character varying NOT NULL, "event_type" character varying NOT NULL, "request_id" character varying NOT NULL, "sis_batch_id" bigint, "user_id" bigint CONSTRAINT "fk_rails_d5dc35c78c" REFERENCES "public"."users" ("id"), "created_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_course_audits_on_unique_uuid" ON "public"."auditor_course_records" ("uuid")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_auditor_course_records_on_account_id" ON "public"."auditor_course_records" ("account_id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_auditor_course_records_on_course_id" ON "public"."auditor_course_records" ("course_id")[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE INDEX "index_auditor_course_records_on_sis_batch_id" ON "public"."auditor_course_records" ("sis_batch_id")[0m [- -] [1m[36mSQL (1.1ms)[0m [1m[35mCREATE INDEX "index_auditor_course_records_on_user_id" ON "public"."auditor_course_records" ("user_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."auditor_course_records" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."auditor_course_records" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.1ms)[0m [1m[35mCREATE TABLE "public"."auditor_feature_flag_records" ("id" bigserial primary key, "uuid" character varying NOT NULL, "feature_flag_id" bigint NOT NULL, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_398a7e63f8" REFERENCES "public"."accounts" ("id"), "context_type" character varying, "context_id" bigint, "feature_name" character varying, "event_type" character varying NOT NULL, "state_before" character varying NOT NULL, "state_after" character varying NOT NULL, "request_id" character varying NOT NULL, "user_id" bigint CONSTRAINT "fk_rails_dbff8d102b" REFERENCES "public"."users" ("id"), "created_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_auditor_feature_flag_records_on_uuid" ON "public"."auditor_feature_flag_records" ("uuid")[0m [- -] [1m[36mSQL (2.5ms)[0m [1m[35mCREATE INDEX "index_auditor_feature_flag_records_on_feature_flag_id" ON "public"."auditor_feature_flag_records" ("feature_flag_id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_auditor_feature_flag_records_on_root_account_id" ON "public"."auditor_feature_flag_records" ("root_account_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_auditor_feature_flag_records_on_user_id" ON "public"."auditor_feature_flag_records" ("user_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."auditor_feature_flag_records" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."auditor_feature_flag_records" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (9.1ms)[0m [1m[35mCREATE TABLE "public"."auditor_grade_change_records" ("id" bigserial primary key, "uuid" character varying NOT NULL, "account_id" bigint NOT NULL CONSTRAINT "fk_rails_5f24c0ee2c" REFERENCES "public"."accounts" ("id"), "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_ccf8f33d5e" REFERENCES "public"."accounts" ("id"), "assignment_id" bigint CONSTRAINT "fk_rails_797cff9335" REFERENCES "public"."assignments" ("id"), "context_id" bigint NOT NULL, "context_type" character varying NOT NULL, "event_type" character varying NOT NULL, "excused_after" boolean NOT NULL, "excused_before" boolean NOT NULL, "grade_after" character varying, "grade_before" character varying, "graded_anonymously" boolean, "grader_id" bigint CONSTRAINT "fk_rails_bd9b58c417" REFERENCES "public"."users" ("id"), "points_possible_after" float, "points_possible_before" float, "request_id" character varying NOT NULL, "score_after" float, "score_before" float, "student_id" bigint NOT NULL CONSTRAINT "fk_rails_fe6334e6a1" REFERENCES "public"."users" ("id"), "submission_id" bigint, "submission_version_number" integer, "created_at" timestamp NOT NULL, "grading_period_id" bigint)[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_grade_audits_on_unique_uuid" ON "public"."auditor_grade_change_records" ("uuid")[0m [- -] [1m[36mSQL (2.5ms)[0m [1m[35mCREATE INDEX "index_auditor_grade_change_records_on_account_id" ON "public"."auditor_grade_change_records" ("account_id")[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE INDEX "index_auditor_grade_change_records_on_assignment_id" ON "public"."auditor_grade_change_records" ("assignment_id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_auditor_grade_change_records_on_grader_id" ON "public"."auditor_grade_change_records" ("grader_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_auditor_grade_change_records_on_student_id" ON "public"."auditor_grade_change_records" ("student_id")[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_auditor_grade_change_records_on_submission_id" ON "public"."auditor_grade_change_records" ("submission_id")[0m [- -] [1m[36mSQL (2.6ms)[0m [1m[35mCREATE INDEX "index_auditor_grade_change_records_on_grading_period_id" ON "public"."auditor_grade_change_records" ("grading_period_id") WHERE grading_period_id IS NOT NULL[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_auditor_grades_by_course_and_assignment" ON "public"."auditor_grade_change_records" ("context_type", "context_id", "assignment_id")[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_auditor_grades_by_account_and_grader" ON "public"."auditor_grade_change_records" ("root_account_id", "grader_id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_auditor_grades_by_account_and_student" ON "public"."auditor_grade_change_records" ("root_account_id", "student_id")[0m [- -] [1m[36mSQL (2.6ms)[0m [1m[35mCREATE INDEX "index_auditor_grades_by_course_and_grader" ON "public"."auditor_grade_change_records" ("context_type", "context_id", "grader_id")[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE INDEX "index_auditor_grades_by_course_and_student" ON "public"."auditor_grade_change_records" ("context_type", "context_id", "student_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."auditor_grade_change_records" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."auditor_grade_change_records" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.9ms)[0m [1m[35mCREATE TABLE "public"."auditor_pseudonym_records" ("id" bigserial primary key, "pseudonym_id" bigint NOT NULL, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_6a675aa6f8" REFERENCES "public"."accounts" ("id"), "performing_user_id" bigint NOT NULL, "action" character varying NOT NULL, "hostname" character varying NOT NULL, "pid" character varying NOT NULL, "uuid" character varying NOT NULL, "event_type" character varying NOT NULL, "request_id" character varying, "created_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_auditor_pseudonym_records_on_pseudonym_id" ON "public"."auditor_pseudonym_records" ("pseudonym_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_auditor_pseudonym_records_on_root_account_id" ON "public"."auditor_pseudonym_records" ("root_account_id")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_auditor_pseudonym_records_on_uuid" ON "public"."auditor_pseudonym_records" ("uuid")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."auditor_pseudonym_records" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."auditor_pseudonym_records" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.0ms)[0m [1m[35mCREATE TABLE "public"."authentication_providers" ("id" bigserial primary key, "account_id" bigint NOT NULL CONSTRAINT "fk_rails_2cd97ede08" REFERENCES "public"."accounts" ("id"), "auth_port" integer, "auth_host" character varying(255), "auth_base" character varying(255), "auth_username" character varying(255), "auth_crypted_password" character varying(2048), "auth_password_salt" character varying(255), "auth_type" character varying(255), "auth_over_tls" character varying(255) DEFAULT 'start_tls', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "log_in_url" character varying(255), "log_out_url" character varying(255), "identifier_format" character varying(255), "certificate_fingerprint" text, "entity_id" character varying(255), "auth_filter" text, "requested_authn_context" character varying(255), "last_timeout_failure" timestamp, "login_attribute" text, "idp_entity_id" character varying(255), "position" integer, "parent_registration" boolean DEFAULT FALSE NOT NULL, "workflow_state" character varying(255) DEFAULT 'active' NOT NULL, "jit_provisioning" boolean DEFAULT FALSE NOT NULL, "metadata_uri" character varying(255), "settings" json DEFAULT '{}' NOT NULL, "internal_ca" text, "verify_tls_cert_opt_in" boolean DEFAULT FALSE NOT NULL)[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_authentication_providers_on_account_id" ON "public"."authentication_providers" ("account_id")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_authentication_providers_on_workflow_state" ON "public"."authentication_providers" ("workflow_state")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_authentication_providers_on_metadata_uri" ON "public"."authentication_providers" ("metadata_uri") WHERE metadata_uri IS NOT NULL[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."authentication_providers" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."authentication_providers" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.1ms)[0m [1m[35mCREATE TABLE "public"."blackout_dates" ("id" bigserial primary key, "context_type" character varying NOT NULL, "context_id" bigint NOT NULL, "start_date" date NOT NULL, "end_date" date NOT NULL, "event_title" character varying(255) NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_519a52f507" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_blackout_dates_on_context_type_and_context_id" ON "public"."blackout_dates" ("context_type", "context_id")[0m [- -] [1m[36mSQL (2.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_blackout_dates_replica_identity" ON "public"."blackout_dates" ("root_account_id", "id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.8ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."blackout_dates" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."blackout_dates" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (13.7ms)[0m [1m[35mCREATE TABLE "public"."bookmarks_bookmarks" ("id" bigserial primary key, "user_id" bigint NOT NULL CONSTRAINT "fk_rails_1c845e4204" REFERENCES "public"."users" ("id"), "name" text NOT NULL, "url" text NOT NULL, "position" integer, "json" text)[0m [- -] [1m[36mSQL (3.5ms)[0m [1m[35mCREATE INDEX "index_bookmarks_bookmarks_on_user_id" ON "public"."bookmarks_bookmarks" ("user_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."bookmarks_bookmarks" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."bookmarks_bookmarks" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.7ms)[0m [1m[35mCREATE TABLE "public"."brand_configs" ("md5" character varying(32) NOT NULL, "variables" text, "share" boolean DEFAULT FALSE NOT NULL, "name" character varying(255), "created_at" timestamp NOT NULL, "js_overrides" text, "css_overrides" text, "mobile_js_overrides" text, "mobile_css_overrides" text, "parent_md5" character varying(255), PRIMARY KEY ("md5"))[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_brand_configs_on_share" ON "public"."brand_configs" ("share")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."brand_configs" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."brand_configs" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (37.1ms)[0m [1m[35mCREATE TABLE "public"."calendar_events" ("id" bigserial primary key, "title" character varying(255), "description" text, "location_name" text, "location_address" text, "start_at" timestamp, "end_at" timestamp, "context_id" bigint NOT NULL, "context_type" character varying(255) NOT NULL, "workflow_state" character varying(255) NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "user_id" bigint CONSTRAINT "fk_rails_930e3c0bf4" REFERENCES "public"."users" ("id"), "all_day" boolean, "all_day_date" date, "deleted_at" timestamp, "cloned_item_id" bigint CONSTRAINT "fk_rails_75957d2da8" REFERENCES "public"."cloned_items" ("id"), "context_code" character varying(255), "migration_id" character varying(255), "time_zone_edited" character varying(255), "parent_calendar_event_id" bigint CONSTRAINT "fk_rails_0e82f26e3c" REFERENCES "public"."calendar_events" ("id"), "effective_context_code" character varying(255), "participants_per_appointment" integer, "override_participants_per_appointment" boolean, "comments" text, "timetable_code" character varying(255), "web_conference_id" bigint, "root_account_id" bigint CONSTRAINT "fk_rails_2069d7cd39" REFERENCES "public"."accounts" ("id"), "important_dates" boolean DEFAULT FALSE NOT NULL, "rrule" character varying(255), "series_uuid" uuid, "series_head" boolean, "blackout_date" boolean DEFAULT FALSE NOT NULL)[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE INDEX "index_calendar_events_on_start_at" ON "public"."calendar_events" ("start_at") WHERE workflow_state<>'deleted'[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_calendar_events_on_user_id" ON "public"."calendar_events" ("user_id")[0m [- -] [1m[36mSQL (2.8ms)[0m [1m[35mCREATE INDEX "index_calendar_events_on_cloned_item_id" ON "public"."calendar_events" ("cloned_item_id") WHERE cloned_item_id IS NOT NULL[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE INDEX "index_calendar_events_on_context_code" ON "public"."calendar_events" ("context_code")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_calendar_events_on_parent_calendar_event_id" ON "public"."calendar_events" ("parent_calendar_event_id")[0m [- -] [1m[36mSQL (2.8ms)[0m [1m[35mCREATE INDEX "index_calendar_events_on_effective_context_code" ON "public"."calendar_events" ("effective_context_code") WHERE effective_context_code IS NOT NULL[0m [- -] [1m[36mSQL (2.6ms)[0m [1m[35mCREATE INDEX "index_calendar_events_on_web_conference_id" ON "public"."calendar_events" ("web_conference_id") WHERE web_conference_id IS NOT NULL[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_calendar_events_on_root_account_id" ON "public"."calendar_events" ("root_account_id")[0m [- -] [1m[36mSQL (2.9ms)[0m [1m[35mCREATE INDEX "index_calendar_events_on_important_dates" ON "public"."calendar_events" ("important_dates") WHERE "important_dates"[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_calendar_events_on_series_uuid" ON "public"."calendar_events" ("series_uuid")[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_calendar_events_on_context_id_and_context_type" ON "public"."calendar_events" ("context_id", "context_type")[0m [- -] [1m[36mSQL (2.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_calendar_events_on_context_and_timetable_code" ON "public"."calendar_events" ("context_id", "context_type", "timetable_code") WHERE timetable_code IS NOT NULL[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."calendar_events" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."calendar_events" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.5ms)[0m [1m[35mCREATE TABLE "public"."canvadocs" ("id" bigserial primary key, "document_id" character varying(255), "process_state" character varying(255), "attachment_id" bigint NOT NULL CONSTRAINT "fk_rails_0e9b385b60" REFERENCES "public"."attachments" ("id"), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "has_annotations" boolean)[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_canvadocs_on_document_id" ON "public"."canvadocs" ("document_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_canvadocs_on_attachment_id" ON "public"."canvadocs" ("attachment_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."canvadocs" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."canvadocs" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (8.4ms)[0m [1m[35mCREATE TABLE "public"."canvadocs_annotation_contexts" ("id" bigserial primary key, "attachment_id" bigint NOT NULL CONSTRAINT "fk_rails_e80a1d9a96" REFERENCES "public"."attachments" ("id"), "submission_id" bigint NOT NULL, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_acf2663758" REFERENCES "public"."accounts" ("id"), "launch_id" character varying NOT NULL, "submission_attempt" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_canvadocs_annotation_contexts_on_submission_id" ON "public"."canvadocs_annotation_contexts" ("submission_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_canvadocs_annotation_contexts_on_root_account_id" ON "public"."canvadocs_annotation_contexts" ("root_account_id")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_attachment_attempt_submission" ON "public"."canvadocs_annotation_contexts" ("attachment_id", "submission_attempt", "submission_id")[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_attachment_submission" ON "public"."canvadocs_annotation_contexts" ("attachment_id", "submission_id") WHERE submission_attempt IS NULL[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."canvadocs_annotation_contexts" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."canvadocs_annotation_contexts" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (4.2ms)[0m [1m[35mCREATE TABLE "public"."canvadocs_submissions" ("id" bigserial primary key, "canvadoc_id" bigint, "crocodoc_document_id" bigint, "submission_id" bigint NOT NULL)[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_canvadocs_submissions_on_canvadoc_id" ON "public"."canvadocs_submissions" ("canvadoc_id")[0m [- -] [1m[36mSQL (2.6ms)[0m [1m[35mCREATE INDEX "index_canvadocs_submissions_on_crocodoc_document_id" ON "public"."canvadocs_submissions" ("crocodoc_document_id") WHERE crocodoc_document_id IS NOT NULL[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_canvadocs_submissions_on_submission_id" ON "public"."canvadocs_submissions" ("submission_id")[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE UNIQUE INDEX "unique_submissions_and_canvadocs" ON "public"."canvadocs_submissions" ("submission_id", "canvadoc_id") WHERE canvadoc_id IS NOT NULL[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "unique_submissions_and_crocodocs" ON "public"."canvadocs_submissions" ("submission_id", "crocodoc_document_id") WHERE crocodoc_document_id IS NOT NULL[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."canvadocs_submissions" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."canvadocs_submissions" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.5ms)[0m [1m[35mCREATE TABLE "public"."canvas_metadata" ("id" bigserial primary key, "key" character varying NOT NULL, "payload" jsonb NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_canvas_metadata_on_key" ON "public"."canvas_metadata" ("key")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."canvas_metadata" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."canvas_metadata" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.1ms)[0m [1m[35mCREATE TABLE "public"."collaborations" ("id" bigserial primary key, "collaboration_type" character varying(255), "document_id" character varying(255), "user_id" bigint CONSTRAINT "fk_rails_3e8ae0af8a" REFERENCES "public"."users" ("id"), "context_id" bigint, "context_type" character varying(255), "url" character varying(255), "uuid" character varying(255), "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "description" text, "title" character varying(255) NOT NULL, "workflow_state" character varying(255) DEFAULT 'active' NOT NULL, "deleted_at" timestamp, "context_code" character varying(255), "type" character varying(255), "resource_link_lookup_uuid" uuid)[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_collaborations_on_user_id" ON "public"."collaborations" ("user_id")[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE INDEX "index_collaborations_on_context_id_and_context_type" ON "public"."collaborations" ("context_id", "context_type")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."collaborations" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."collaborations" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (4.6ms)[0m [1m[35mCREATE TABLE "public"."collaborators" ("id" bigserial primary key, "user_id" bigint CONSTRAINT "fk_rails_3d4aaacbb1" REFERENCES "public"."users" ("id"), "collaboration_id" bigint CONSTRAINT "fk_rails_02c23caf02" REFERENCES "public"."collaborations" ("id"), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "authorized_service_user_id" character varying(255), "group_id" bigint)[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_collaborators_on_user_id" ON "public"."collaborators" ("user_id")[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE INDEX "index_collaborators_on_collaboration_id" ON "public"."collaborators" ("collaboration_id")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_collaborators_on_group_id" ON "public"."collaborators" ("group_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."collaborators" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."collaborators" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.0ms)[0m [1m[35mCREATE TABLE "public"."comment_bank_items" ("id" bigserial primary key, "course_id" bigint NOT NULL CONSTRAINT "fk_rails_054ffaf73d" REFERENCES "public"."courses" ("id"), "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_adf174e129" REFERENCES "public"."accounts" ("id"), "user_id" bigint NOT NULL CONSTRAINT "fk_rails_406668e8c1" REFERENCES "public"."users" ("id"), "comment" text NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "workflow_state" character varying DEFAULT 'active' NOT NULL)[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_comment_bank_items_on_course_id" ON "public"."comment_bank_items" ("course_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_comment_bank_items_on_root_account_id" ON "public"."comment_bank_items" ("root_account_id")[0m [- -] [1m[36mSQL (1.2ms)[0m [1m[35mCREATE INDEX "index_comment_bank_items_on_user_id" ON "public"."comment_bank_items" ("user_id")[0m [- -] [1m[36mSQL (2.9ms)[0m [1m[35mCREATE INDEX "index_active_comment_bank_items_on_user" ON "public"."comment_bank_items" ("user_id") WHERE workflow_state <> 'deleted'[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_comment_bank_items_replica_identity" ON "public"."comment_bank_items" ("root_account_id", "id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."comment_bank_items" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."comment_bank_items" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.6ms)[0m [1m[35mCREATE TABLE "public"."communication_channels" ("id" bigserial primary key, "path" character varying(255) NOT NULL, "path_type" character varying(255) DEFAULT 'email' NOT NULL, "position" integer, "user_id" bigint NOT NULL CONSTRAINT "fk_rails_cd70d006a2" REFERENCES "public"."users" ("id"), "pseudonym_id" bigint, "bounce_count" integer DEFAULT 0, "workflow_state" character varying(255) NOT NULL, "confirmation_code" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "build_pseudonym_on_confirm" boolean, "last_bounce_at" timestamp, "last_bounce_details" text, "last_suppression_bounce_at" timestamp, "last_transient_bounce_at" timestamp, "last_transient_bounce_details" text, "confirmation_code_expires_at" timestamp, "confirmation_sent_count" integer DEFAULT 0 NOT NULL, "root_account_ids" bigint[], "confirmation_redirect" character varying)[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_communication_channels_on_confirmation_code" ON "public"."communication_channels" ("confirmation_code")[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE INDEX "index_communication_channels_on_last_bounce_at" ON "public"."communication_channels" ("last_bounce_at") WHERE bounce_count > 0[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_communication_channels_on_pseudonym_id_and_position" ON "public"."communication_channels" ("pseudonym_id", "position")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_communication_channels_on_user_id_and_position" ON "public"."communication_channels" ("user_id", "position")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_communication_channels_on_path_and_path_type" ON "public"."communication_channels" (LOWER(path), path_type)[0m [- -] [1m[36mSQL (0.8ms)[0m [1m[35mCREATE INDEX "index_gin_trgm_communication_channels_path" ON "public"."communication_channels" USING gin (lower(path) public.gin_trgm_ops)[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_communication_channels_on_user_id_and_path_and_path_type" ON "public"."communication_channels" (user_id, LOWER(path), path_type)[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."communication_channels" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."communication_channels" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (4.8ms)[0m [1m[35mCREATE TABLE "public"."conditional_release_rules" ("id" bigserial primary key, "course_id" bigint CONSTRAINT "fk_rails_8acbb32e82" REFERENCES "public"."courses" ("id"), "trigger_assignment_id" bigint CONSTRAINT "fk_rails_b40260f69d" REFERENCES "public"."assignments" ("id"), "deleted_at" timestamp, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_63aa2864f6" REFERENCES "public"."accounts" ("id"), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_conditional_release_rules_on_course_id" ON "public"."conditional_release_rules" ("course_id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_conditional_release_rules_on_trigger_assignment_id" ON "public"."conditional_release_rules" ("trigger_assignment_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_cr_rules_on_root_account_id" ON "public"."conditional_release_rules" ("root_account_id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_cr_rules_on_account_and_course" ON "public"."conditional_release_rules" ("root_account_id", "course_id") WHERE deleted_at IS NULL[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."conditional_release_rules" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."conditional_release_rules" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.0ms)[0m [1m[35mCREATE TABLE "public"."conditional_release_scoring_ranges" ("id" bigserial primary key, "rule_id" bigint NOT NULL CONSTRAINT "fk_rails_465cc7ee68" REFERENCES "public"."conditional_release_rules" ("id"), "lower_bound" decimal, "upper_bound" decimal, "position" integer, "deleted_at" timestamp, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_1e01dde724" REFERENCES "public"."accounts" ("id"), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_cr_scoring_ranges_on_rule_id" ON "public"."conditional_release_scoring_ranges" ("rule_id") WHERE deleted_at IS NULL[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_cr_scoring_ranges_on_root_account_id" ON "public"."conditional_release_scoring_ranges" ("root_account_id")[0m [- -] [1m[36mSQL (1.0ms)[0m [1m[35mCREATE INDEX "index_conditional_release_scoring_ranges_on_rule_id" ON "public"."conditional_release_scoring_ranges" ("rule_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."conditional_release_scoring_ranges" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."conditional_release_scoring_ranges" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (4.1ms)[0m [1m[35mCREATE TABLE "public"."conditional_release_assignment_sets" ("id" bigserial primary key, "scoring_range_id" bigint NOT NULL CONSTRAINT "fk_rails_0c8dc99f75" REFERENCES "public"."conditional_release_scoring_ranges" ("id"), "position" integer, "deleted_at" timestamp, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_e074bec622" REFERENCES "public"."accounts" ("id"), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_cr_assignment_sets_on_scoring_range_id" ON "public"."conditional_release_assignment_sets" ("scoring_range_id") WHERE deleted_at IS NULL[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_cr_assignment_sets_on_root_account_id" ON "public"."conditional_release_assignment_sets" ("root_account_id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_conditional_release_assignment_sets_on_scoring_range_id" ON "public"."conditional_release_assignment_sets" ("scoring_range_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."conditional_release_assignment_sets" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."conditional_release_assignment_sets" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.6ms)[0m [1m[35mCREATE TABLE "public"."conditional_release_assignment_set_associations" ("id" bigserial primary key, "assignment_set_id" bigint CONSTRAINT "fk_rails_5eb00a6e83" REFERENCES "public"."conditional_release_assignment_sets" ("id"), "assignment_id" bigint CONSTRAINT "fk_rails_1ef1909e3b" REFERENCES "public"."assignments" ("id"), "position" integer, "deleted_at" timestamp, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_3ec0562eca" REFERENCES "public"."accounts" ("id"), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE INDEX "index_crasa_on_assignment_set_id" ON "public"."conditional_release_assignment_set_associations" ("assignment_set_id") WHERE assignment_set_id IS NOT NULL[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE INDEX "index_cr_assignment_set_associations_on_set" ON "public"."conditional_release_assignment_set_associations" ("assignment_id") WHERE deleted_at IS NULL[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_cr_assignment_set_associations_on_root_account_id" ON "public"."conditional_release_assignment_set_associations" ("root_account_id")[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_cr_assignment_set_associations_on_assignment_and_set" ON "public"."conditional_release_assignment_set_associations" ("assignment_id", "assignment_set_id") WHERE deleted_at IS NULL[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_crasa_on_assignment_id" ON "public"."conditional_release_assignment_set_associations" ("assignment_id") WHERE assignment_id IS NOT NULL[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."conditional_release_assignment_set_associations" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."conditional_release_assignment_set_associations" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.6ms)[0m [1m[35mCREATE TABLE "public"."conditional_release_assignment_set_actions" ("id" bigserial primary key, "action" character varying NOT NULL, "source" character varying NOT NULL, "student_id" bigint NOT NULL, "actor_id" bigint NOT NULL, "assignment_set_id" bigint, "deleted_at" timestamp, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_941f76f503" REFERENCES "public"."accounts" ("id"), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_cr_assignment_set_actions_on_root_account_id" ON "public"."conditional_release_assignment_set_actions" ("root_account_id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_cr_assignment_set_actions_on_assignment_set_id" ON "public"."conditional_release_assignment_set_actions" ("assignment_set_id") WHERE deleted_at IS NULL[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_cr_assignment_set_actions_on_set_and_student" ON "public"."conditional_release_assignment_set_actions" ("assignment_set_id", "student_id", "created_at" DESC) WHERE deleted_at IS NULL[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."conditional_release_assignment_set_actions" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."conditional_release_assignment_set_actions" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (9.0ms)[0m [1m[35mCREATE TABLE "public"."content_exports" ("id" bigserial primary key, "user_id" bigint CONSTRAINT "fk_rails_6364a4a05e" REFERENCES "public"."users" ("id"), "attachment_id" bigint CONSTRAINT "fk_rails_08b467f95d" REFERENCES "public"."attachments" ("id"), "export_type" character varying(255), "settings" text, "progress" float, "workflow_state" character varying(255) NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "content_migration_id" bigint, "context_type" character varying(255), "context_id" bigint, "global_identifiers" boolean DEFAULT FALSE NOT NULL)[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE INDEX "index_content_exports_on_user_id" ON "public"."content_exports" ("user_id") WHERE user_id IS NOT NULL[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_content_exports_on_attachment_id" ON "public"."content_exports" ("attachment_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_content_exports_on_content_migration_id" ON "public"."content_exports" ("content_migration_id")[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE INDEX "index_content_exports_on_context_id_and_context_type" ON "public"."content_exports" ("context_id", "context_type")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."content_exports" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."content_exports" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (11.0ms)[0m [1m[35mCREATE TABLE "public"."content_migrations" ("id" bigserial primary key, "context_id" bigint NOT NULL, "user_id" bigint CONSTRAINT "fk_rails_c8d17d44ae" REFERENCES "public"."users" ("id"), "workflow_state" character varying(255) NOT NULL, "migration_settings" text, "started_at" timestamp, "finished_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "progress" float, "context_type" character varying(255), "attachment_id" bigint, "overview_attachment_id" bigint CONSTRAINT "fk_rails_471c20026b" REFERENCES "public"."attachments" ("id"), "exported_attachment_id" bigint CONSTRAINT "fk_rails_c1bf6cc5e9" REFERENCES "public"."attachments" ("id"), "source_course_id" bigint, "migration_type" character varying(255), "child_subscription_id" bigint, "root_account_id" bigint CONSTRAINT "fk_rails_27f5fdeb82" REFERENCES "public"."accounts" ("id"), "asset_map_attachment_id" bigint CONSTRAINT "fk_rails_4ec369896b" REFERENCES "public"."attachments" ("id"))[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE INDEX "index_content_migrations_on_context_id" ON "public"."content_migrations" ("context_id")[0m [- -] [1m[36mSQL (3.0ms)[0m [1m[35mCREATE INDEX "index_content_migrations_on_user_id" ON "public"."content_migrations" ("user_id") WHERE user_id IS NOT NULL[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_content_migrations_on_attachment_id" ON "public"."content_migrations" ("attachment_id") WHERE attachment_id IS NOT NULL[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE INDEX "index_content_migrations_on_overview_attachment_id" ON "public"."content_migrations" ("overview_attachment_id") WHERE overview_attachment_id IS NOT NULL[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_content_migrations_on_exported_attachment_id" ON "public"."content_migrations" ("exported_attachment_id") WHERE exported_attachment_id IS NOT NULL[0m [- -] [1m[36mSQL (3.2ms)[0m [1m[35mCREATE INDEX "index_content_migrations_on_source_course_id" ON "public"."content_migrations" ("source_course_id") WHERE source_course_id IS NOT NULL[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE INDEX "index_content_migrations_on_child_subscription_id" ON "public"."content_migrations" ("child_subscription_id") WHERE child_subscription_id IS NOT NULL[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_content_migrations_on_root_account_id" ON "public"."content_migrations" ("root_account_id")[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE INDEX "index_content_migrations_on_asset_map_attachment_id" ON "public"."content_migrations" ("asset_map_attachment_id") WHERE asset_map_attachment_id IS NOT NULL[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_content_migrations_on_context_id_and_id_no_clause" ON "public"."content_migrations" ("context_id", "id")[0m [- -] [1m[36mSQL (2.5ms)[0m [1m[35mCREATE INDEX "index_content_migrations_on_context_id_and_id" ON "public"."content_migrations" ("context_id", "id") WHERE workflow_state='queued'[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_content_migrations_blocked_migrations" ON "public"."content_migrations" ("context_id", "started_at") WHERE started_at IS NOT NULL[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."content_migrations" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."content_migrations" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.1ms)[0m [1m[35mCREATE TABLE "public"."content_participations" ("id" bigserial primary key, "content_type" character varying(255) NOT NULL, "content_id" bigint NOT NULL, "user_id" bigint NOT NULL CONSTRAINT "fk_rails_a223bf6cde" REFERENCES "public"."users" ("id"), "workflow_state" character varying(255) NOT NULL, "root_account_id" bigint CONSTRAINT "fk_rails_8513d41810" REFERENCES "public"."accounts" ("id"), "content_item" character varying DEFAULT 'grade' NOT NULL)[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE INDEX "index_content_participations_on_user_id" ON "public"."content_participations" ("user_id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_content_participations_on_root_account_id" ON "public"."content_participations" ("root_account_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_content_participations_by_type_uniquely" ON "public"."content_participations" ("content_id", "content_type", "user_id", "content_item")[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE INDEX "index_content_participations_on_user_id_unread" ON "public"."content_participations" ("user_id") WHERE workflow_state = 'unread'[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."content_participations" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."content_participations" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.9ms)[0m [1m[35mCREATE TABLE "public"."content_participation_counts" ("id" bigserial primary key, "content_type" character varying(255), "context_type" character varying(255), "context_id" bigint, "user_id" bigint, "unread_count" integer DEFAULT 0, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "root_account_id" bigint CONSTRAINT "fk_rails_d62b914b96" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE INDEX "index_content_participation_counts_on_root_account_id" ON "public"."content_participation_counts" ("root_account_id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_content_participation_counts_uniquely" ON "public"."content_participation_counts" ("context_id", "context_type", "user_id", "content_type")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."content_participation_counts" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."content_participation_counts" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.0ms)[0m [1m[35mCREATE TABLE "public"."content_shares" ("id" bigserial primary key, "name" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "user_id" bigint NOT NULL CONSTRAINT "fk_rails_16c705c4c6" REFERENCES "public"."users" ("id"), "content_export_id" bigint NOT NULL, "sender_id" bigint CONSTRAINT "fk_rails_ba88218dc2" REFERENCES "public"."users" ("id"), "read_state" character varying(255) NOT NULL, "type" character varying(255) NOT NULL, "root_account_id" bigint)[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE INDEX "index_content_shares_on_content_export_id" ON "public"."content_shares" ("content_export_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_content_shares_on_sender_id" ON "public"."content_shares" ("sender_id") WHERE sender_id IS NOT NULL[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_content_shares_on_root_account_id" ON "public"."content_shares" ("root_account_id")[0m [- -] [1m[36mSQL (2.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_content_shares_on_user_and_content_export_and_sender_ids" ON "public"."content_shares" ("user_id", "content_export_id", "sender_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."content_shares" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."content_shares" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (8.1ms)[0m [1m[35mCREATE TABLE "public"."content_tags" ("id" bigserial primary key, "content_id" bigint, "content_type" character varying(255), "context_id" bigint NOT NULL, "context_type" character varying(255) NOT NULL, "title" text, "tag" character varying(255), "url" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "comments" text, "tag_type" character varying(255) DEFAULT 'default', "context_module_id" bigint, "position" integer, "indent" integer, "migration_id" character varying(255), "learning_outcome_id" bigint, "context_code" character varying(255), "mastery_score" float, "rubric_association_id" bigint, "workflow_state" character varying(255) DEFAULT 'active' NOT NULL, "cloned_item_id" bigint CONSTRAINT "fk_rails_7376a606b8" REFERENCES "public"."cloned_items" ("id"), "associated_asset_id" bigint, "associated_asset_type" character varying(255), "new_tab" boolean, "link_settings" jsonb, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_d8dc8497a2" REFERENCES "public"."accounts" ("id"), "external_data" jsonb)[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_content_tags_on_context_module_id" ON "public"."content_tags" ("context_module_id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_content_tags_on_learning_outcome_id" ON "public"."content_tags" ("learning_outcome_id") WHERE learning_outcome_id IS NOT NULL[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_content_tags_on_cloned_item_id" ON "public"."content_tags" ("cloned_item_id") WHERE cloned_item_id IS NOT NULL[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_content_tags_replica_identity" ON "public"."content_tags" ("root_account_id", "id")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_content_tags_on_content_id_and_content_type" ON "public"."content_tags" ("content_id", "content_type")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_content_tags_on_context_id_and_context_type" ON "public"."content_tags" ("context_id", "context_type")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_content_tags_on_associated_asset" ON "public"."content_tags" ("associated_asset_id", "associated_asset_type")[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_content_tags_on_context_when_active" ON "public"."content_tags" ("context_id", "context_type", "content_type") WHERE workflow_state = 'active'[0m [- -] [1m[36mSQL (3.2ms)[0m [1m[35mCREATE INDEX "index_content_tags_for_due_date_cacher" ON "public"."content_tags" ("content_type", "context_type", "context_id") WHERE workflow_state<>'deleted'[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."content_tags" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."content_tags" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.8ms)[0m [1m[35mCREATE TABLE "public"."context_external_tools" ("id" bigserial primary key, "context_id" bigint, "context_type" character varying(255), "domain" character varying(255), "url" character varying(4096), "shared_secret" text NOT NULL, "consumer_key" text NOT NULL, "name" character varying(255) NOT NULL, "description" text, "settings" text, "workflow_state" character varying(255) NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "migration_id" character varying(255), "cloned_item_id" bigint CONSTRAINT "fk_rails_27d8c7c29b" REFERENCES "public"."cloned_items" ("id"), "tool_id" character varying(255), "not_selectable" boolean, "app_center_id" character varying(255), "allow_membership_service_access" boolean DEFAULT FALSE NOT NULL, "developer_key_id" bigint, "root_account_id" bigint NOT NULL, "is_rce_favorite" boolean DEFAULT FALSE NOT NULL, "identity_hash" character varying(64), "lti_version" character varying(8) DEFAULT '1.1' NOT NULL)[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_context_external_tools_on_consumer_key" ON "public"."context_external_tools" ("consumer_key")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_context_external_tools_on_cloned_item_id" ON "public"."context_external_tools" ("cloned_item_id") WHERE cloned_item_id IS NOT NULL[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_context_external_tools_on_tool_id" ON "public"."context_external_tools" ("tool_id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_context_external_tools_on_developer_key_id" ON "public"."context_external_tools" ("developer_key_id")[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_context_external_tools_on_identity_hash" ON "public"."context_external_tools" ("identity_hash") WHERE identity_hash <> 'duplicate'[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_context_external_tools_replica_identity" ON "public"."context_external_tools" ("root_account_id", "id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_context_external_tools_on_context_id_and_context_type" ON "public"."context_external_tools" ("context_id", "context_type")[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE INDEX "index_external_tools_on_context_and_migration_id" ON "public"."context_external_tools" ("context_id", "context_type", "migration_id") WHERE migration_id IS NOT NULL[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."context_external_tools" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."context_external_tools" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (3.5ms)[0m [1m[35mCREATE TABLE "public"."context_external_tool_placements" ("id" bigserial primary key, "placement_type" character varying(255), "context_external_tool_id" bigint NOT NULL CONSTRAINT "fk_rails_dbbdbf40e7" REFERENCES "public"."context_external_tools" ("id"))[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "external_tool_placements_tool_id" ON "public"."context_external_tool_placements" ("context_external_tool_id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "external_tool_placements_type_and_tool_id" ON "public"."context_external_tool_placements" ("placement_type", "context_external_tool_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."context_external_tool_placements" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."context_external_tool_placements" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.6ms)[0m [1m[35mCREATE TABLE "public"."context_modules" ("id" bigserial primary key, "context_id" bigint NOT NULL, "context_type" character varying(255) NOT NULL, "name" text, "position" integer, "prerequisites" text, "completion_requirements" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "workflow_state" character varying(255) DEFAULT 'active' NOT NULL, "deleted_at" timestamp, "unlock_at" timestamp, "migration_id" character varying(255), "require_sequential_progress" boolean, "cloned_item_id" bigint CONSTRAINT "fk_rails_03f6fc5c38" REFERENCES "public"."cloned_items" ("id"), "completion_events" text, "requirement_count" integer, "root_account_id" bigint CONSTRAINT "fk_rails_f4c873d758" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE INDEX "index_context_modules_on_cloned_item_id" ON "public"."context_modules" ("cloned_item_id") WHERE cloned_item_id IS NOT NULL[0m [- -] [1m[36mSQL (2.5ms)[0m [1m[35mCREATE INDEX "index_context_modules_on_root_account_id" ON "public"."context_modules" ("root_account_id")[0m [- -] [1m[36mSQL (2.7ms)[0m [1m[35mCREATE INDEX "index_context_modules_on_context_id_and_context_type" ON "public"."context_modules" ("context_id", "context_type")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."context_modules" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."context_modules" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.5ms)[0m [1m[35mCREATE TABLE "public"."context_module_progressions" ("id" bigserial primary key, "context_module_id" bigint CONSTRAINT "fk_rails_9cc1157b30" REFERENCES "public"."context_modules" ("id"), "user_id" bigint CONSTRAINT "fk_rails_736970326a" REFERENCES "public"."users" ("id"), "requirements_met" text, "workflow_state" character varying(255) NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "collapsed" boolean, "current_position" integer, "completed_at" timestamp, "current" boolean, "lock_version" integer DEFAULT 0 NOT NULL, "evaluated_at" timestamp, "incomplete_requirements" text, "root_account_id" bigint CONSTRAINT "fk_rails_786d10d2ce" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_context_module_progressions_on_context_module_id" ON "public"."context_module_progressions" ("context_module_id")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_context_module_progressions_on_root_account_id" ON "public"."context_module_progressions" ("root_account_id")[0m [- -] [1m[36mSQL (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_cmp_on_user_id_and_module_id" ON "public"."context_module_progressions" ("user_id", "context_module_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."context_module_progressions" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (1.1ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."context_module_progressions" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.6ms)[0m [1m[35mCREATE TABLE "public"."conversations" ("id" bigserial primary key, "private_hash" character varying(255), "has_attachments" boolean DEFAULT FALSE NOT NULL, "has_media_objects" boolean DEFAULT FALSE NOT NULL, "tags" text, "root_account_ids" text, "subject" character varying(255), "context_type" character varying(255), "context_id" bigint, "updated_at" timestamp)[0m [- -] [1m[36mSQL (5.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_conversations_on_private_hash" ON "public"."conversations" ("private_hash")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.8ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."conversations" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."conversations" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (10.9ms)[0m [1m[35mCREATE TABLE "public"."conversation_batches" ("id" bigserial primary key, "workflow_state" character varying(255) NOT NULL, "user_id" bigint NOT NULL CONSTRAINT "fk_rails_d068cb6c53" REFERENCES "public"."users" ("id"), "recipient_ids" text, "root_conversation_message_id" bigint NOT NULL, "conversation_message_ids" text, "tags" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "context_type" character varying(255), "context_id" bigint, "subject" character varying(255), "group" boolean, "generate_user_note" boolean)[0m [- -] [1m[36mSQL (3.7ms)[0m [1m[35mCREATE INDEX "index_conversation_batches_on_root_conversation_message_id" ON "public"."conversation_batches" ("root_conversation_message_id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_conversation_batches_on_user_id_and_workflow_state" ON "public"."conversation_batches" ("user_id", "workflow_state")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."conversation_batches" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."conversation_batches" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (65.3ms)[0m [1m[35mCREATE TABLE "public"."conversation_messages" ("id" bigserial primary key, "conversation_id" bigint CONSTRAINT "fk_rails_c3c322d882" REFERENCES "public"."conversations" ("id"), "author_id" bigint, "created_at" timestamp, "generated" boolean, "body" text, "forwarded_message_ids" text, "media_comment_id" character varying(255), "media_comment_type" character varying(255), "context_id" bigint, "context_type" character varying(255), "asset_id" bigint, "asset_type" character varying(255), "attachment_ids" text, "has_attachments" boolean, "has_media_objects" boolean, "root_account_ids" text)[0m [- -] [1m[36mSQL (2.8ms)[0m [1m[35mCREATE INDEX "index_conversation_messages_on_author_id" ON "public"."conversation_messages" ("author_id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_conversation_messages_on_conversation_id_and_created_at" ON "public"."conversation_messages" ("conversation_id", "created_at")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."conversation_messages" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."conversation_messages" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.2ms)[0m [1m[35mCREATE TABLE "public"."conversation_message_participants" ("id" bigserial primary key, "conversation_message_id" bigint CONSTRAINT "fk_rails_992a8b9e13" REFERENCES "public"."conversation_messages" ("id"), "conversation_participant_id" bigint, "tags" text, "user_id" bigint, "workflow_state" character varying(255), "deleted_at" timestamp, "root_account_ids" text)[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_conversation_message_participants_on_message_id" ON "public"."conversation_message_participants" ("conversation_message_id")[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_conversation_message_participants_on_deleted_at" ON "public"."conversation_message_participants" ("deleted_at")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_cmp_on_cpi_and_cmi" ON "public"."conversation_message_participants" ("conversation_participant_id", "conversation_message_id")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_conversation_message_participants_on_uid_and_message_id" ON "public"."conversation_message_participants" ("user_id", "conversation_message_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.8ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."conversation_message_participants" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."conversation_message_participants" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.2ms)[0m [1m[35mCREATE TABLE "public"."conversation_participants" ("id" bigserial primary key, "conversation_id" bigint NOT NULL, "user_id" bigint NOT NULL, "last_message_at" timestamp, "subscribed" boolean DEFAULT TRUE, "workflow_state" character varying(255) NOT NULL, "last_authored_at" timestamp, "has_attachments" boolean DEFAULT FALSE NOT NULL, "has_media_objects" boolean DEFAULT FALSE NOT NULL, "message_count" integer DEFAULT 0, "label" character varying(255), "tags" text, "visible_last_authored_at" timestamp, "root_account_ids" text, "private_hash" character varying(255), "updated_at" timestamp)[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE INDEX "index_conversation_participants_unread_on_user_id" ON "public"."conversation_participants" ("user_id") WHERE workflow_state = 'unread'[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_conversation_participants_on_user_id_and_last_message_at" ON "public"."conversation_participants" ("user_id", "last_message_at")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_conversation_participants_on_conversation_id_and_user_id" ON "public"."conversation_participants" ("conversation_id", "user_id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_conversation_participants_on_private_hash_and_user_id" ON "public"."conversation_participants" ("private_hash", "user_id") WHERE private_hash IS NOT NULL[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.8ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."conversation_participants" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."conversation_participants" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.2ms)[0m [1m[35mCREATE TABLE "public"."course_account_associations" ("id" bigserial primary key, "course_id" bigint NOT NULL CONSTRAINT "fk_rails_4e21d15465" REFERENCES "public"."courses" ("id"), "account_id" bigint NOT NULL CONSTRAINT "fk_rails_7d50d15200" REFERENCES "public"."accounts" ("id"), "depth" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "course_section_id" bigint, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_83b1438238" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_course_account_associations_on_course_section_id" ON "public"."course_account_associations" ("course_section_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_course_account_associations_replica_identity" ON "public"."course_account_associations" ("root_account_id", "id")[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_course_account_associations_on_account_id_and_depth_id" ON "public"."course_account_associations" ("account_id", "depth")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_caa_on_course_id_and_section_id_and_account_id" ON "public"."course_account_associations" ("course_id", "course_section_id", "account_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."course_account_associations" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."course_account_associations" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (9.6ms)[0m [1m[35mCREATE TABLE "public"."course_paces" ("id" bigserial primary key, "course_id" bigint NOT NULL CONSTRAINT "fk_rails_2f83a182a8" REFERENCES "public"."courses" ("id"), "course_section_id" bigint, "user_id" bigint, "workflow_state" character varying(255) DEFAULT 'unpublished' NOT NULL, "end_date" date, "exclude_weekends" boolean DEFAULT TRUE NOT NULL, "hard_end_dates" boolean DEFAULT FALSE NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "published_at" timestamp, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_12fc8e8331" REFERENCES "public"."accounts" ("id"), "migration_id" character varying)[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_course_paces_on_course_id" ON "public"."course_paces" ("course_id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_course_paces_replica_identity" ON "public"."course_paces" ("root_account_id", "id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "course_paces_unique_primary_plan_index" ON "public"."course_paces" ("course_id") WHERE course_section_id IS NULL AND user_id IS NULL AND workflow_state='active'[0m [- -] [1m[36mSQL (2.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_course_paces_on_course_section_id" ON "public"."course_paces" ("course_section_id") WHERE workflow_state='active'[0m [- -] [1m[36mSQL (2.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_course_paces_on_course_id_and_user_id" ON "public"."course_paces" ("course_id", "user_id") WHERE workflow_state='active'[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."course_paces" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."course_paces" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.6ms)[0m [1m[35mCREATE TABLE "public"."course_pace_module_items" ("id" bigserial primary key, "course_pace_id" bigint CONSTRAINT "fk_rails_5b2f18ae32" REFERENCES "public"."course_paces" ("id"), "duration" integer DEFAULT 0 NOT NULL, "module_item_id" bigint CONSTRAINT "fk_rails_ee4fdfc40d" REFERENCES "public"."content_tags" ("id"), "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_4ca1736ec9" REFERENCES "public"."accounts" ("id"), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "migration_id" character varying)[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_course_pace_module_items_on_course_pace_id" ON "public"."course_pace_module_items" ("course_pace_id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_course_pace_module_items_on_module_item_id" ON "public"."course_pace_module_items" ("module_item_id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_course_pace_module_items_replica_identity" ON "public"."course_pace_module_items" ("root_account_id", "id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."course_pace_module_items" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."course_pace_module_items" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.2ms)[0m [1m[35mCREATE TABLE "public"."course_score_statistics" ("id" bigserial primary key, "course_id" bigint NOT NULL CONSTRAINT "fk_rails_b90138cf50" REFERENCES "public"."courses" ("id"), "average" decimal(8,2) NOT NULL, "score_count" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_course_score_statistics_on_course_id" ON "public"."course_score_statistics" ("course_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."course_score_statistics" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."course_score_statistics" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (11.7ms)[0m [1m[35mCREATE TABLE "public"."course_sections" ("id" bigserial primary key, "sis_source_id" character varying(255), "sis_batch_id" bigint CONSTRAINT "fk_rails_e050b590bb" REFERENCES "public"."sis_batches" ("id"), "course_id" bigint NOT NULL CONSTRAINT "fk_rails_616bd9cbd0" REFERENCES "public"."courses" ("id"), "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_4a0eb6ebbb" REFERENCES "public"."accounts" ("id"), "enrollment_term_id" bigint, "name" character varying(255) NOT NULL, "default_section" boolean, "accepting_enrollments" boolean, "can_manually_enroll" boolean, "start_at" timestamp, "end_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "workflow_state" character varying(255) DEFAULT 'active' NOT NULL, "restrict_enrollments_to_section_dates" boolean, "nonxlist_course_id" bigint CONSTRAINT "fk_rails_e0676f34c7" REFERENCES "public"."courses" ("id"), "stuck_sis_fields" text, "integration_id" character varying(255))[0m [- -] [1m[36mSQL (2.5ms)[0m [1m[35mCREATE INDEX "index_course_sections_on_sis_batch_id" ON "public"."course_sections" ("sis_batch_id") WHERE sis_batch_id IS NOT NULL[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_course_sections_on_course_id" ON "public"."course_sections" ("course_id")[0m [- -] [1m[36mSQL (2.6ms)[0m [1m[35mCREATE INDEX "index_course_sections_on_enrollment_term_id" ON "public"."course_sections" ("enrollment_term_id")[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE INDEX "index_course_sections_on_nonxlist_course" ON "public"."course_sections" ("nonxlist_course_id") WHERE nonxlist_course_id IS NOT NULL[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_course_sections_replica_identity" ON "public"."course_sections" ("root_account_id", "id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_course_sections_on_sis_source_id_and_root_account_id" ON "public"."course_sections" ("sis_source_id", "root_account_id") WHERE sis_source_id IS NOT NULL[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_integration_id" ON "public"."course_sections" ("integration_id", "root_account_id") WHERE integration_id IS NOT NULL[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_course_sections_unique_default_section" ON "public"."course_sections" ("course_id") WHERE default_section = 't' AND workflow_state <> 'deleted'[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."course_sections" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."course_sections" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (4.3ms)[0m [1m[35mCREATE TABLE "public"."crocodoc_documents" ("id" bigserial primary key, "uuid" character varying(255), "process_state" character varying(255), "attachment_id" bigint, "created_at" timestamp, "updated_at" timestamp)[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_crocodoc_documents_on_uuid" ON "public"."crocodoc_documents" ("uuid")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_crocodoc_documents_on_process_state" ON "public"."crocodoc_documents" ("process_state")[0m [- -] [1m[36mSQL (1.2ms)[0m [1m[35mCREATE INDEX "index_crocodoc_documents_on_attachment_id" ON "public"."crocodoc_documents" ("attachment_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."crocodoc_documents" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."crocodoc_documents" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.9ms)[0m [1m[35mCREATE TABLE "public"."csp_domains" ("id" bigserial primary key, "account_id" bigint NOT NULL CONSTRAINT "fk_rails_c597b23595" REFERENCES "public"."accounts" ("id"), "domain" character varying(255) NOT NULL, "workflow_state" character varying(255) NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_csp_domains_on_account_id_and_domain" ON "public"."csp_domains" ("account_id", "domain")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_csp_domains_on_account_id_and_workflow_state" ON "public"."csp_domains" ("account_id", "workflow_state")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."csp_domains" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."csp_domains" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.5ms)[0m [1m[35mCREATE TABLE "public"."custom_data" ("id" bigserial primary key, "data" text, "namespace" character varying(255), "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_custom_data_on_user_id_and_namespace" ON "public"."custom_data" ("user_id", "namespace")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."custom_data" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."custom_data" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (4.9ms)[0m [1m[35mCREATE TABLE "public"."custom_grade_statuses" ("id" bigserial primary key, "color" character varying(7) NOT NULL, "name" character varying(14) NOT NULL, "workflow_state" character varying(255) DEFAULT 'active' NOT NULL, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_722fec664d" REFERENCES "public"."accounts" ("id"), "created_by_id" bigint NOT NULL CONSTRAINT "fk_rails_241d38373b" REFERENCES "public"."users" ("id"), "deleted_by_id" bigint CONSTRAINT "fk_rails_a3d1fcbecd" REFERENCES "public"."users" ("id"), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "applies_to_submissions" boolean DEFAULT TRUE NOT NULL, "applies_to_final_grade" boolean DEFAULT TRUE NOT NULL, "allow_final_grade_value" boolean DEFAULT TRUE NOT NULL)[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_custom_grade_statuses_on_created_by_id" ON "public"."custom_grade_statuses" ("created_by_id")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_custom_grade_statuses_on_deleted_by_id" ON "public"."custom_grade_statuses" ("deleted_by_id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_custom_grade_statuses_replica_identity" ON "public"."custom_grade_statuses" ("root_account_id", "id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."custom_grade_statuses" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."custom_grade_statuses" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.3ms)[0m [1m[35mCREATE TABLE "public"."custom_gradebook_columns" ("id" bigserial primary key, "title" character varying(255) NOT NULL, "position" integer NOT NULL, "workflow_state" character varying(255) DEFAULT 'active' NOT NULL, "course_id" bigint NOT NULL CONSTRAINT "fk_rails_571a48e40d" REFERENCES "public"."courses" ("id"), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "teacher_notes" boolean DEFAULT FALSE NOT NULL, "read_only" boolean DEFAULT FALSE NOT NULL, "root_account_id" bigint CONSTRAINT "fk_rails_b72c4423d7" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE INDEX "index_custom_gradebook_columns_on_course_id" ON "public"."custom_gradebook_columns" ("course_id")[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE INDEX "index_custom_gradebook_columns_on_root_account_id" ON "public"."custom_gradebook_columns" ("root_account_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."custom_gradebook_columns" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."custom_gradebook_columns" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (3.8ms)[0m [1m[35mCREATE TABLE "public"."custom_gradebook_column_data" ("id" bigserial primary key, "content" character varying(255) NOT NULL, "user_id" bigint NOT NULL CONSTRAINT "fk_rails_bc039f962e" REFERENCES "public"."users" ("id"), "custom_gradebook_column_id" bigint NOT NULL CONSTRAINT "fk_rails_b2d446b0b0" REFERENCES "public"."custom_gradebook_columns" ("id"), "root_account_id" bigint CONSTRAINT "fk_rails_a6263ab6ab" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_custom_gradebook_column_data_on_user_id" ON "public"."custom_gradebook_column_data" ("user_id")[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE INDEX "index_custom_gradebook_column_data_on_root_account_id" ON "public"."custom_gradebook_column_data" ("root_account_id")[0m [- -] [1m[36mSQL (1.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_custom_gradebook_column_data_unique_column_and_user" ON "public"."custom_gradebook_column_data" ("custom_gradebook_column_id", "user_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."custom_gradebook_column_data" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."custom_gradebook_column_data" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (4.8ms)[0m [1m[35mCREATE TABLE "public"."delayed_messages" ("id" bigserial primary key, "notification_id" bigint, "notification_policy_id" bigint, "context_id" bigint, "context_type" character varying(255), "communication_channel_id" bigint CONSTRAINT "fk_rails_3d428ac9f1" REFERENCES "public"."communication_channels" ("id"), "frequency" character varying(255), "workflow_state" character varying(255), "batched_at" timestamp, "created_at" timestamp, "updated_at" timestamp, "send_at" timestamp, "link" text, "name_of_topic" text, "summary" text, "root_account_id" bigint, "notification_policy_override_id" bigint)[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_delayed_messages_on_notification_policy_id" ON "public"."delayed_messages" ("notification_policy_id")[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE INDEX "by_sent_at" ON "public"."delayed_messages" ("send_at")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_delayed_messages_on_notification_policy_override_id" ON "public"."delayed_messages" ("notification_policy_override_id") WHERE notification_policy_override_id IS NOT NULL[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "ws_sa" ON "public"."delayed_messages" ("workflow_state", "send_at")[0m [- -] [1m[36mSQL (1.2ms)[0m [1m[35mCREATE INDEX "ccid_raid_ws_sa" ON "public"."delayed_messages" ("communication_channel_id", "root_account_id", "workflow_state", "send_at")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_delayed_messages_pending" ON "public"."delayed_messages" ("send_at") WHERE workflow_state = 'pending'[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."delayed_messages" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."delayed_messages" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (4.7ms)[0m [1m[35mCREATE TABLE "public"."delayed_notifications" ("id" bigserial primary key, "notification_id" bigint NOT NULL, "asset_id" bigint NOT NULL, "asset_type" character varying(255) NOT NULL, "recipient_keys" text, "workflow_state" character varying(255) NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."delayed_notifications" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."delayed_notifications" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.4ms)[0m [1m[35mCREATE TABLE "public"."developer_keys" ("id" bigserial primary key, "api_key" character varying(255), "email" character varying(255), "user_name" character varying(255), "account_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "user_id" bigint, "name" character varying(255), "redirect_uri" character varying(255), "icon_url" character varying(255), "sns_arn" character varying(255), "trusted" boolean, "force_token_reuse" boolean, "workflow_state" character varying(255) DEFAULT 'active' NOT NULL, "replace_tokens" boolean, "auto_expire_tokens" boolean DEFAULT FALSE NOT NULL, "redirect_uris" character varying(4096)[] DEFAULT '{}' NOT NULL, "notes" text, "access_token_count" integer DEFAULT 0 NOT NULL, "vendor_code" character varying, "visible" boolean DEFAULT FALSE NOT NULL, "scopes" text, "require_scopes" boolean DEFAULT FALSE NOT NULL, "test_cluster_only" boolean DEFAULT FALSE NOT NULL, "public_jwk" jsonb, "internal_service" boolean DEFAULT FALSE NOT NULL, "oidc_initiation_url" text, "public_jwk_url" character varying, "is_lti_key" boolean DEFAULT FALSE NOT NULL, "allow_includes" boolean DEFAULT FALSE NOT NULL, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_777bedfd18" REFERENCES "public"."accounts" ("id"), "client_credentials_audience" character varying, "service_user_id" bigint CONSTRAINT "fk_rails_5e370c2560" REFERENCES "public"."users" ("id"))[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_developer_keys_on_vendor_code" ON "public"."developer_keys" ("vendor_code")[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_developer_keys_on_service_user_id" ON "public"."developer_keys" ("service_user_id") WHERE service_user_id IS NOT NULL[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_developer_keys_replica_identity" ON "public"."developer_keys" ("root_account_id", "id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."developer_keys" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."developer_keys" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.4ms)[0m [1m[35mCREATE TABLE "public"."developer_key_account_bindings" ("id" bigserial primary key, "account_id" bigint NOT NULL CONSTRAINT "fk_rails_8435015b54" REFERENCES "public"."accounts" ("id"), "developer_key_id" bigint NOT NULL, "workflow_state" character varying DEFAULT 'off' NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_f8286c83f0" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_developer_key_account_bindings_on_developer_key_id" ON "public"."developer_key_account_bindings" ("developer_key_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_developer_key_account_bindings_replica_identity" ON "public"."developer_key_account_bindings" ("root_account_id", "id")[0m [- -] [1m[36mSQL (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_dev_key_bindings_on_account_id_and_developer_key_id" ON "public"."developer_key_account_bindings" ("account_id", "developer_key_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."developer_key_account_bindings" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."developer_key_account_bindings" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (8.5ms)[0m [1m[35mCREATE TABLE "public"."discussion_entries" ("id" bigserial primary key, "message" text, "discussion_topic_id" bigint, "user_id" bigint CONSTRAINT "fk_rails_9b275b5da7" REFERENCES "public"."users" ("id"), "parent_id" bigint CONSTRAINT "fk_rails_8a7187368b" REFERENCES "public"."discussion_entries" ("id"), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "attachment_id" bigint, "workflow_state" character varying(255) DEFAULT 'active', "deleted_at" timestamp, "migration_id" character varying(255), "editor_id" bigint CONSTRAINT "fk_rails_846fecac98" REFERENCES "public"."users" ("id"), "root_entry_id" bigint CONSTRAINT "fk_rails_2a02569030" REFERENCES "public"."discussion_entries" ("id"), "depth" integer, "rating_count" integer, "rating_sum" integer, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_70b05820ac" REFERENCES "public"."accounts" ("id"), "legacy" boolean DEFAULT TRUE NOT NULL, "include_reply_preview" boolean DEFAULT FALSE NOT NULL, "is_anonymous_author" boolean DEFAULT FALSE NOT NULL, "quoted_entry_id" bigint CONSTRAINT "fk_rails_68ae881f28" REFERENCES "public"."discussion_entries" ("id"))[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_discussion_entries_on_user_id" ON "public"."discussion_entries" ("user_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_discussion_entries_on_parent_id" ON "public"."discussion_entries" ("parent_id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_discussion_entries_on_editor_id" ON "public"."discussion_entries" ("editor_id") WHERE editor_id IS NOT NULL[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_discussion_entries_on_quoted_entry_id" ON "public"."discussion_entries" ("quoted_entry_id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_discussion_entries_replica_identity" ON "public"."discussion_entries" ("root_account_id", "id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_discussion_entries_root_entry" ON "public"."discussion_entries" ("root_entry_id", "workflow_state", "created_at")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_discussion_entries_for_topic" ON "public"."discussion_entries" ("discussion_topic_id", "updated_at", "created_at")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_discussion_entries_active_on_user_id_and_topic" ON "public"."discussion_entries" ("user_id", "discussion_topic_id") WHERE workflow_state <> 'deleted'[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."discussion_entries" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."discussion_entries" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.6ms)[0m [1m[35mCREATE TABLE "public"."discussion_entry_drafts" ("id" bigserial primary key, "discussion_topic_id" bigint NOT NULL, "discussion_entry_id" bigint CONSTRAINT "fk_rails_6e6a7d2c3f" REFERENCES "public"."discussion_entries" ("id"), "root_entry_id" bigint CONSTRAINT "fk_rails_9bc52af304" REFERENCES "public"."discussion_entries" ("id"), "parent_id" bigint CONSTRAINT "fk_rails_7d5386d2d8" REFERENCES "public"."discussion_entries" ("id"), "attachment_id" bigint CONSTRAINT "fk_rails_ab28e49c6a" REFERENCES "public"."attachments" ("id"), "user_id" bigint NOT NULL CONSTRAINT "fk_rails_2cafc2a389" REFERENCES "public"."users" ("id"), "message" text, "include_reply_preview" boolean DEFAULT FALSE NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_discussion_entry_drafts_on_discussion_topic_id" ON "public"."discussion_entry_drafts" ("discussion_topic_id")[0m [- -] [1m[36mSQL (1.2ms)[0m [1m[35mCREATE INDEX "index_discussion_entry_drafts_on_root_entry_id" ON "public"."discussion_entry_drafts" ("root_entry_id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_discussion_entry_drafts_on_parent_id" ON "public"."discussion_entry_drafts" ("parent_id")[0m [- -] [1m[36mSQL (1.2ms)[0m [1m[35mCREATE INDEX "index_discussion_entry_drafts_on_attachment_id" ON "public"."discussion_entry_drafts" ("attachment_id")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_discussion_entry_drafts_on_user_id" ON "public"."discussion_entry_drafts" ("user_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "unique_index_on_topic_and_user" ON "public"."discussion_entry_drafts" ("discussion_topic_id", "user_id") WHERE discussion_entry_id IS NULL AND root_entry_id IS NULL[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE UNIQUE INDEX "unique_index_on_root_entry_and_user" ON "public"."discussion_entry_drafts" ("root_entry_id", "user_id") WHERE discussion_entry_id IS NULL[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE UNIQUE INDEX "unique_index_on_entry_and_user" ON "public"."discussion_entry_drafts" ("discussion_entry_id", "user_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."discussion_entry_drafts" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."discussion_entry_drafts" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (8.3ms)[0m [1m[35mCREATE TABLE "public"."discussion_entry_participants" ("id" bigserial primary key, "discussion_entry_id" bigint NOT NULL CONSTRAINT "fk_rails_86a01cf993" REFERENCES "public"."discussion_entries" ("id"), "user_id" bigint NOT NULL CONSTRAINT "fk_rails_c376b0a4c9" REFERENCES "public"."users" ("id"), "workflow_state" character varying(255) NOT NULL, "forced_read_state" boolean, "rating" integer, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_ef55fe937a" REFERENCES "public"."accounts" ("id"), "report_type" character varying(255), "read_at" timestamp)[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_discussion_entry_participants_on_user_id" ON "public"."discussion_entry_participants" ("user_id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_discussion_entry_participants_replica_identity" ON "public"."discussion_entry_participants" ("root_account_id", "id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_entry_participant_on_entry_id_and_user_id" ON "public"."discussion_entry_participants" ("discussion_entry_id", "user_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."discussion_entry_participants" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."discussion_entry_participants" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.6ms)[0m [1m[35mCREATE TABLE "public"."discussion_entry_versions" ("id" bigserial primary key, "discussion_entry_id" bigint NOT NULL CONSTRAINT "fk_rails_edbaa1d580" REFERENCES "public"."discussion_entries" ("id"), "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_4cf3ce0354" REFERENCES "public"."accounts" ("id"), "user_id" bigint CONSTRAINT "fk_rails_c4676280b0" REFERENCES "public"."users" ("id"), "version" bigint, "message" text, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_discussion_entry_versions_on_discussion_entry_id" ON "public"."discussion_entry_versions" ("discussion_entry_id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_discussion_entry_versions_on_user_id" ON "public"."discussion_entry_versions" ("user_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_discussion_entry_versions_replica_identity" ON "public"."discussion_entry_versions" ("root_account_id", "id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."discussion_entry_versions" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."discussion_entry_versions" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (11.9ms)[0m [1m[35mCREATE TABLE "public"."discussion_topics" ("id" bigserial primary key, "title" character varying(255), "message" text, "context_id" bigint NOT NULL, "context_type" character varying(255) NOT NULL, "type" character varying(255), "user_id" bigint CONSTRAINT "fk_rails_99a031cbb1" REFERENCES "public"."users" ("id"), "workflow_state" character varying(255) NOT NULL, "last_reply_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "delayed_post_at" timestamp, "posted_at" timestamp, "assignment_id" bigint CONSTRAINT "fk_rails_98edc2f77e" REFERENCES "public"."assignments" ("id"), "attachment_id" bigint CONSTRAINT "fk_rails_9b3acbc3f8" REFERENCES "public"."attachments" ("id"), "deleted_at" timestamp, "root_topic_id" bigint CONSTRAINT "fk_rails_4aac5d137c" REFERENCES "public"."discussion_topics" ("id"), "could_be_locked" boolean DEFAULT FALSE NOT NULL, "cloned_item_id" bigint CONSTRAINT "fk_rails_da3248778d" REFERENCES "public"."cloned_items" ("id"), "context_code" character varying(255), "position" integer, "migration_id" character varying(255), "old_assignment_id" bigint CONSTRAINT "fk_rails_6791d1877c" REFERENCES "public"."assignments" ("id"), "subtopics_refreshed_at" timestamp, "last_assignment_id" bigint, "external_feed_id" bigint, "editor_id" bigint CONSTRAINT "fk_rails_ef64949942" REFERENCES "public"."users" ("id"), "podcast_enabled" boolean DEFAULT FALSE NOT NULL, "podcast_has_student_posts" boolean DEFAULT FALSE NOT NULL, "require_initial_post" boolean DEFAULT FALSE NOT NULL, "discussion_type" character varying(255), "lock_at" timestamp, "pinned" boolean DEFAULT FALSE NOT NULL, "locked" boolean DEFAULT FALSE NOT NULL, "group_category_id" bigint, "allow_rating" boolean DEFAULT FALSE NOT NULL, "only_graders_can_rate" boolean DEFAULT FALSE NOT NULL, "sort_by_rating" boolean DEFAULT FALSE NOT NULL, "todo_date" timestamp, "is_section_specific" boolean DEFAULT FALSE NOT NULL, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_ecbbce6901" REFERENCES "public"."accounts" ("id"), "anonymous_state" character varying(255), "is_anonymous_author" boolean DEFAULT FALSE NOT NULL, "reply_to_entry_required_count" integer DEFAULT 0 NOT NULL, "unlock_at" timestamp(6), "only_visible_to_overrides" boolean DEFAULT FALSE NOT NULL)[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_discussion_topics_on_user_id" ON "public"."discussion_topics" ("user_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_discussion_topics_on_workflow_state" ON "public"."discussion_topics" ("workflow_state")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_discussion_topics_on_assignment_id" ON "public"."discussion_topics" ("assignment_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_discussion_topics_on_attachment_id" ON "public"."discussion_topics" ("attachment_id") WHERE attachment_id IS NOT NULL[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_discussion_topics_on_root_topic_id" ON "public"."discussion_topics" ("root_topic_id")[0m [- -] [1m[36mSQL (2.9ms)[0m [1m[35mCREATE INDEX "index_discussion_topics_on_cloned_item_id" ON "public"."discussion_topics" ("cloned_item_id") WHERE cloned_item_id IS NOT NULL[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_discussion_topics_on_old_assignment_id" ON "public"."discussion_topics" ("old_assignment_id") WHERE old_assignment_id IS NOT NULL[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_discussion_topics_on_external_feed_id" ON "public"."discussion_topics" ("external_feed_id") WHERE external_feed_id IS NOT NULL[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_discussion_topics_on_editor_id" ON "public"."discussion_topics" ("editor_id") WHERE editor_id IS NOT NULL[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_discussion_topics_on_group_category_id" ON "public"."discussion_topics" ("group_category_id") WHERE group_category_id IS NOT NULL[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_discussion_topics_replica_identity" ON "public"."discussion_topics" ("root_account_id", "id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_discussion_topics_on_context_id_and_position" ON "public"."discussion_topics" ("context_id", "position")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_discussion_topics_on_id_and_type" ON "public"."discussion_topics" ("id", "type")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_discussion_topics_unique_subtopic_per_context" ON "public"."discussion_topics" ("context_id", "context_type", "root_topic_id")[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE INDEX "index_discussion_topics_on_context_and_last_reply_at" ON "public"."discussion_topics" ("context_id", "last_reply_at")[0m [- -] [1m[36mSQL (0.8ms)[0m [1m[35mCREATE INDEX "index_gin_trgm_discussion_topics_title" ON "public"."discussion_topics" USING gin (LOWER(title) public.gin_trgm_ops)[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."discussion_topics" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."discussion_topics" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (4.5ms)[0m [1m[35mCREATE TABLE "public"."discussion_topic_materialized_views" ("discussion_topic_id" bigint NOT NULL CONSTRAINT "fk_rails_34dd2d679a" REFERENCES "public"."discussion_topics" ("id"), "json_structure" text, "participants_array" text, "entry_ids_array" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "generation_started_at" timestamp, PRIMARY KEY ("discussion_topic_id"))[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."discussion_topic_materialized_views" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."discussion_topic_materialized_views" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (8.9ms)[0m [1m[35mCREATE TABLE "public"."discussion_topic_participants" ("id" bigserial primary key, "discussion_topic_id" bigint NOT NULL CONSTRAINT "fk_rails_fb902be971" REFERENCES "public"."discussion_topics" ("id"), "user_id" bigint NOT NULL CONSTRAINT "fk_rails_3b8c3c44d8" REFERENCES "public"."users" ("id"), "unread_entry_count" integer DEFAULT 0 NOT NULL, "workflow_state" character varying(255) NOT NULL, "subscribed" boolean, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_7ec1da0578" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_discussion_topic_participants_on_user_id" ON "public"."discussion_topic_participants" ("user_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_discussion_topic_participants_replica_identity" ON "public"."discussion_topic_participants" ("root_account_id", "id")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_topic_participant_on_topic_id_and_user_id" ON "public"."discussion_topic_participants" ("discussion_topic_id", "user_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."discussion_topic_participants" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."discussion_topic_participants" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.8ms)[0m [1m[35mCREATE TABLE "public"."discussion_topic_section_visibilities" ("id" bigserial primary key, "discussion_topic_id" bigint NOT NULL CONSTRAINT "fk_rails_2456b918f5" REFERENCES "public"."discussion_topics" ("id"), "course_section_id" bigint NOT NULL CONSTRAINT "fk_rails_e0c6be759a" REFERENCES "public"."course_sections" ("id"), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "workflow_state" character varying(255) NOT NULL)[0m [- -] [1m[36mSQL (6.7ms)[0m [1m[35mCREATE INDEX "idx_discussion_topic_section_visibility_on_topic" ON "public"."discussion_topic_section_visibilities" ("discussion_topic_id")[0m [- -] [1m[36mSQL (3.0ms)[0m [1m[35mCREATE INDEX "idx_discussion_topic_section_visibility_on_section" ON "public"."discussion_topic_section_visibilities" ("course_section_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."discussion_topic_section_visibilities" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."discussion_topic_section_visibilities" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (8.3ms)[0m [1m[35mCREATE TABLE "public"."enrollment_dates_overrides" ("id" bigserial primary key, "enrollment_term_id" bigint, "enrollment_type" character varying(255), "context_id" bigint NOT NULL, "context_type" character varying(255), "start_at" timestamp, "end_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "root_account_id" bigint CONSTRAINT "fk_rails_b6e1788535" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_enrollment_dates_overrides_on_enrollment_term_id" ON "public"."enrollment_dates_overrides" ("enrollment_term_id")[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE INDEX "index_enrollment_dates_overrides_on_root_account_id" ON "public"."enrollment_dates_overrides" ("root_account_id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollment_dates_overrides_replica_identity" ON "public"."enrollment_dates_overrides" ("context_id", "id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."enrollment_dates_overrides" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."enrollment_dates_overrides" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.4ms)[0m [1m[35mCREATE TABLE "public"."enrollment_states" ("enrollment_id" bigint NOT NULL, "state" character varying(255), "state_is_current" boolean DEFAULT FALSE NOT NULL, "state_started_at" timestamp, "state_valid_until" timestamp, "restricted_access" boolean DEFAULT FALSE NOT NULL, "access_is_current" boolean DEFAULT FALSE NOT NULL, "lock_version" integer DEFAULT 0 NOT NULL, "updated_at" timestamp, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_343745d2d7" REFERENCES "public"."accounts" ("id"), PRIMARY KEY ("enrollment_id"))[0m [- -] [1m[36mSQL (41.5ms)[0m [1m[35mCREATE INDEX "index_enrollment_states_on_state" ON "public"."enrollment_states" ("state")[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE INDEX "index_enrollment_states_on_state_valid_until" ON "public"."enrollment_states" ("state_valid_until")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollment_states_replica_identity" ON "public"."enrollment_states" ("root_account_id", "enrollment_id")[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_enrollment_states_on_currents" ON "public"."enrollment_states" ("state_is_current", "access_is_current")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."enrollment_states" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."enrollment_states" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (8.3ms)[0m [1m[35mCREATE TABLE "public"."enrollment_terms" ("id" bigserial primary key, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_e182f18b93" REFERENCES "public"."accounts" ("id"), "name" character varying(255), "term_code" character varying(255), "sis_source_id" character varying(255), "sis_batch_id" bigint CONSTRAINT "fk_rails_cb0782c2d2" REFERENCES "public"."sis_batches" ("id"), "start_at" timestamp, "end_at" timestamp, "accepting_enrollments" boolean, "can_manually_enroll" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "workflow_state" character varying(255) DEFAULT 'active' NOT NULL, "stuck_sis_fields" text, "integration_id" character varying(255), "grading_period_group_id" bigint)[0m [- -] [1m[36mSQL (2.5ms)[0m [1m[35mCREATE INDEX "index_enrollment_terms_on_sis_batch_id" ON "public"."enrollment_terms" ("sis_batch_id") WHERE sis_batch_id IS NOT NULL[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_enrollment_terms_on_grading_period_group_id" ON "public"."enrollment_terms" ("grading_period_group_id")[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollment_terms_replica_identity" ON "public"."enrollment_terms" ("root_account_id", "id")[0m [- -] [1m[36mSQL (2.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollment_terms_on_sis_source_id_and_root_account_id" ON "public"."enrollment_terms" ("sis_source_id", "root_account_id") WHERE sis_source_id IS NOT NULL[0m [- -] [1m[36mSQL (2.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_integration_id" ON "public"."enrollment_terms" ("integration_id", "root_account_id") WHERE integration_id IS NOT NULL[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."enrollment_terms" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."enrollment_terms" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (16.8ms)[0m [1m[35mCREATE TABLE "public"."enrollments" ("id" bigserial primary key, "user_id" bigint NOT NULL CONSTRAINT "fk_rails_e860e0e46b" REFERENCES "public"."users" ("id"), "course_id" bigint NOT NULL CONSTRAINT "fk_rails_2e119501f4" REFERENCES "public"."courses" ("id"), "type" character varying(255) NOT NULL, "uuid" character varying(255), "workflow_state" character varying(255) NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "associated_user_id" bigint CONSTRAINT "fk_rails_6359366b63" REFERENCES "public"."users" ("id"), "sis_batch_id" bigint CONSTRAINT "fk_rails_56c4ec50d6" REFERENCES "public"."sis_batches" ("id"), "start_at" timestamp, "end_at" timestamp, "course_section_id" bigint NOT NULL CONSTRAINT "fk_rails_bbf3738e95" REFERENCES "public"."course_sections" ("id"), "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_df257dd853" REFERENCES "public"."accounts" ("id"), "completed_at" timestamp, "self_enrolled" boolean, "grade_publishing_status" character varying(255) DEFAULT 'unpublished', "last_publish_attempt_at" timestamp, "stuck_sis_fields" text, "grade_publishing_message" text, "limit_privileges_to_course_section" boolean DEFAULT FALSE NOT NULL, "last_activity_at" timestamp, "total_activity_time" integer, "role_id" bigint NOT NULL, "graded_at" timestamp, "sis_pseudonym_id" bigint, "last_attended_at" timestamp, "temporary_enrollment_source_user_id" bigint CONSTRAINT "fk_rails_3508166a21" REFERENCES "public"."users" ("id"), "temporary_enrollment_pairing_id" bigint)[0m [- -] [1m[36mSQL (3.4ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_user_id" ON "public"."enrollments" ("user_id")[0m [- -] [1m[36mSQL (4.3ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_course_when_active" ON "public"."enrollments" ("course_id") WHERE workflow_state = 'active'[0m [- -] [1m[36mSQL (4.1ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_uuid" ON "public"."enrollments" ("uuid")[0m [- -] [1m[36mSQL (5.7ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_workflow_state" ON "public"."enrollments" ("workflow_state")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_associated_user_id" ON "public"."enrollments" ("associated_user_id") WHERE associated_user_id IS NOT NULL[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_sis_batch_id" ON "public"."enrollments" ("sis_batch_id") WHERE sis_batch_id IS NOT NULL[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_sis_pseudonym_id" ON "public"."enrollments" ("sis_pseudonym_id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_temporary_enrollment_pairing_id" ON "public"."enrollments" ("temporary_enrollment_pairing_id") WHERE temporary_enrollment_pairing_id IS NOT NULL[0m [- -] [1m[36mSQL (2.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_replica_identity" ON "public"."enrollments" ("root_account_id", "id")[0m [- -] [1m[36mSQL (11.6ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_course_id_and_workflow_state" ON "public"."enrollments" ("course_id", "workflow_state")[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_root_account_id_and_course_id" ON "public"."enrollments" ("root_account_id", "course_id")[0m [- -] [1m[36mSQL (2.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_user_type_role_section_associated_user" ON "public"."enrollments" ("user_id", "type", "role_id", "course_section_id", "associated_user_id") WHERE associated_user_id IS NOT NULL[0m [- -] [1m[36mSQL (3.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_user_type_role_section" ON "public"."enrollments" ("user_id", "type", "role_id", "course_section_id") WHERE associated_user_id IS NULL [0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_course_id_and_user_id" ON "public"."enrollments" ("course_id", "user_id")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_role_id_and_user_id" ON "public"."enrollments" ("role_id", "user_id")[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_course_section_id_and_id" ON "public"."enrollments" ("course_section_id", "id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_course_id_and_id" ON "public"."enrollments" ("course_id", "id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_temp_enrollment_user_type_role_section" ON "public"."enrollments" ("temporary_enrollment_source_user_id", "user_id", "type", "role_id", "course_section_id") WHERE temporary_enrollment_source_user_id IS NOT NULL[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."enrollments" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."enrollments" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.6ms)[0m [1m[35mCREATE TABLE "public"."eportfolios" ("id" bigserial primary key, "user_id" bigint NOT NULL CONSTRAINT "fk_rails_4c2dbd440f" REFERENCES "public"."users" ("id"), "name" character varying(255), "public" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "uuid" character varying(255), "workflow_state" character varying(255) DEFAULT 'active' NOT NULL, "deleted_at" timestamp, "spam_status" character varying)[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_eportfolios_on_user_id" ON "public"."eportfolios" ("user_id")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_eportfolios_on_spam_status" ON "public"."eportfolios" ("spam_status")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."eportfolios" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."eportfolios" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.4ms)[0m [1m[35mCREATE TABLE "public"."eportfolio_categories" ("id" bigserial primary key, "eportfolio_id" bigint NOT NULL CONSTRAINT "fk_rails_ab14eddd76" REFERENCES "public"."eportfolios" ("id"), "name" character varying(255), "position" integer, "slug" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_eportfolio_categories_on_eportfolio_id" ON "public"."eportfolio_categories" ("eportfolio_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."eportfolio_categories" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."eportfolio_categories" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.3ms)[0m [1m[35mCREATE TABLE "public"."eportfolio_entries" ("id" bigserial primary key, "eportfolio_id" bigint NOT NULL CONSTRAINT "fk_rails_a3aa9184de" REFERENCES "public"."eportfolios" ("id"), "eportfolio_category_id" bigint NOT NULL CONSTRAINT "fk_rails_482dbada33" REFERENCES "public"."eportfolio_categories" ("id"), "position" integer, "name" character varying(255), "allow_comments" boolean, "show_comments" boolean, "slug" character varying(255), "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_eportfolio_entries_on_eportfolio_id" ON "public"."eportfolio_entries" ("eportfolio_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_eportfolio_entries_on_eportfolio_category_id" ON "public"."eportfolio_entries" ("eportfolio_category_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."eportfolio_entries" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."eportfolio_entries" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (10.9ms)[0m [1m[35mCREATE TABLE "public"."epub_exports" ("id" bigserial primary key, "content_export_id" bigint CONSTRAINT "fk_rails_7b64484d53" REFERENCES "public"."content_exports" ("id"), "course_id" bigint CONSTRAINT "fk_rails_8229c54d0d" REFERENCES "public"."courses" ("id"), "user_id" bigint CONSTRAINT "fk_rails_3c608dd796" REFERENCES "public"."users" ("id"), "workflow_state" character varying(255) DEFAULT 'created', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "type" character varying(255))[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_epub_exports_on_content_export_id" ON "public"."epub_exports" ("content_export_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_epub_exports_on_course_id" ON "public"."epub_exports" ("course_id")[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE INDEX "index_epub_exports_on_user_id" ON "public"."epub_exports" ("user_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."epub_exports" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."epub_exports" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.5ms)[0m [1m[35mCREATE TABLE "public"."error_reports" ("id" bigserial primary key, "backtrace" text, "url" text, "message" text, "comments" text, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp, "email" character varying(255), "during_tests" boolean DEFAULT FALSE, "user_agent" text, "request_method" character varying(255), "http_env" text, "subject" text, "request_context_id" character varying(255), "account_id" bigint, "zendesk_ticket_id" bigint, "data" text, "category" character varying(255))[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_error_reports_on_zendesk_ticket_id" ON "public"."error_reports" ("zendesk_ticket_id")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_error_reports_on_category" ON "public"."error_reports" ("category")[0m [- -] [1m[36mSQL (2.7ms)[0m [1m[35mCREATE INDEX "error_reports_created_at" ON "public"."error_reports" ("created_at")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.8ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."error_reports" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."error_reports" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (12.1ms)[0m [1m[35mCREATE TABLE "public"."event_stream_failures" ("id" bigserial primary key, "operation" character varying(255) NOT NULL, "event_stream" character varying(255) NOT NULL, "record_id" character varying(255) NOT NULL, "payload" text NOT NULL, "exception" text, "backtrace" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.9ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.8ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."event_stream_failures" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."event_stream_failures" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (8.5ms)[0m [1m[35mCREATE TABLE "public"."external_feeds" ("id" bigserial primary key, "user_id" bigint CONSTRAINT "fk_rails_7727e39b38" REFERENCES "public"."users" ("id"), "context_id" bigint NOT NULL, "context_type" character varying(255) NOT NULL, "consecutive_failures" integer, "failures" integer, "refresh_at" timestamp, "title" character varying(255), "url" character varying(255) NOT NULL, "header_match" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "verbosity" character varying(255), "migration_id" character varying(255))[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_external_feeds_on_user_id" ON "public"."external_feeds" ("user_id") WHERE user_id IS NOT NULL[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_external_feeds_on_context_id_and_context_type" ON "public"."external_feeds" ("context_id", "context_type")[0m [- -] [1m[36mSQL (37.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_external_feeds_uniquely_1" ON "public"."external_feeds" ("context_id", "context_type", "url", "verbosity") WHERE header_match IS NULL[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_external_feeds_uniquely_2" ON "public"."external_feeds" ("context_id", "context_type", "url", "header_match", "verbosity") WHERE header_match IS NOT NULL[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."external_feeds" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."external_feeds" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.3ms)[0m [1m[35mCREATE TABLE "public"."external_feed_entries" ("id" bigserial primary key, "user_id" bigint CONSTRAINT "fk_rails_e0397e1d17" REFERENCES "public"."users" ("id"), "external_feed_id" bigint NOT NULL CONSTRAINT "fk_rails_c8030518e8" REFERENCES "public"."external_feeds" ("id"), "title" text, "message" text, "source_name" character varying(255), "source_url" text, "posted_at" timestamp, "workflow_state" character varying(255) NOT NULL, "url" text, "author_name" character varying(255), "author_email" character varying(255), "author_url" text, "asset_id" bigint, "asset_type" character varying(255), "uuid" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_external_feed_entries_on_user_id" ON "public"."external_feed_entries" ("user_id") WHERE user_id IS NOT NULL[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_external_feed_entries_on_external_feed_id" ON "public"."external_feed_entries" ("external_feed_id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_external_feed_entries_on_url" ON "public"."external_feed_entries" ("url")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_external_feed_entries_on_uuid" ON "public"."external_feed_entries" ("uuid")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."external_feed_entries" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."external_feed_entries" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.3ms)[0m [1m[35mCREATE TABLE "public"."external_integration_keys" ("id" bigserial primary key, "context_id" bigint NOT NULL, "context_type" character varying(255) NOT NULL, "key_value" character varying(255) NOT NULL, "key_type" character varying(255) NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_external_integration_keys_unique" ON "public"."external_integration_keys" ("context_id", "context_type", "key_type")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."external_integration_keys" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."external_integration_keys" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.9ms)[0m [1m[35mCREATE TABLE "public"."favorites" ("id" bigserial primary key, "user_id" bigint CONSTRAINT "fk_rails_d15744e438" REFERENCES "public"."users" ("id"), "context_id" bigint, "context_type" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "root_account_id" bigint NOT NULL)[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_favorites_on_user_id" ON "public"."favorites" ("user_id")[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_favorites_replica_identity" ON "public"."favorites" ("root_account_id", "id")[0m [- -] [1m[36mSQL (2.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_favorites_unique_user_object" ON "public"."favorites" ("user_id", "context_id", "context_type")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."favorites" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."favorites" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.8ms)[0m [1m[35mCREATE TABLE "public"."feature_flags" ("id" bigserial primary key, "context_id" bigint NOT NULL, "context_type" character varying(255) NOT NULL, "feature" character varying(255) NOT NULL, "state" character varying(255) DEFAULT 'allowed' NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_feature_flags_on_context_and_feature" ON "public"."feature_flags" ("context_id", "context_type", "feature")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."feature_flags" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."feature_flags" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (8.1ms)[0m [1m[35mCREATE TABLE "public"."folders" ("id" bigserial primary key, "name" character varying(255), "full_name" text, "context_id" bigint NOT NULL, "context_type" character varying(255) NOT NULL, "parent_folder_id" bigint CONSTRAINT "fk_rails_9f43470a04" REFERENCES "public"."folders" ("id"), "workflow_state" character varying(255) NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp, "locked" boolean, "lock_at" timestamp, "unlock_at" timestamp, "cloned_item_id" bigint, "position" integer, "submission_context_code" character varying(255), "unique_type" character varying, "root_account_id" bigint NOT NULL)[0m [- -] [1m[36mSQL (2.8ms)[0m [1m[35mCREATE INDEX "index_folders_on_parent_folder_id" ON "public"."folders" ("parent_folder_id")[0m [- -] [1m[36mSQL (3.1ms)[0m [1m[35mCREATE INDEX "index_folders_on_cloned_item_id" ON "public"."folders" ("cloned_item_id")[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_folders_replica_identity" ON "public"."folders" ("root_account_id", "id")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_folders_on_context_id_and_context_type" ON "public"."folders" ("context_id", "context_type")[0m [- -] [1m[36mSQL (3.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_folders_on_context_id_and_context_type_for_root_folders" ON "public"."folders" ("context_id", "context_type") WHERE parent_folder_id IS NULL AND workflow_state<>'deleted'[0m [- -] [1m[36mSQL (2.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_folders_on_submission_context_code_and_parent_folder_id" ON "public"."folders" ("submission_context_code", "parent_folder_id")[0m [- -] [1m[36mSQL (2.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_folders_on_unique_type_and_context_id_and_context_type" ON "public"."folders" ("unique_type", "context_id", "context_type") WHERE unique_type IS NOT NULL AND workflow_state <> 'deleted'[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."folders" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."folders" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE FUNCTION "public"."folder_before_insert_verify_active_parent_folder__tr_fn" () RETURNS trigger AS $$ DECLARE parent_state text; BEGIN SELECT workflow_state INTO parent_state FROM folders WHERE folders.id = NEW.parent_folder_id FOR SHARE; if parent_state = 'deleted' then RAISE EXCEPTION 'Cannot create sub-folders in deleted folders --> %', NEW.parent_folder_id; end if; RETURN NEW; END; $$ LANGUAGE plpgsql; [0m [- -] [1m[36mSQL (0.2ms)[0m [1m[35m ALTER FUNCTION "public"."folder_before_insert_verify_active_parent_folder__tr_fn"() SET search_path TO public [0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER folder_before_insert_verify_active_parent_folder__tr BEFORE INSERT ON "public"."folders" FOR EACH ROW EXECUTE PROCEDURE "public"."folder_before_insert_verify_active_parent_folder__tr_fn"()[0m [- -] [1m[36mSQL (4.8ms)[0m [1m[35mCREATE TABLE "public"."gradebook_csvs" ("id" bigserial primary key, "user_id" bigint NOT NULL CONSTRAINT "fk_rails_b4531da5e9" REFERENCES "public"."users" ("id"), "attachment_id" bigint NOT NULL, "progress_id" bigint NOT NULL, "course_id" bigint NOT NULL CONSTRAINT "fk_rails_60f1713674" REFERENCES "public"."courses" ("id"))[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_gradebook_csvs_on_progress_id" ON "public"."gradebook_csvs" ("progress_id")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_gradebook_csvs_on_course_id" ON "public"."gradebook_csvs" ("course_id")[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_gradebook_csvs_on_user_id_and_course_id" ON "public"."gradebook_csvs" ("user_id", "course_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."gradebook_csvs" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."gradebook_csvs" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (8.5ms)[0m [1m[35mCREATE TABLE "public"."gradebook_filters" ("id" bigserial primary key, "course_id" bigint NOT NULL CONSTRAINT "fk_rails_0a7dce7c80" REFERENCES "public"."courses" ("id"), "user_id" bigint NOT NULL CONSTRAINT "fk_rails_70149216e6" REFERENCES "public"."users" ("id"), "name" character varying(255) NOT NULL, "payload" jsonb DEFAULT '{}' NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_gradebook_filters_on_user_id" ON "public"."gradebook_filters" ("user_id")[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_gradebook_filters_on_course_id_and_user_id" ON "public"."gradebook_filters" ("course_id", "user_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."gradebook_filters" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."gradebook_filters" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.8ms)[0m [1m[35mCREATE TABLE "public"."gradebook_uploads" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "course_id" bigint NOT NULL CONSTRAINT "fk_rails_d6c567f720" REFERENCES "public"."courses" ("id"), "user_id" bigint NOT NULL CONSTRAINT "fk_rails_e845504309" REFERENCES "public"."users" ("id"), "progress_id" bigint NOT NULL, "gradebook" text)[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_gradebook_uploads_on_user_id" ON "public"."gradebook_uploads" ("user_id")[0m [- -] [1m[36mSQL (1.2ms)[0m [1m[35mCREATE INDEX "index_gradebook_uploads_on_progress_id" ON "public"."gradebook_uploads" ("progress_id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_gradebook_uploads_on_course_id_and_user_id" ON "public"."gradebook_uploads" ("course_id", "user_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."gradebook_uploads" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."gradebook_uploads" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.3ms)[0m [1m[35mCREATE TABLE "public"."grading_period_groups" ("id" bigserial primary key, "course_id" bigint CONSTRAINT "fk_rails_b4ea3168bc" REFERENCES "public"."courses" ("id"), "account_id" bigint CONSTRAINT "fk_rails_712c487e43" REFERENCES "public"."accounts" ("id"), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "workflow_state" character varying(255) DEFAULT 'active' NOT NULL, "title" character varying(255), "weighted" boolean, "display_totals_for_all_grading_periods" boolean DEFAULT FALSE NOT NULL, "root_account_id" bigint CONSTRAINT "fk_rails_74c3fa7800" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_grading_period_groups_on_course_id" ON "public"."grading_period_groups" ("course_id")[0m [- -] [1m[36mSQL (1.2ms)[0m [1m[35mCREATE INDEX "index_grading_period_groups_on_account_id" ON "public"."grading_period_groups" ("account_id")[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE INDEX "index_grading_period_groups_on_workflow_state" ON "public"."grading_period_groups" ("workflow_state")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_grading_period_groups_on_root_account_id" ON "public"."grading_period_groups" ("root_account_id") WHERE root_account_id IS NOT NULL[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."grading_period_groups" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."grading_period_groups" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.0ms)[0m [1m[35mCREATE TABLE "public"."grading_periods" ("id" bigserial primary key, "weight" float, "start_date" timestamp NOT NULL, "end_date" timestamp NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "title" character varying(255), "workflow_state" character varying(255) DEFAULT 'active' NOT NULL, "grading_period_group_id" integer NOT NULL CONSTRAINT "fk_rails_9cc118401a" REFERENCES "public"."grading_period_groups" ("id"), "close_date" timestamp, "root_account_id" bigint CONSTRAINT "fk_rails_a296a175eb" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (1.1ms)[0m [1m[35mCREATE INDEX "index_grading_periods_on_workflow_state" ON "public"."grading_periods" ("workflow_state")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_grading_periods_on_grading_period_group_id" ON "public"."grading_periods" ("grading_period_group_id")[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE INDEX "index_grading_periods_on_root_account_id" ON "public"."grading_periods" ("root_account_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."grading_periods" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."grading_periods" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.0ms)[0m [1m[35mCREATE TABLE "public"."grading_standards" ("id" bigserial primary key, "title" character varying(255), "data" text, "context_id" bigint NOT NULL, "context_type" character varying(255) NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "user_id" bigint CONSTRAINT "fk_rails_38b90db7a8" REFERENCES "public"."users" ("id"), "usage_count" integer, "context_code" character varying(255), "workflow_state" character varying(255) NOT NULL, "migration_id" character varying(255), "version" integer, "root_account_id" bigint CONSTRAINT "fk_rails_a4e604bbd9" REFERENCES "public"."accounts" ("id"), "points_based" boolean DEFAULT FALSE NOT NULL, "scaling_factor" decimal(5,2) DEFAULT 1.0 NOT NULL)[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_grading_standards_on_user_id" ON "public"."grading_standards" ("user_id") WHERE user_id IS NOT NULL[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE INDEX "index_grading_standards_on_context_code" ON "public"."grading_standards" ("context_code")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_grading_standards_on_root_account_id" ON "public"."grading_standards" ("root_account_id")[0m [- -] [1m[36mSQL (1.2ms)[0m [1m[35mCREATE INDEX "index_grading_standards_on_context_id_and_context_type" ON "public"."grading_standards" ("context_id", "context_type")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."grading_standards" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."grading_standards" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.8ms)[0m [1m[35mCREATE TABLE "public"."group_categories" ("id" bigserial primary key, "context_id" bigint, "context_type" character varying(255), "name" character varying(255), "role" character varying(255), "deleted_at" timestamp, "self_signup" character varying(255), "group_limit" integer, "auto_leader" character varying(255), "created_at" timestamp, "updated_at" timestamp, "sis_source_id" character varying, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_0297915259" REFERENCES "public"."accounts" ("id"), "sis_batch_id" bigint CONSTRAINT "fk_rails_5c1dc542a5" REFERENCES "public"."sis_batches" ("id"))[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_group_categories_on_role" ON "public"."group_categories" ("role")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_group_categories_on_sis_batch_id" ON "public"."group_categories" ("sis_batch_id")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_group_categories_replica_identity" ON "public"."group_categories" ("root_account_id", "id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_group_categories_on_context" ON "public"."group_categories" ("context_id", "context_type")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_group_categories_on_root_account_id_and_sis_source_id" ON "public"."group_categories" ("root_account_id", "sis_source_id") WHERE sis_source_id IS NOT NULL[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."group_categories" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."group_categories" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.9ms)[0m [1m[35mCREATE TABLE "public"."groups" ("id" bigserial primary key, "name" character varying(255), "workflow_state" character varying(255) NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "context_id" bigint NOT NULL, "context_type" character varying(255) NOT NULL, "category" character varying(255), "max_membership" integer, "is_public" boolean, "account_id" bigint NOT NULL CONSTRAINT "fk_rails_ed4ff9a299" REFERENCES "public"."accounts" ("id"), "wiki_id" bigint, "deleted_at" timestamp, "join_level" character varying(255), "default_view" character varying(255) DEFAULT 'feed', "migration_id" character varying(255), "storage_quota" bigint, "uuid" character varying(255) NOT NULL, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_7d60528287" REFERENCES "public"."accounts" ("id"), "sis_source_id" character varying(255), "sis_batch_id" bigint CONSTRAINT "fk_rails_61d69a1dcf" REFERENCES "public"."sis_batches" ("id"), "stuck_sis_fields" text, "group_category_id" bigint CONSTRAINT "fk_rails_d2e3c28a2f" REFERENCES "public"."group_categories" ("id"), "description" text, "avatar_attachment_id" bigint, "leader_id" bigint CONSTRAINT "fk_rails_3c368b24c7" REFERENCES "public"."users" ("id"), "lti_context_id" character varying(255))[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_groups_on_account_id" ON "public"."groups" ("account_id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_groups_on_wiki_id" ON "public"."groups" ("wiki_id") WHERE wiki_id IS NOT NULL[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_groups_on_uuid" ON "public"."groups" ("uuid")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_groups_on_sis_batch_id" ON "public"."groups" ("sis_batch_id") WHERE sis_batch_id IS NOT NULL[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_groups_on_group_category_id" ON "public"."groups" ("group_category_id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_groups_on_leader_id" ON "public"."groups" ("leader_id") WHERE leader_id IS NOT NULL[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_groups_replica_identity" ON "public"."groups" ("root_account_id", "id")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_groups_on_context_id_and_context_type" ON "public"."groups" ("context_id", "context_type")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_groups_on_sis_source_id_and_root_account_id" ON "public"."groups" ("sis_source_id", "root_account_id") WHERE sis_source_id IS NOT NULL[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."groups" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."groups" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (8.6ms)[0m [1m[35mCREATE TABLE "public"."group_memberships" ("id" bigserial primary key, "group_id" bigint NOT NULL CONSTRAINT "fk_rails_d05778f88b" REFERENCES "public"."groups" ("id"), "workflow_state" character varying(255) NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "user_id" bigint NOT NULL CONSTRAINT "fk_rails_14271168a1" REFERENCES "public"."users" ("id"), "uuid" character varying(255) NOT NULL, "sis_batch_id" bigint CONSTRAINT "fk_rails_1208c3cc2d" REFERENCES "public"."sis_batches" ("id"), "moderator" boolean, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_dddd8ff810" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_group_memberships_on_group_id" ON "public"."group_memberships" ("group_id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_group_memberships_on_workflow_state" ON "public"."group_memberships" ("workflow_state")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_group_memberships_on_user_id" ON "public"."group_memberships" ("user_id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_group_memberships_on_uuid" ON "public"."group_memberships" ("uuid")[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_group_memberships_on_sis_batch_id" ON "public"."group_memberships" ("sis_batch_id") WHERE sis_batch_id IS NOT NULL[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_group_memberships_replica_identity" ON "public"."group_memberships" ("root_account_id", "id")[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_group_memberships_on_group_id_and_user_id" ON "public"."group_memberships" ("group_id", "user_id") WHERE workflow_state <> 'deleted'[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."group_memberships" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."group_memberships" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.7ms)[0m [1m[35mCREATE TABLE "public"."group_and_membership_importers" ("id" bigserial primary key, "group_category_id" bigint NOT NULL CONSTRAINT "fk_rails_a56724128d" REFERENCES "public"."group_categories" ("id"), "attachment_id" bigint CONSTRAINT "fk_rails_6a813cdffb" REFERENCES "public"."attachments" ("id"), "workflow_state" character varying DEFAULT 'active' NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_group_and_membership_importers_on_group_category_id" ON "public"."group_and_membership_importers" ("group_category_id")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_group_and_membership_importers_on_attachment_id" ON "public"."group_and_membership_importers" ("attachment_id") WHERE attachment_id IS NOT NULL[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."group_and_membership_importers" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."group_and_membership_importers" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.3ms)[0m [1m[35mCREATE TABLE "public"."ignores" ("id" bigserial primary key, "asset_type" character varying(255) NOT NULL, "asset_id" bigint NOT NULL, "user_id" bigint NOT NULL CONSTRAINT "fk_rails_9089e0c809" REFERENCES "public"."users" ("id"), "purpose" character varying(255) NOT NULL, "permanent" boolean DEFAULT FALSE NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_ignores_on_user_id" ON "public"."ignores" ("user_id")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_ignores_on_asset_and_user_id_and_purpose" ON "public"."ignores" ("asset_id", "asset_type", "user_id", "purpose")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."ignores" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."ignores" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.0ms)[0m [1m[35mCREATE TABLE "public"."late_policies" ("id" bigserial primary key, "course_id" bigint NOT NULL CONSTRAINT "fk_rails_eb4f0c93ce" REFERENCES "public"."courses" ("id"), "missing_submission_deduction_enabled" boolean DEFAULT FALSE NOT NULL, "missing_submission_deduction" decimal(5,2) DEFAULT 100.0 NOT NULL, "late_submission_deduction_enabled" boolean DEFAULT FALSE NOT NULL, "late_submission_deduction" decimal(5,2) DEFAULT 0.0 NOT NULL, "late_submission_interval" character varying(16) DEFAULT 'day' NOT NULL, "late_submission_minimum_percent_enabled" boolean DEFAULT FALSE NOT NULL, "late_submission_minimum_percent" decimal(5,2) DEFAULT 0.0 NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "root_account_id" bigint CONSTRAINT "fk_rails_09f671532d" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_late_policies_on_course_id" ON "public"."late_policies" ("course_id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_late_policies_on_root_account_id" ON "public"."late_policies" ("root_account_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."late_policies" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."late_policies" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.4ms)[0m [1m[35mCREATE TABLE "public"."learning_outcomes" ("id" bigserial primary key, "context_id" bigint, "context_type" character varying(255), "short_description" character varying(255) NOT NULL, "context_code" character varying(255), "description" text, "data" text, "workflow_state" character varying(255) NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "migration_id" character varying(255), "vendor_guid" character varying(255), "low_grade" character varying(255), "high_grade" character varying(255), "display_name" character varying(255), "calculation_method" character varying(255), "calculation_int" smallint, "vendor_guid_2" character varying(255), "migration_id_2" character varying(255), "outcome_import_id" bigint, "root_account_ids" bigint[], "copied_from_outcome_id" bigint, "archived_at" timestamp(6) DEFAULT NULL)[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_learning_outcomes_on_vendor_guid" ON "public"."learning_outcomes" ("vendor_guid")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_learning_outcomes_on_vendor_guid_2" ON "public"."learning_outcomes" ("vendor_guid_2")[0m [- -] [1m[36mSQL (0.8ms)[0m [1m[35mCREATE INDEX "index_learning_outcomes_on_root_account_ids" ON "public"."learning_outcomes" USING gin ("root_account_ids")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_learning_outcomes_on_copied_from_outcome_id" ON "public"."learning_outcomes" ("copied_from_outcome_id") WHERE copied_from_outcome_id IS NOT NULL[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_learning_outcomes_on_context_id_and_context_type" ON "public"."learning_outcomes" ("context_id", "context_type")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."learning_outcomes" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."learning_outcomes" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.7ms)[0m [1m[35mCREATE TABLE "public"."learning_outcome_groups" ("id" bigserial primary key, "context_id" bigint, "context_type" character varying(255), "title" character varying(255) NOT NULL, "learning_outcome_group_id" bigint CONSTRAINT "fk_rails_34f901d115" REFERENCES "public"."learning_outcome_groups" ("id"), "root_learning_outcome_group_id" bigint CONSTRAINT "fk_rails_2359cb17b0" REFERENCES "public"."learning_outcome_groups" ("id"), "workflow_state" character varying(255) NOT NULL, "description" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "migration_id" character varying(255), "vendor_guid" character varying(255), "low_grade" character varying(255), "high_grade" character varying(255), "vendor_guid_2" character varying(255), "migration_id_2" character varying(255), "outcome_import_id" bigint, "root_account_id" bigint CONSTRAINT "fk_rails_2630b3657a" REFERENCES "public"."accounts" ("id"), "source_outcome_group_id" bigint CONSTRAINT "fk_rails_ea5968ad1a" REFERENCES "public"."learning_outcome_groups" ("id"), "archived_at" timestamp(6) DEFAULT NULL)[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_learning_outcome_groups_on_learning_outcome_group_id" ON "public"."learning_outcome_groups" ("learning_outcome_group_id") WHERE learning_outcome_group_id IS NOT NULL[0m [- -] [1m[36mSQL (2.5ms)[0m [1m[35mCREATE INDEX "index_learning_outcome_groups_on_root_learning_outcome_group_id" ON "public"."learning_outcome_groups" ("root_learning_outcome_group_id") WHERE root_learning_outcome_group_id IS NOT NULL[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_learning_outcome_groups_on_vendor_guid" ON "public"."learning_outcome_groups" ("vendor_guid")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_learning_outcome_groups_on_vendor_guid_2" ON "public"."learning_outcome_groups" ("vendor_guid_2")[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_learning_outcome_groups_on_root_account_id" ON "public"."learning_outcome_groups" ("root_account_id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_learning_outcome_groups_on_source_outcome_group_id" ON "public"."learning_outcome_groups" ("source_outcome_group_id") WHERE source_outcome_group_id IS NOT NULL[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_learning_outcome_groups_on_context_id_and_context_type" ON "public"."learning_outcome_groups" ("context_id", "context_type")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_learning_outcome_groups_on_context_and_vendor_guid" ON "public"."learning_outcome_groups" ("context_type", "context_id", "vendor_guid_2")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."learning_outcome_groups" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."learning_outcome_groups" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.5ms)[0m [1m[35mCREATE TABLE "public"."learning_outcome_question_results" ("id" bigserial primary key, "learning_outcome_result_id" bigint, "learning_outcome_id" bigint, "associated_asset_id" bigint, "associated_asset_type" character varying(255), "score" float, "possible" float, "mastery" boolean, "percent" float, "attempt" integer, "title" text, "original_score" float, "original_possible" float, "original_mastery" boolean, "assessed_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "submitted_at" timestamp, "root_account_id" bigint CONSTRAINT "fk_rails_3d9b550248" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_LOQR_on_learning_outcome_result_id" ON "public"."learning_outcome_question_results" ("learning_outcome_result_id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_learning_outcome_question_results_on_learning_outcome_id" ON "public"."learning_outcome_question_results" ("learning_outcome_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_learning_outcome_question_results_on_root_account_id" ON "public"."learning_outcome_question_results" ("root_account_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."learning_outcome_question_results" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."learning_outcome_question_results" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (8.0ms)[0m [1m[35mCREATE TABLE "public"."learning_outcome_results" ("id" bigserial primary key, "context_id" bigint, "context_type" character varying(255), "context_code" character varying(255), "association_id" bigint, "association_type" character varying(255), "content_tag_id" bigint CONSTRAINT "fk_rails_c7ade34f0a" REFERENCES "public"."content_tags" ("id"), "learning_outcome_id" bigint CONSTRAINT "fk_rails_a093f5ae6a" REFERENCES "public"."learning_outcomes" ("id"), "mastery" boolean, "user_id" bigint CONSTRAINT "fk_rails_453d9421c4" REFERENCES "public"."users" ("id"), "score" float, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "attempt" integer, "possible" float, "original_score" float, "original_possible" float, "original_mastery" boolean, "artifact_id" bigint, "artifact_type" character varying(255), "assessed_at" timestamp, "title" character varying(255), "percent" float, "associated_asset_id" bigint, "associated_asset_type" character varying(255), "submitted_at" timestamp, "hide_points" boolean DEFAULT FALSE NOT NULL, "hidden" boolean DEFAULT FALSE NOT NULL, "user_uuid" character varying(255), "root_account_id" bigint CONSTRAINT "fk_rails_10267bb129" REFERENCES "public"."accounts" ("id"), "workflow_state" character varying DEFAULT 'active' NOT NULL)[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_learning_outcome_results_on_content_tag_id" ON "public"."learning_outcome_results" ("content_tag_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_learning_outcome_results_on_learning_outcome_id" ON "public"."learning_outcome_results" ("learning_outcome_id") WHERE learning_outcome_id IS NOT NULL[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE INDEX "index_learning_outcome_results_on_root_account_id" ON "public"."learning_outcome_results" ("root_account_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_learning_outcome_results_association" ON "public"."learning_outcome_results" ("user_id", "content_tag_id", "association_id", "association_type", "associated_asset_id", "associated_asset_type")[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE INDEX "lor_artifact_id_idx" ON "public"."learning_outcome_results" ("artifact_id", "artifact_type")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."learning_outcome_results" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."learning_outcome_results" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (4.1ms)[0m [1m[35mCREATE TABLE "public"."live_assessments_assessments" ("id" bigserial primary key, "key" character varying(255) NOT NULL, "title" character varying(255) NOT NULL, "context_id" bigint NOT NULL, "context_type" character varying(255) NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_live_assessments" ON "public"."live_assessments_assessments" ("context_id", "context_type", "key")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."live_assessments_assessments" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."live_assessments_assessments" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (4.2ms)[0m [1m[35mCREATE TABLE "public"."live_assessments_results" ("id" bigserial primary key, "user_id" bigint NOT NULL, "assessor_id" bigint NOT NULL CONSTRAINT "fk_rails_768405ee04" REFERENCES "public"."users" ("id"), "assessment_id" bigint NOT NULL CONSTRAINT "fk_rails_61dcfeb426" REFERENCES "public"."live_assessments_assessments" ("id"), "passed" boolean NOT NULL, "assessed_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_live_assessments_results_on_user_id" ON "public"."live_assessments_results" ("user_id")[0m [- -] [1m[36mSQL (1.0ms)[0m [1m[35mCREATE INDEX "index_live_assessments_results_on_assessor_id" ON "public"."live_assessments_results" ("assessor_id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_live_assessments_results_on_assessment_id_and_user_id" ON "public"."live_assessments_results" ("assessment_id", "user_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."live_assessments_results" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."live_assessments_results" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (4.1ms)[0m [1m[35mCREATE TABLE "public"."live_assessments_submissions" ("id" bigserial primary key, "user_id" bigint NOT NULL CONSTRAINT "fk_rails_924ff0872d" REFERENCES "public"."users" ("id"), "assessment_id" bigint NOT NULL CONSTRAINT "fk_rails_e9f0498f2a" REFERENCES "public"."live_assessments_assessments" ("id"), "possible" float, "score" float, "assessed_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_live_assessments_submissions_on_user_id" ON "public"."live_assessments_submissions" ("user_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_live_assessments_submissions_on_assessment_id_and_user_id" ON "public"."live_assessments_submissions" ("assessment_id", "user_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."live_assessments_submissions" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."live_assessments_submissions" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.0ms)[0m [1m[35mCREATE TABLE "public"."lti_ims_registrations" ("id" bigserial primary key, "lti_tool_configuration" jsonb NOT NULL, "developer_key_id" bigint NOT NULL CONSTRAINT "fk_rails_cabc9c0468" REFERENCES "public"."developer_keys" ("id"), "application_type" character varying NOT NULL, "grant_types" text[] DEFAULT '{}' NOT NULL, "response_types" text[] DEFAULT '{}' NOT NULL, "redirect_uris" text[] DEFAULT '{}' NOT NULL, "initiate_login_uri" text NOT NULL, "client_name" character varying NOT NULL, "jwks_uri" text NOT NULL, "logo_uri" text, "token_endpoint_auth_method" character varying NOT NULL, "contacts" character varying(255)[] DEFAULT '{}' NOT NULL, "client_uri" text, "policy_uri" text, "tos_uri" text, "scopes" text[] DEFAULT '{}' NOT NULL, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_0a76a6183d" REFERENCES "public"."accounts" ("id"), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "guid" character varying, "registration_overlay" jsonb DEFAULT '{}')[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE INDEX "index_lti_ims_registrations_on_developer_key_id" ON "public"."lti_ims_registrations" ("developer_key_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_lti_ims_registrations_replica_identity" ON "public"."lti_ims_registrations" ("root_account_id", "id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."lti_ims_registrations" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."lti_ims_registrations" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.2ms)[0m [1m[35mCREATE TABLE "public"."lti_line_items" ("id" bigserial primary key, "score_maximum" float NOT NULL, "label" character varying NOT NULL, "resource_id" character varying, "tag" character varying, "lti_resource_link_id" bigint, "assignment_id" bigint NOT NULL CONSTRAINT "fk_rails_5389b967c4" REFERENCES "public"."assignments" ("id"), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "client_id" bigint NOT NULL, "workflow_state" character varying DEFAULT 'active' NOT NULL, "extensions" jsonb DEFAULT '{}', "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_2983f6e038" REFERENCES "public"."accounts" ("id"), "coupled" boolean DEFAULT TRUE NOT NULL, "end_date_time" timestamp)[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_lti_line_items_on_resource_id" ON "public"."lti_line_items" ("resource_id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_lti_line_items_on_tag" ON "public"."lti_line_items" ("tag")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_lti_line_items_on_lti_resource_link_id" ON "public"."lti_line_items" ("lti_resource_link_id")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_lti_line_items_on_assignment_id" ON "public"."lti_line_items" ("assignment_id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_lti_line_items_on_client_id" ON "public"."lti_line_items" ("client_id")[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE INDEX "index_lti_line_items_on_workflow_state" ON "public"."lti_line_items" ("workflow_state")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_lti_line_items_replica_identity" ON "public"."lti_line_items" ("root_account_id", "id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."lti_line_items" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."lti_line_items" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (4.5ms)[0m [1m[35mCREATE TABLE "public"."lti_links" ("id" bigserial primary key, "resource_link_id" character varying NOT NULL, "vendor_code" character varying NOT NULL, "product_code" character varying NOT NULL, "resource_type_code" character varying NOT NULL, "linkable_id" bigint, "linkable_type" character varying, "custom_parameters" text, "resource_url" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_lti_links_on_resource_link_id" ON "public"."lti_links" ("resource_link_id")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_lti_links_on_linkable_id_and_linkable_type" ON "public"."lti_links" ("linkable_id", "linkable_type")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."lti_links" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."lti_links" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (4.5ms)[0m [1m[35mCREATE TABLE "public"."lti_message_handlers" ("id" bigserial primary key, "message_type" character varying(255) NOT NULL, "launch_path" character varying(255) NOT NULL, "capabilities" text, "parameters" text, "resource_handler_id" bigint NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "tool_proxy_id" bigint)[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_lti_message_handlers_on_tool_proxy_id" ON "public"."lti_message_handlers" ("tool_proxy_id")[0m [- -] [1m[36mSQL (4.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_lti_message_handlers_on_resource_handler_and_type" ON "public"."lti_message_handlers" ("resource_handler_id", "message_type")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."lti_message_handlers" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."lti_message_handlers" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.8ms)[0m [1m[35mCREATE TABLE "public"."lti_product_families" ("id" bigserial primary key, "vendor_code" character varying(255) NOT NULL, "product_code" character varying(255) NOT NULL, "vendor_name" character varying(255) NOT NULL, "vendor_description" text, "website" character varying(255), "vendor_email" character varying(255), "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_e64cbae7bd" REFERENCES "public"."accounts" ("id"), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "developer_key_id" bigint)[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_lti_product_families_on_root_account_id" ON "public"."lti_product_families" ("root_account_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_lti_product_families_on_developer_key_id" ON "public"."lti_product_families" ("developer_key_id")[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE UNIQUE INDEX "product_family_uniqueness" ON "public"."lti_product_families" ("product_code", "vendor_code", "root_account_id", "developer_key_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (1.0ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."lti_product_families" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."lti_product_families" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.8ms)[0m [1m[35mCREATE TABLE "public"."lti_resource_handlers" ("id" bigserial primary key, "resource_type_code" character varying(255) NOT NULL, "placements" character varying(255), "name" character varying(255) NOT NULL, "description" text, "icon_info" text, "tool_proxy_id" bigint NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_lti_resource_handlers_on_tool_proxy_and_type_code" ON "public"."lti_resource_handlers" ("tool_proxy_id", "resource_type_code")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."lti_resource_handlers" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."lti_resource_handlers" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.5ms)[0m [1m[35mCREATE TABLE "public"."lti_resource_links" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "context_external_tool_id" bigint NOT NULL CONSTRAINT "fk_rails_3107ae7bc7" REFERENCES "public"."context_external_tools" ("id"), "workflow_state" character varying DEFAULT 'active' NOT NULL, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_7c8c6fa928" REFERENCES "public"."accounts" ("id"), "context_id" bigint NOT NULL, "context_type" character varying(255) NOT NULL, "custom" jsonb, "lookup_uuid" uuid NOT NULL, "resource_link_uuid" uuid NOT NULL, "url" character varying, "lti_1_1_id" character varying, "title" character varying)[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_lti_resource_links_on_context_external_tool_id" ON "public"."lti_resource_links" ("context_external_tool_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_lti_resource_links_on_workflow_state" ON "public"."lti_resource_links" ("workflow_state")[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_lti_resource_links_on_resource_link_uuid" ON "public"."lti_resource_links" ("resource_link_uuid")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_lti_resource_links_on_lti_1_1_id" ON "public"."lti_resource_links" ("lti_1_1_id") WHERE lti_1_1_id IS NOT NULL[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_lti_resource_links_replica_identity" ON "public"."lti_resource_links" ("root_account_id", "id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_lti_resource_links_by_context_id_context_type" ON "public"."lti_resource_links" ("context_id", "context_type")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_lti_resource_links_unique_lookup_uuid_on_context" ON "public"."lti_resource_links" ("lookup_uuid", "context_id", "context_type")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."lti_resource_links" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."lti_resource_links" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (3.7ms)[0m [1m[35mCREATE TABLE "public"."lti_resource_placements" ("id" bigserial primary key, "placement" character varying(255) NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "message_handler_id" bigint CONSTRAINT "fk_rails_fc443660f6" REFERENCES "public"."lti_message_handlers" ("id"))[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_lti_resource_placements_on_message_handler_id" ON "public"."lti_resource_placements" ("message_handler_id") WHERE message_handler_id IS NOT NULL[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_resource_placements_on_placement_and_message_handler" ON "public"."lti_resource_placements" ("placement", "message_handler_id") WHERE message_handler_id IS NOT NULL[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."lti_resource_placements" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."lti_resource_placements" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (9.4ms)[0m [1m[35mCREATE TABLE "public"."lti_results" ("id" bigserial primary key, "result_score" float, "result_maximum" float, "comment" text, "activity_progress" character varying, "grading_progress" character varying, "lti_line_item_id" bigint NOT NULL CONSTRAINT "fk_rails_d80f7ad5f3" REFERENCES "public"."lti_line_items" ("id"), "submission_id" bigint, "user_id" bigint NOT NULL CONSTRAINT "fk_rails_222c701887" REFERENCES "public"."users" ("id"), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "workflow_state" character varying DEFAULT 'active' NOT NULL, "extensions" jsonb DEFAULT '{}', "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_dd0f128d6f" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_lti_results_on_lti_line_item_id" ON "public"."lti_results" ("lti_line_item_id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_lti_results_on_submission_id" ON "public"."lti_results" ("submission_id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_lti_results_on_user_id" ON "public"."lti_results" ("user_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_lti_results_on_workflow_state" ON "public"."lti_results" ("workflow_state")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_lti_results_replica_identity" ON "public"."lti_results" ("root_account_id", "id")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_lti_results_on_lti_line_item_id_and_user_id" ON "public"."lti_results" ("lti_line_item_id", "user_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."lti_results" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."lti_results" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.6ms)[0m [1m[35mCREATE TABLE "public"."lti_tool_configurations" ("id" bigserial primary key, "developer_key_id" bigint NOT NULL CONSTRAINT "fk_rails_e1026baa2d" REFERENCES "public"."developer_keys" ("id"), "settings" jsonb NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "disabled_placements" character varying[] DEFAULT '{}', "privacy_level" character varying)[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_lti_tool_configurations_on_developer_key_id" ON "public"."lti_tool_configurations" ("developer_key_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."lti_tool_configurations" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."lti_tool_configurations" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.2ms)[0m [1m[35mCREATE TABLE "public"."lti_tool_consumer_profiles" ("id" bigserial primary key, "services" text, "capabilities" text, "uuid" character varying NOT NULL, "developer_key_id" bigint NOT NULL CONSTRAINT "fk_rails_acb13d57c3" REFERENCES "public"."developer_keys" ("id"), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_lti_tool_consumer_profiles_on_uuid" ON "public"."lti_tool_consumer_profiles" ("uuid")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_lti_tool_consumer_profiles_on_developer_key_id" ON "public"."lti_tool_consumer_profiles" ("developer_key_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."lti_tool_consumer_profiles" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."lti_tool_consumer_profiles" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.4ms)[0m [1m[35mCREATE TABLE "public"."lti_tool_proxies" ("id" bigserial primary key, "shared_secret" text NOT NULL, "guid" character varying(255) NOT NULL, "product_version" character varying(255) NOT NULL, "lti_version" character varying(255) NOT NULL, "product_family_id" bigint NOT NULL CONSTRAINT "fk_rails_57f8b9857d" REFERENCES "public"."lti_product_families" ("id"), "context_id" bigint NOT NULL, "workflow_state" character varying(255) NOT NULL, "raw_data" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "context_type" character varying(255) DEFAULT 'Account' NOT NULL, "name" character varying(255), "description" text, "update_payload" text, "registration_url" text, "subscription_id" character varying)[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_lti_tool_proxies_on_guid" ON "public"."lti_tool_proxies" ("guid")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_lti_tool_proxies_on_product_family_id" ON "public"."lti_tool_proxies" ("product_family_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.8ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."lti_tool_proxies" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."lti_tool_proxies" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (4.4ms)[0m [1m[35mCREATE TABLE "public"."lti_tool_proxy_bindings" ("id" bigserial primary key, "context_id" bigint NOT NULL, "context_type" character varying(255) NOT NULL, "tool_proxy_id" bigint NOT NULL CONSTRAINT "fk_rails_9b5d93b5c3" REFERENCES "public"."lti_tool_proxies" ("id"), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "enabled" boolean DEFAULT TRUE NOT NULL)[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_lti_tool_proxy_bindings_on_tool_proxy_id" ON "public"."lti_tool_proxy_bindings" ("tool_proxy_id")[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_lti_tool_proxy_bindings_on_context_and_tool_proxy" ON "public"."lti_tool_proxy_bindings" ("context_id", "context_type", "tool_proxy_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."lti_tool_proxy_bindings" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."lti_tool_proxy_bindings" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.8ms)[0m [1m[35mCREATE TABLE "public"."lti_tool_settings" ("id" bigserial primary key, "tool_proxy_id" bigint, "context_id" bigint, "context_type" character varying(255), "resource_link_id" text, "custom" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "product_code" character varying, "vendor_code" character varying, "resource_type_code" character varying, "custom_parameters" text, "resource_url" text)[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_lti_tool_settings_on_link_context_and_tool_proxy" ON "public"."lti_tool_settings" ("resource_link_id", "context_type", "context_id", "tool_proxy_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."lti_tool_settings" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."lti_tool_settings" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.6ms)[0m [1m[35mCREATE TABLE "public"."master_courses_child_content_tags" ("id" bigserial primary key, "child_subscription_id" bigint NOT NULL, "content_type" character varying(255) NOT NULL, "content_id" bigint NOT NULL, "downstream_changes" text, "migration_id" character varying, "root_account_id" bigint CONSTRAINT "fk_rails_f756e6025d" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_child_content_tags_on_subscription" ON "public"."master_courses_child_content_tags" ("child_subscription_id")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_child_content_tags_on_content" ON "public"."master_courses_child_content_tags" ("content_type", "content_id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_child_content_tags_on_migration_id" ON "public"."master_courses_child_content_tags" ("migration_id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_master_courses_child_content_tags_on_root_account_id" ON "public"."master_courses_child_content_tags" ("root_account_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_mc_child_content_tags_on_sub_and_migration_id_pattern_ops" ON "public"."master_courses_child_content_tags" ("child_subscription_id", "migration_id" text_pattern_ops)[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."master_courses_child_content_tags" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."master_courses_child_content_tags" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (4.7ms)[0m [1m[35mCREATE TABLE "public"."master_courses_child_subscriptions" ("id" bigserial primary key, "master_template_id" bigint NOT NULL, "child_course_id" bigint NOT NULL CONSTRAINT "fk_rails_95aad9cf8d" REFERENCES "public"."courses" ("id"), "workflow_state" character varying(255) NOT NULL, "use_selective_copy" boolean DEFAULT FALSE NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "root_account_id" bigint CONSTRAINT "fk_rails_c6c1412951" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_master_courses_child_subscriptions_on_master_template_id" ON "public"."master_courses_child_subscriptions" ("master_template_id")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_child_subscriptions_on_child_course_id" ON "public"."master_courses_child_subscriptions" ("child_course_id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_master_courses_child_subscriptions_on_root_account_id" ON "public"."master_courses_child_subscriptions" ("root_account_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_mc_child_subscriptions_on_template_id_and_course_id" ON "public"."master_courses_child_subscriptions" ("master_template_id", "child_course_id") WHERE workflow_state <> 'deleted'[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."master_courses_child_subscriptions" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."master_courses_child_subscriptions" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.6ms)[0m [1m[35mCREATE TABLE "public"."master_courses_master_content_tags" ("id" bigserial primary key, "master_template_id" bigint NOT NULL, "content_type" character varying(255) NOT NULL, "content_id" bigint NOT NULL, "current_migration_id" bigint, "restrictions" text, "migration_id" character varying, "use_default_restrictions" boolean DEFAULT FALSE NOT NULL, "root_account_id" bigint CONSTRAINT "fk_rails_b38295638b" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE INDEX "index_master_courses_master_content_tags_on_master_template_id" ON "public"."master_courses_master_content_tags" ("master_template_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_master_content_tags_on_current_migration_id" ON "public"."master_courses_master_content_tags" ("current_migration_id") WHERE current_migration_id IS NOT NULL[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_master_content_tags_on_migration_id" ON "public"."master_courses_master_content_tags" ("migration_id")[0m [- -] [1m[36mSQL (1.2ms)[0m [1m[35mCREATE INDEX "index_master_courses_master_content_tags_on_root_account_id" ON "public"."master_courses_master_content_tags" ("root_account_id")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_master_content_tags_on_template_id_and_content" ON "public"."master_courses_master_content_tags" ("master_template_id", "content_type", "content_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."master_courses_master_content_tags" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."master_courses_master_content_tags" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (8.1ms)[0m [1m[35mCREATE TABLE "public"."master_courses_master_migrations" ("id" bigserial primary key, "master_template_id" bigint NOT NULL, "user_id" bigint, "export_results" text, "exports_started_at" timestamp, "imports_queued_at" timestamp, "workflow_state" character varying(255) NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "imports_completed_at" timestamp, "comment" text, "send_notification" boolean DEFAULT FALSE NOT NULL, "migration_settings" text, "root_account_id" bigint CONSTRAINT "fk_rails_e9ffc47433" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_master_courses_master_migrations_on_master_template_id" ON "public"."master_courses_master_migrations" ("master_template_id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_master_courses_master_migrations_on_root_account_id" ON "public"."master_courses_master_migrations" ("root_account_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."master_courses_master_migrations" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."master_courses_master_migrations" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.1ms)[0m [1m[35mCREATE TABLE "public"."master_courses_master_templates" ("id" bigserial primary key, "course_id" bigint NOT NULL CONSTRAINT "fk_rails_01b5db190c" REFERENCES "public"."courses" ("id"), "full_course" boolean DEFAULT TRUE NOT NULL, "workflow_state" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "active_migration_id" bigint CONSTRAINT "fk_rails_69a6430b11" REFERENCES "public"."master_courses_master_migrations" ("id"), "default_restrictions" text, "use_default_restrictions_by_type" boolean DEFAULT FALSE NOT NULL, "default_restrictions_by_type" text, "root_account_id" bigint CONSTRAINT "fk_rails_b6c30b9788" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_master_courses_master_templates_on_course_id" ON "public"."master_courses_master_templates" ("course_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_master_courses_master_templates_on_active_migration_id" ON "public"."master_courses_master_templates" ("active_migration_id") WHERE active_migration_id IS NOT NULL[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_master_courses_master_templates_on_root_account_id" ON "public"."master_courses_master_templates" ("root_account_id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_master_templates_unique_on_course_and_full" ON "public"."master_courses_master_templates" ("course_id") WHERE full_course AND workflow_state <> 'deleted'[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."master_courses_master_templates" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."master_courses_master_templates" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.2ms)[0m [1m[35mCREATE TABLE "public"."master_courses_migration_results" ("id" bigserial primary key, "master_migration_id" bigint NOT NULL CONSTRAINT "fk_rails_8a84ef8416" REFERENCES "public"."master_courses_master_migrations" ("id"), "content_migration_id" bigint NOT NULL CONSTRAINT "fk_rails_f94a4e9f5d" REFERENCES "public"."content_migrations" ("id"), "child_subscription_id" bigint NOT NULL CONSTRAINT "fk_rails_ba9413706c" REFERENCES "public"."master_courses_child_subscriptions" ("id"), "import_type" character varying NOT NULL, "state" character varying NOT NULL, "results" text, "root_account_id" bigint CONSTRAINT "fk_rails_3bc9928389" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_master_courses_migration_results_on_content_migration_id" ON "public"."master_courses_migration_results" ("content_migration_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_master_courses_migration_results_on_child_subscription_id" ON "public"."master_courses_migration_results" ("child_subscription_id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_master_courses_migration_results_on_root_account_id" ON "public"."master_courses_migration_results" ("root_account_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_mc_migration_results_on_master_mig_id_and_state" ON "public"."master_courses_migration_results" ("master_migration_id", "state")[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_mc_migration_results_on_master_and_content_migration_ids" ON "public"."master_courses_migration_results" ("master_migration_id", "content_migration_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."master_courses_migration_results" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."master_courses_migration_results" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (8.5ms)[0m [1m[35mCREATE TABLE "public"."media_objects" ("id" bigserial primary key, "user_id" bigint CONSTRAINT "fk_rails_06a85e3af6" REFERENCES "public"."users" ("id"), "context_id" bigint, "context_type" character varying(255), "workflow_state" character varying(255) NOT NULL, "user_type" character varying(255), "title" character varying(255), "user_entered_title" character varying(255), "media_id" character varying(255) NOT NULL, "media_type" character varying(255), "duration" integer, "max_size" integer, "root_account_id" bigint CONSTRAINT "fk_rails_25b24c5e66" REFERENCES "public"."accounts" ("id"), "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "attachment_id" bigint, "total_size" integer, "old_media_id" character varying(255))[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE INDEX "index_media_objects_on_user_id" ON "public"."media_objects" ("user_id") WHERE user_id IS NOT NULL[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_media_objects_on_media_id" ON "public"."media_objects" ("media_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_media_objects_on_root_account_id" ON "public"."media_objects" ("root_account_id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_media_objects_on_attachment_id" ON "public"."media_objects" ("attachment_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_media_objects_on_old_media_id" ON "public"."media_objects" ("old_media_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_media_objects_on_context_id_and_context_type" ON "public"."media_objects" ("context_id", "context_type")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."media_objects" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."media_objects" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.0ms)[0m [1m[35mCREATE TABLE "public"."media_tracks" ("id" bigserial primary key, "user_id" bigint, "media_object_id" bigint NOT NULL, "kind" character varying(255) DEFAULT 'subtitles', "locale" character varying(255) DEFAULT 'en', "content" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "webvtt_content" text, "attachment_id" bigint)[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "media_object_id_locale" ON "public"."media_tracks" ("media_object_id", "locale")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_media_tracks_on_attachment_id_and_locale" ON "public"."media_tracks" ("attachment_id", "locale") WHERE attachment_id IS NOT NULL[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."media_tracks" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."media_tracks" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (9.2ms)[0m [1m[35mCREATE TABLE "public"."mentions" ("id" bigserial primary key, "discussion_entry_id" bigint NOT NULL CONSTRAINT "fk_rails_ee320b195f" REFERENCES "public"."discussion_entries" ("id"), "user_id" bigint NOT NULL CONSTRAINT "fk_rails_1b711e94aa" REFERENCES "public"."users" ("id"), "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_342ac04d74" REFERENCES "public"."accounts" ("id"), "workflow_state" character varying(255) DEFAULT 'active' NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)[0m [- -] [1m[36mSQL (3.8ms)[0m [1m[35mCREATE INDEX "index_mentions_on_discussion_entry_id" ON "public"."mentions" ("discussion_entry_id")[0m [- -] [1m[36mSQL (3.2ms)[0m [1m[35mCREATE INDEX "index_mentions_on_user_id" ON "public"."mentions" ("user_id")[0m [- -] [1m[36mSQL (7.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_mentions_replica_identity" ON "public"."mentions" ("root_account_id", "id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.8ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."mentions" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."mentions" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.5ms)[0m [1m[35mCREATE TABLE "public"."messages" ("id" bigserial primary key, "to" text, "from" text, "subject" text, "body" text, "delay_for" integer DEFAULT 120, "dispatch_at" timestamp, "sent_at" timestamp, "workflow_state" character varying(255), "transmission_errors" text, "is_bounced" boolean, "notification_id" bigint, "communication_channel_id" bigint, "context_id" bigint, "context_type" character varying(255), "user_id" bigint, "created_at" timestamp, "updated_at" timestamp, "notification_name" character varying(255), "url" text, "path_type" character varying(255), "from_name" text, "to_email" boolean, "html_body" text, "root_account_id" bigint, "reply_to_name" character varying(255))[0m [- -] [1m[36mSQL (2.7ms)[0m [1m[35mCREATE INDEX "index_messages_on_sent_at" ON "public"."messages" ("sent_at") WHERE sent_at IS NOT NULL[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_messages_on_notification_id" ON "public"."messages" ("notification_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_messages_on_communication_channel_id" ON "public"."messages" ("communication_channel_id")[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE INDEX "index_messages_on_root_account_id" ON "public"."messages" ("root_account_id")[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE INDEX "existing_undispatched_message" ON "public"."messages" ("context_id", "context_type", "notification_name", "to", "user_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_messages_user_id_dispatch_at_to_email" ON "public"."messages" ("user_id", "to_email", "dispatch_at")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_messages_on_created_at" ON "public"."messages" ("created_at")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."messages" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."messages" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.4ms)[0m [1m[35mCREATE TABLE "public"."microsoft_sync_groups" ("id" bigserial primary key, "course_id" bigint NOT NULL CONSTRAINT "fk_rails_36993c0cbb" REFERENCES "public"."courses" ("id"), "workflow_state" character varying DEFAULT 'pending' NOT NULL, "job_state" character varying, "last_synced_at" timestamp, "last_manually_synced_at" timestamp, "last_error" text, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_cc58db8077" REFERENCES "public"."accounts" ("id"), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "ms_group_id" character varying, "last_error_report_id" bigint, "debug_info" text)[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_microsoft_sync_groups_on_course_id" ON "public"."microsoft_sync_groups" ("course_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_microsoft_sync_groups_replica_identity" ON "public"."microsoft_sync_groups" ("root_account_id", "id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."microsoft_sync_groups" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."microsoft_sync_groups" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (29.4ms)[0m [1m[35mCREATE TABLE "public"."microsoft_sync_partial_sync_changes" ("id" bigserial primary key, "course_id" bigint NOT NULL CONSTRAINT "fk_rails_63aa56f008" REFERENCES "public"."courses" ("id"), "user_id" bigint NOT NULL CONSTRAINT "fk_rails_195cffa827" REFERENCES "public"."users" ("id"), "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_8642f8ba3a" REFERENCES "public"."accounts" ("id"), "enrollment_type" character varying NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)[0m [- -] [1m[36mSQL (4.2ms)[0m [1m[35mCREATE INDEX "index_microsoft_sync_partial_sync_changes_on_course_id" ON "public"."microsoft_sync_partial_sync_changes" ("course_id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_microsoft_sync_partial_sync_changes_on_user_id" ON "public"."microsoft_sync_partial_sync_changes" ("user_id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_microsoft_sync_partial_sync_changes_replica_identity" ON "public"."microsoft_sync_partial_sync_changes" ("root_account_id", "id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_microsoft_sync_partial_sync_changes_course_user_enroll" ON "public"."microsoft_sync_partial_sync_changes" ("course_id", "user_id", "enrollment_type")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."microsoft_sync_partial_sync_changes" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."microsoft_sync_partial_sync_changes" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (8.2ms)[0m [1m[35mCREATE TABLE "public"."microsoft_sync_user_mappings" ("id" bigserial primary key, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_49c98628cf" REFERENCES "public"."accounts" ("id"), "user_id" bigint NOT NULL CONSTRAINT "fk_rails_69200ebc90" REFERENCES "public"."users" ("id"), "aad_id" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "needs_updating" boolean DEFAULT FALSE NOT NULL)[0m [- -] [1m[36mSQL (2.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_microsoft_sync_user_mappings_replica_identity" ON "public"."microsoft_sync_user_mappings" ("root_account_id", "id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_microsoft_sync_user_mappings_ra_id_user_id" ON "public"."microsoft_sync_user_mappings" ("user_id", "root_account_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."microsoft_sync_user_mappings" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."microsoft_sync_user_mappings" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.1ms)[0m [1m[35mCREATE TABLE "public"."migration_issues" ("id" bigserial primary key, "content_migration_id" bigint NOT NULL CONSTRAINT "fk_rails_1d79ad9705" REFERENCES "public"."content_migrations" ("id"), "description" text, "workflow_state" character varying(255) NOT NULL, "fix_issue_html_url" text, "issue_type" character varying(255) NOT NULL, "error_report_id" bigint, "error_message" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE INDEX "index_migration_issues_on_content_migration_id" ON "public"."migration_issues" ("content_migration_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."migration_issues" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."migration_issues" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.5ms)[0m [1m[35mCREATE TABLE "public"."moderation_graders" ("id" bigserial primary key, "anonymous_id" character varying(5) NOT NULL, "assignment_id" bigint NOT NULL CONSTRAINT "fk_rails_d2edcc39ca" REFERENCES "public"."assignments" ("id"), "user_id" bigint NOT NULL CONSTRAINT "fk_rails_a1f077985d" REFERENCES "public"."users" ("id"), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "slot_taken" boolean DEFAULT TRUE NOT NULL)[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_moderation_graders_on_assignment_id" ON "public"."moderation_graders" ("assignment_id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_moderation_graders_on_assignment_id_and_anonymous_id" ON "public"."moderation_graders" ("assignment_id", "anonymous_id")[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_moderation_graders_on_user_id_and_assignment_id" ON "public"."moderation_graders" ("user_id", "assignment_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."moderation_graders" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."moderation_graders" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (4.5ms)[0m [1m[35mCREATE TABLE "public"."moderated_grading_provisional_grades" ("id" bigserial primary key, "grade" character varying(255), "score" float, "graded_at" timestamp, "scorer_id" bigint NOT NULL CONSTRAINT "fk_rails_46d61d78e3" REFERENCES "public"."users" ("id"), "submission_id" bigint NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "final" boolean DEFAULT FALSE NOT NULL, "source_provisional_grade_id" bigint CONSTRAINT "provisional_grades_source_provisional_grade_fk" REFERENCES "public"."moderated_grading_provisional_grades" ("id"), "graded_anonymously" boolean)[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_moderated_grading_provisional_grades_on_scorer_id" ON "public"."moderated_grading_provisional_grades" ("scorer_id")[0m [- -] [1m[36mSQL (1.2ms)[0m [1m[35mCREATE INDEX "index_moderated_grading_provisional_grades_on_submission_id" ON "public"."moderated_grading_provisional_grades" ("submission_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_provisional_grades_on_source_grade" ON "public"."moderated_grading_provisional_grades" ("source_provisional_grade_id") WHERE source_provisional_grade_id IS NOT NULL[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "idx_mg_provisional_grades_unique_submission_when_final" ON "public"."moderated_grading_provisional_grades" ("submission_id") WHERE final = TRUE[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "idx_mg_provisional_grades_unique_sub_scorer_when_not_final" ON "public"."moderated_grading_provisional_grades" ("submission_id", "scorer_id") WHERE final = FALSE[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."moderated_grading_provisional_grades" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."moderated_grading_provisional_grades" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.5ms)[0m [1m[35mCREATE TABLE "public"."moderated_grading_selections" ("id" bigserial primary key, "assignment_id" bigint NOT NULL CONSTRAINT "fk_rails_bc609b6673" REFERENCES "public"."assignments" ("id"), "student_id" bigint NOT NULL CONSTRAINT "fk_rails_05e761621e" REFERENCES "public"."users" ("id"), "selected_provisional_grade_id" bigint CONSTRAINT "fk_rails_a4904a6da8" REFERENCES "public"."moderated_grading_provisional_grades" ("id"), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE INDEX "index_moderated_grading_selections_on_student_id" ON "public"."moderated_grading_selections" ("student_id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_moderated_grading_selections_on_selected_grade" ON "public"."moderated_grading_selections" ("selected_provisional_grade_id") WHERE selected_provisional_grade_id IS NOT NULL[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "idx_mg_selections_unique_on_assignment_and_student" ON "public"."moderated_grading_selections" ("assignment_id", "student_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."moderated_grading_selections" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."moderated_grading_selections" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.0ms)[0m [1m[35mCREATE TABLE "public"."notification_endpoints" ("id" bigserial primary key, "access_token_id" bigint NOT NULL CONSTRAINT "fk_rails_de537fc04f" REFERENCES "public"."access_tokens" ("id"), "token" character varying(255) NOT NULL, "arn" character varying(255) NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "workflow_state" character varying DEFAULT 'active' NOT NULL)[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_notification_endpoints_on_access_token_id" ON "public"."notification_endpoints" ("access_token_id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_notification_endpoints_on_workflow_state" ON "public"."notification_endpoints" ("workflow_state")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_notification_endpoints_on_access_token_id_and_arn" ON "public"."notification_endpoints" ("access_token_id", "arn") WHERE workflow_state='active'[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."notification_endpoints" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."notification_endpoints" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.9ms)[0m [1m[35mCREATE TABLE "public"."notifications" ("id" bigserial primary key, "name" character varying(255), "subject" character varying(255), "category" character varying(255), "delay_for" integer DEFAULT 120, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "main_link" character varying(255), "priority" boolean DEFAULT FALSE NOT NULL)[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_notifications_unique_on_name" ON "public"."notifications" ("name")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."notifications" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."notifications" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (3.4ms)[0m [1m[35mCREATE TABLE "public"."notification_policies" ("id" bigserial primary key, "notification_id" bigint, "communication_channel_id" bigint NOT NULL CONSTRAINT "fk_rails_065136b4a1" REFERENCES "public"."communication_channels" ("id"), "frequency" character varying(255) DEFAULT 'immediately' NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_notification_policies_on_notification_id" ON "public"."notification_policies" ("notification_id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_notification_policies_on_cc_and_notification_id" ON "public"."notification_policies" ("communication_channel_id", "notification_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."notification_policies" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."notification_policies" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.6ms)[0m [1m[35mCREATE TABLE "public"."notification_policy_overrides" ("id" bigserial primary key, "context_type" character varying DEFAULT 'Course' NOT NULL, "context_id" bigint NOT NULL, "communication_channel_id" bigint NOT NULL CONSTRAINT "fk_rails_2de20ddc94" REFERENCES "public"."communication_channels" ("id"), "notification_id" bigint, "workflow_state" character varying DEFAULT 'active' NOT NULL, "frequency" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_notification_policy_overrides_on_context" ON "public"."notification_policy_overrides" ("context_type", "context_id")[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE INDEX "index_notification_policy_overrides_on_communication_channel_id" ON "public"."notification_policy_overrides" ("communication_channel_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_notification_policy_overrides_on_notification_id" ON "public"."notification_policy_overrides" ("notification_id")[0m [- -] [1m[36mSQL (1.2ms)[0m [1m[35mCREATE INDEX "index_notification_policies_overrides_on_cc_id_and_notification" ON "public"."notification_policy_overrides" ("communication_channel_id", "notification_id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_notification_policies_overrides_uniq_context_notification" ON "public"."notification_policy_overrides" ("context_id", "context_type", "communication_channel_id", "notification_id") WHERE notification_id IS NOT NULL[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_notification_policies_overrides_uniq_context_and_cc" ON "public"."notification_policy_overrides" ("context_id", "context_type", "communication_channel_id") WHERE notification_id IS NULL[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."notification_policy_overrides" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."notification_policy_overrides" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.3ms)[0m [1m[35mCREATE TABLE "public"."oauth_requests" ("id" bigserial primary key, "token" character varying(255), "secret" character varying(255), "user_secret" character varying(255), "return_url" character varying(4096), "workflow_state" character varying(255), "user_id" bigint CONSTRAINT "fk_rails_6471c0c593" REFERENCES "public"."users" ("id"), "original_host_with_port" character varying(255), "service" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_oauth_requests_on_user_id" ON "public"."oauth_requests" ("user_id") WHERE user_id IS NOT NULL[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."oauth_requests" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."oauth_requests" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.6ms)[0m [1m[35mCREATE TABLE "public"."observer_alert_thresholds" ("id" bigserial primary key, "alert_type" character varying NOT NULL, "threshold" character varying, "workflow_state" character varying DEFAULT 'active' NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "user_id" bigint NOT NULL CONSTRAINT "fk_rails_197b88ba34" REFERENCES "public"."users" ("id"), "observer_id" bigint NOT NULL CONSTRAINT "fk_rails_5c0602a7d1" REFERENCES "public"."users" ("id"))[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE INDEX "index_observer_alert_thresholds_on_user_id" ON "public"."observer_alert_thresholds" ("user_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_observer_alert_thresholds_on_observer_id" ON "public"."observer_alert_thresholds" ("observer_id")[0m [- -] [1m[36mSQL (9.8ms)[0m [1m[35mCREATE UNIQUE INDEX "observer_alert_thresholds_on_alert_type_and_observer_and_user" ON "public"."observer_alert_thresholds" ("alert_type", "user_id", "observer_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."observer_alert_thresholds" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."observer_alert_thresholds" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (9.0ms)[0m [1m[35mCREATE TABLE "public"."observer_alerts" ("id" bigserial primary key, "observer_alert_threshold_id" bigint NOT NULL CONSTRAINT "fk_rails_71aa3b8381" REFERENCES "public"."observer_alert_thresholds" ("id"), "context_type" character varying, "context_id" bigint, "alert_type" character varying NOT NULL, "workflow_state" character varying DEFAULT 'unread' NOT NULL, "action_date" timestamp NOT NULL, "title" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "user_id" bigint NOT NULL CONSTRAINT "fk_rails_792164ef57" REFERENCES "public"."users" ("id"), "observer_id" bigint NOT NULL CONSTRAINT "fk_rails_3435fafc4c" REFERENCES "public"."users" ("id"))[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_observer_alerts_on_observer_alert_threshold_id" ON "public"."observer_alerts" ("observer_alert_threshold_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_observer_alerts_on_context_type_and_context_id" ON "public"."observer_alerts" ("context_type", "context_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_observer_alerts_on_workflow_state" ON "public"."observer_alerts" ("workflow_state")[0m [- -] [1m[36mSQL (1.2ms)[0m [1m[35mCREATE INDEX "index_observer_alerts_on_user_id" ON "public"."observer_alerts" ("user_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_observer_alerts_on_observer_id" ON "public"."observer_alerts" ("observer_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."observer_alerts" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."observer_alerts" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.6ms)[0m [1m[35mCREATE TABLE "public"."observer_pairing_codes" ("id" bigserial primary key, "user_id" bigint NOT NULL CONSTRAINT "fk_rails_1f9d0db943" REFERENCES "public"."users" ("id"), "code" character varying(10) NOT NULL, "expires_at" timestamp NOT NULL, "workflow_state" character varying DEFAULT 'active' NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_observer_pairing_codes_on_user_id" ON "public"."observer_pairing_codes" ("user_id")[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE INDEX "index_observer_pairing_codes_on_expires_at" ON "public"."observer_pairing_codes" ("expires_at")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."observer_pairing_codes" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."observer_pairing_codes" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.2ms)[0m [1m[35mCREATE TABLE "public"."one_time_passwords" ("id" bigserial primary key, "user_id" bigint NOT NULL CONSTRAINT "fk_rails_afd10ae0cb" REFERENCES "public"."users" ("id"), "code" character varying NOT NULL, "used" boolean DEFAULT FALSE NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_one_time_passwords_on_user_id_and_code" ON "public"."one_time_passwords" ("user_id", "code")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."one_time_passwords" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."one_time_passwords" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.8ms)[0m [1m[35mCREATE TABLE "public"."originality_reports" ("id" bigserial primary key, "attachment_id" bigint, "originality_score" float, "originality_report_attachment_id" bigint, "originality_report_url" text, "originality_report_lti_url" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "submission_id" bigint NOT NULL, "workflow_state" character varying DEFAULT 'pending' NOT NULL, "link_id" text, "error_message" text, "submission_time" timestamp, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_9b1dd5b400" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (3.3ms)[0m [1m[35mCREATE INDEX "index_originality_reports_on_attachment_id" ON "public"."originality_reports" ("attachment_id")[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE INDEX "index_originality_reports_on_originality_report_attachment_id" ON "public"."originality_reports" ("originality_report_attachment_id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_originality_reports_on_submission_id" ON "public"."originality_reports" ("submission_id")[0m [- -] [1m[36mSQL (3.2ms)[0m [1m[35mCREATE INDEX "index_originality_reports_on_workflow_state" ON "public"."originality_reports" ("workflow_state")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_originality_reports_on_submission_time" ON "public"."originality_reports" ("submission_time")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_originality_reports_replica_identity" ON "public"."originality_reports" ("root_account_id", "id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."originality_reports" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."originality_reports" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.2ms)[0m [1m[35mCREATE TABLE "public"."outcome_calculation_methods" ("id" bigserial primary key, "context_type" character varying(255) NOT NULL, "context_id" bigint NOT NULL, "calculation_int" smallint, "calculation_method" character varying(255) NOT NULL, "workflow_state" character varying DEFAULT 'active' NOT NULL, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_a59e69390f" REFERENCES "public"."accounts" ("id"), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_outcome_calculation_methods_on_context" ON "public"."outcome_calculation_methods" ("context_type", "context_id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_outcome_calculation_methods_on_root_account_id" ON "public"."outcome_calculation_methods" ("root_account_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."outcome_calculation_methods" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."outcome_calculation_methods" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (9.9ms)[0m [1m[35mCREATE TABLE "public"."outcome_friendly_descriptions" ("id" bigserial primary key, "context_type" character varying(255) NOT NULL, "context_id" bigint NOT NULL, "workflow_state" character varying DEFAULT 'active' NOT NULL, "root_account_id" bigint CONSTRAINT "fk_rails_fb78b53f8f" REFERENCES "public"."accounts" ("id"), "description" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "learning_outcome_id" bigint NOT NULL CONSTRAINT "fk_rails_cd9ae4732d" REFERENCES "public"."learning_outcomes" ("id"))[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE INDEX "index_outcome_friendly_descriptions_on_root_account_id" ON "public"."outcome_friendly_descriptions" ("root_account_id")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_outcome_friendly_descriptions_on_learning_outcome_id" ON "public"."outcome_friendly_descriptions" ("learning_outcome_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_outcome_friendly_description_on_context_and_outcome" ON "public"."outcome_friendly_descriptions" ("context_type", "context_id", "learning_outcome_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."outcome_friendly_descriptions" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."outcome_friendly_descriptions" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.6ms)[0m [1m[35mCREATE TABLE "public"."outcome_imports" ("id" bigserial primary key, "workflow_state" character varying NOT NULL, "context_id" bigint NOT NULL, "context_type" character varying NOT NULL, "user_id" bigint CONSTRAINT "fk_rails_a241f096b5" REFERENCES "public"."users" ("id"), "attachment_id" bigint CONSTRAINT "fk_rails_25a74d343f" REFERENCES "public"."attachments" ("id"), "progress" integer, "ended_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "data" json, "learning_outcome_group_id" bigint)[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_outcome_imports_on_user_id" ON "public"."outcome_imports" ("user_id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_outcome_imports_on_attachment_id" ON "public"."outcome_imports" ("attachment_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_outcome_imports_on_learning_outcome_group_id" ON "public"."outcome_imports" ("learning_outcome_group_id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_outcome_imports_on_context_type_and_context_id" ON "public"."outcome_imports" ("context_type", "context_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."outcome_imports" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."outcome_imports" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (4.4ms)[0m [1m[35mCREATE TABLE "public"."outcome_import_errors" ("id" bigserial primary key, "outcome_import_id" bigint NOT NULL CONSTRAINT "fk_rails_172fb97705" REFERENCES "public"."outcome_imports" ("id"), "message" character varying(255) NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "row" integer, "failure" boolean DEFAULT FALSE NOT NULL)[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_outcome_import_errors_on_outcome_import_id" ON "public"."outcome_import_errors" ("outcome_import_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."outcome_import_errors" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."outcome_import_errors" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.0ms)[0m [1m[35mCREATE TABLE "public"."outcome_proficiencies" ("id" bigserial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "root_account_id" bigint CONSTRAINT "fk_rails_109e184e08" REFERENCES "public"."accounts" ("id"), "context_id" bigint NOT NULL, "context_type" character varying(255) NOT NULL, "workflow_state" character varying DEFAULT 'active' NOT NULL)[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_outcome_proficiencies_on_root_account_id" ON "public"."outcome_proficiencies" ("root_account_id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_outcome_proficiencies_on_context_id_and_context_type" ON "public"."outcome_proficiencies" ("context_id", "context_type") WHERE context_id IS NOT NULL[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."outcome_proficiencies" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."outcome_proficiencies" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (8.3ms)[0m [1m[35mCREATE TABLE "public"."outcome_proficiency_ratings" ("id" bigserial primary key, "outcome_proficiency_id" bigint NOT NULL CONSTRAINT "fk_rails_5c89659ba6" REFERENCES "public"."outcome_proficiencies" ("id"), "description" character varying(255) NOT NULL, "points" float NOT NULL, "mastery" boolean NOT NULL, "color" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "root_account_id" bigint CONSTRAINT "fk_rails_c09e7c056d" REFERENCES "public"."accounts" ("id"), "workflow_state" character varying DEFAULT 'active' NOT NULL)[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_outcome_proficiency_ratings_on_outcome_proficiency_id" ON "public"."outcome_proficiency_ratings" ("outcome_proficiency_id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_outcome_proficiency_ratings_on_root_account_id" ON "public"."outcome_proficiency_ratings" ("root_account_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_outcome_proficiency_ratings_on_proficiency_and_points" ON "public"."outcome_proficiency_ratings" ("outcome_proficiency_id", "points")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."outcome_proficiency_ratings" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."outcome_proficiency_ratings" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.8ms)[0m [1m[35mCREATE TABLE "public"."page_comments" ("id" bigserial primary key, "message" text, "page_id" bigint, "page_type" character varying(255), "user_id" bigint CONSTRAINT "fk_rails_78ced27005" REFERENCES "public"."users" ("id"), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE INDEX "index_page_comments_on_user_id" ON "public"."page_comments" ("user_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_page_comments_on_page_id_and_page_type" ON "public"."page_comments" ("page_id", "page_type")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."page_comments" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."page_comments" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.1ms)[0m [1m[35mCREATE TABLE "public"."page_views" ("request_id" character varying(255), "session_id" character varying(255), "user_id" bigint NOT NULL CONSTRAINT "fk_rails_13a4e75c00" REFERENCES "public"."users" ("id"), "url" text, "context_id" bigint, "context_type" character varying(255), "asset_id" bigint, "asset_type" character varying(255), "controller" character varying(255), "action" character varying(255), "interaction_seconds" float, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "developer_key_id" bigint, "user_request" boolean, "render_time" float, "user_agent" text, "asset_user_access_id" bigint, "participated" boolean, "summarized" boolean, "account_id" bigint, "real_user_id" bigint CONSTRAINT "fk_rails_ab13cc7e9a" REFERENCES "public"."users" ("id"), "http_method" character varying(255), "remote_ip" character varying(255), PRIMARY KEY ("request_id"))[0m [- -] [1m[36mSQL (2.5ms)[0m [1m[35mCREATE INDEX "index_page_views_asset_user_access_id" ON "public"."page_views" ("asset_user_access_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_page_views_on_real_user_id" ON "public"."page_views" ("real_user_id") WHERE real_user_id IS NOT NULL[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_page_views_on_account_id_and_created_at" ON "public"."page_views" ("account_id", "created_at")[0m [- -] [1m[36mSQL (1.2ms)[0m [1m[35mCREATE INDEX "index_page_views_on_context_type_and_context_id" ON "public"."page_views" ("context_type", "context_id")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_page_views_summarized_created_at" ON "public"."page_views" ("summarized", "created_at")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_page_views_on_user_id_and_created_at" ON "public"."page_views" ("user_id", "created_at")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."page_views" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."page_views" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.1ms)[0m [1m[35mCREATE TABLE "public"."parallel_importers" ("id" bigserial primary key, "sis_batch_id" bigint NOT NULL CONSTRAINT "fk_rails_d8cbdaa461" REFERENCES "public"."sis_batches" ("id"), "workflow_state" character varying(255) NOT NULL, "index" bigint NOT NULL, "batch_size" bigint NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "started_at" timestamp, "ended_at" timestamp, "importer_type" character varying(255) NOT NULL, "attachment_id" bigint NOT NULL CONSTRAINT "fk_rails_00ed13d8d6" REFERENCES "public"."attachments" ("id"), "rows_processed" integer DEFAULT 0 NOT NULL, "job_ids" bigint[] DEFAULT '{}' NOT NULL)[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_parallel_importers_on_sis_batch_id" ON "public"."parallel_importers" ("sis_batch_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_parallel_importers_on_attachment_id" ON "public"."parallel_importers" ("attachment_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."parallel_importers" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."parallel_importers" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.2ms)[0m [1m[35mCREATE TABLE "public"."planner_notes" ("id" bigserial primary key, "todo_date" timestamp NOT NULL, "title" character varying NOT NULL, "details" text, "user_id" bigint NOT NULL CONSTRAINT "fk_rails_3255427de8" REFERENCES "public"."users" ("id"), "course_id" bigint, "workflow_state" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "linked_object_type" character varying, "linked_object_id" bigint)[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_planner_notes_on_user_id" ON "public"."planner_notes" ("user_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_planner_notes_on_user_id_and_linked_object" ON "public"."planner_notes" ("user_id", "linked_object_id", "linked_object_type") WHERE linked_object_id IS NOT NULL AND workflow_state<>'deleted'[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."planner_notes" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."planner_notes" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (8.0ms)[0m [1m[35mCREATE TABLE "public"."planner_overrides" ("id" bigserial primary key, "plannable_type" character varying NOT NULL, "plannable_id" bigint NOT NULL, "user_id" bigint NOT NULL CONSTRAINT "fk_rails_5fa99aedd0" REFERENCES "public"."users" ("id"), "workflow_state" character varying, "marked_complete" boolean DEFAULT FALSE NOT NULL, "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "dismissed" boolean DEFAULT FALSE NOT NULL)[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_planner_overrides_on_user_id" ON "public"."planner_overrides" ("user_id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_planner_overrides_on_plannable_and_user" ON "public"."planner_overrides" ("plannable_type", "plannable_id", "user_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."planner_overrides" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."planner_overrides" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.2ms)[0m [1m[35mCREATE TABLE "public"."plugin_settings" ("id" bigserial primary key, "name" character varying(255) DEFAULT '' NOT NULL, "settings" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "disabled" boolean)[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_plugin_settings_on_name" ON "public"."plugin_settings" ("name")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."plugin_settings" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."plugin_settings" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (4.6ms)[0m [1m[35mCREATE TABLE "public"."polling_polls" ("id" bigserial primary key, "question" character varying(255), "description" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "user_id" bigint NOT NULL CONSTRAINT "fk_rails_2742c5bc84" REFERENCES "public"."users" ("id"))[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_polling_polls_on_user_id" ON "public"."polling_polls" ("user_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."polling_polls" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."polling_polls" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (4.6ms)[0m [1m[35mCREATE TABLE "public"."polling_poll_choices" ("id" bigserial primary key, "text" character varying(255), "is_correct" boolean DEFAULT FALSE NOT NULL, "poll_id" bigint NOT NULL CONSTRAINT "fk_rails_c6c7f35cfc" REFERENCES "public"."polling_polls" ("id"), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "position" integer)[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_polling_poll_choices_on_poll_id" ON "public"."polling_poll_choices" ("poll_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."polling_poll_choices" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."polling_poll_choices" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.8ms)[0m [1m[35mCREATE TABLE "public"."polling_poll_sessions" ("id" bigserial primary key, "is_published" boolean DEFAULT FALSE NOT NULL, "has_public_results" boolean DEFAULT FALSE NOT NULL, "course_id" bigint NOT NULL CONSTRAINT "fk_rails_52ebcb3ce8" REFERENCES "public"."courses" ("id"), "course_section_id" bigint CONSTRAINT "fk_rails_13d9535afd" REFERENCES "public"."course_sections" ("id"), "poll_id" bigint NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_polling_poll_sessions_on_course_id" ON "public"."polling_poll_sessions" ("course_id")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_polling_poll_sessions_on_course_section_id" ON "public"."polling_poll_sessions" ("course_section_id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_polling_poll_sessions_on_poll_id" ON "public"."polling_poll_sessions" ("poll_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."polling_poll_sessions" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."polling_poll_sessions" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.0ms)[0m [1m[35mCREATE TABLE "public"."polling_poll_submissions" ("id" bigserial primary key, "poll_id" bigint NOT NULL CONSTRAINT "fk_rails_8993f10747" REFERENCES "public"."polling_polls" ("id"), "poll_choice_id" bigint NOT NULL CONSTRAINT "fk_rails_21612c7e9a" REFERENCES "public"."polling_poll_choices" ("id"), "user_id" bigint NOT NULL CONSTRAINT "fk_rails_a327cfe658" REFERENCES "public"."users" ("id"), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "poll_session_id" bigint NOT NULL CONSTRAINT "fk_rails_01fa2ef709" REFERENCES "public"."polling_poll_sessions" ("id"))[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_polling_poll_submissions_on_poll_id" ON "public"."polling_poll_submissions" ("poll_id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_polling_poll_submissions_on_poll_choice_id" ON "public"."polling_poll_submissions" ("poll_choice_id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_polling_poll_submissions_on_user_id" ON "public"."polling_poll_submissions" ("user_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_polling_poll_submissions_on_poll_session_id" ON "public"."polling_poll_submissions" ("poll_session_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."polling_poll_submissions" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."polling_poll_submissions" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.0ms)[0m [1m[35mCREATE TABLE "public"."post_policies" ("id" bigserial primary key, "post_manually" boolean DEFAULT FALSE NOT NULL, "course_id" bigint CONSTRAINT "fk_rails_46ead4a120" REFERENCES "public"."courses" ("id"), "assignment_id" bigint CONSTRAINT "fk_rails_cf2d119863" REFERENCES "public"."assignments" ("id"), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "root_account_id" bigint CONSTRAINT "fk_rails_9ba9a47075" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_post_policies_on_course_id" ON "public"."post_policies" ("course_id")[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_post_policies_on_assignment_id" ON "public"."post_policies" ("assignment_id")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_post_policies_on_course_id_and_assignment_id" ON "public"."post_policies" ("course_id", "assignment_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_post_policies_on_root_account_id" ON "public"."post_policies" ("root_account_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."post_policies" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."post_policies" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (8.1ms)[0m [1m[35mCREATE TABLE "public"."profiles" ("id" bigserial primary key, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_1c415318fc" REFERENCES "public"."accounts" ("id"), "context_type" character varying(255) NOT NULL, "context_id" bigint NOT NULL, "title" character varying(255), "path" character varying(255), "description" text, "data" text, "visibility" character varying(255), "position" integer)[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_profiles_on_context_type_and_context_id" ON "public"."profiles" ("context_type", "context_id")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_profiles_on_root_account_id_and_path" ON "public"."profiles" ("root_account_id", "path")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."profiles" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."profiles" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (10.2ms)[0m [1m[35mCREATE TABLE "public"."progresses" ("id" bigserial primary key, "context_id" bigint NOT NULL, "context_type" character varying(255) NOT NULL, "user_id" bigint, "tag" character varying(255) NOT NULL, "completion" float, "delayed_job_id" character varying(255), "workflow_state" character varying(255) NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "message" text, "cache_key_context" character varying(255), "results" text)[0m [- -] [1m[36mSQL (6.6ms)[0m [1m[35mCREATE INDEX "index_progresses_on_context_id_and_context_type" ON "public"."progresses" ("context_id", "context_type")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (1.2ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.9ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."progresses" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."progresses" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (13.5ms)[0m [1m[35mCREATE TABLE "public"."pseudonyms" ("id" bigserial primary key, "user_id" bigint NOT NULL CONSTRAINT "fk_rails_9b98a5d814" REFERENCES "public"."users" ("id"), "account_id" bigint NOT NULL CONSTRAINT "fk_rails_0f9b2ab873" REFERENCES "public"."accounts" ("id"), "workflow_state" character varying(255) NOT NULL, "unique_id" character varying(255) NOT NULL, "crypted_password" character varying(255) NOT NULL, "password_salt" character varying(255) NOT NULL, "persistence_token" character varying(255) NOT NULL, "single_access_token" character varying(255) NOT NULL, "perishable_token" character varying(255) NOT NULL, "login_count" integer DEFAULT 0 NOT NULL, "failed_login_count" integer DEFAULT 0 NOT NULL, "last_request_at" timestamp, "last_login_at" timestamp, "current_login_at" timestamp, "last_login_ip" character varying(255), "current_login_ip" character varying(255), "reset_password_token" character varying(255) DEFAULT '' NOT NULL, "position" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "password_auto_generated" boolean, "deleted_at" timestamp, "sis_batch_id" bigint CONSTRAINT "fk_rails_aabcbf9874" REFERENCES "public"."sis_batches" ("id"), "sis_user_id" character varying(255), "sis_ssha" character varying(255), "communication_channel_id" bigint, "sis_communication_channel_id" bigint, "stuck_sis_fields" text, "integration_id" character varying(255), "authentication_provider_id" bigint CONSTRAINT "fk_rails_587e86bf60" REFERENCES "public"."authentication_providers" ("id"), "declared_user_type" character varying(255))[0m [- -] [1m[36mSQL (5.3ms)[0m [1m[35mCREATE INDEX "index_pseudonyms_on_user_id" ON "public"."pseudonyms" ("user_id")[0m [- -] [1m[36mSQL (32.9ms)[0m [1m[35mCREATE INDEX "index_pseudonyms_on_persistence_token" ON "public"."pseudonyms" ("persistence_token")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_pseudonyms_on_single_access_token" ON "public"."pseudonyms" ("single_access_token")[0m [- -] [1m[36mSQL (5.2ms)[0m [1m[35mCREATE INDEX "index_pseudonyms_on_sis_batch_id" ON "public"."pseudonyms" ("sis_batch_id") WHERE sis_batch_id IS NOT NULL[0m [- -] [1m[36mSQL (3.0ms)[0m [1m[35mCREATE INDEX "index_pseudonyms_on_sis_communication_channel_id" ON "public"."pseudonyms" ("sis_communication_channel_id")[0m [- -] [1m[36mSQL (3.2ms)[0m [1m[35mCREATE INDEX "index_pseudonyms_on_authentication_provider_id" ON "public"."pseudonyms" ("authentication_provider_id") WHERE authentication_provider_id IS NOT NULL[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_pseudonyms_replica_identity" ON "public"."pseudonyms" ("account_id", "id")[0m [- -] [1m[36mSQL (1.2ms)[0m [1m[35mCREATE INDEX "index_gin_trgm_pseudonyms_sis_user_id" ON "public"."pseudonyms" USING gin (lower(sis_user_id) public.gin_trgm_ops)[0m [- -] [1m[36mSQL (0.8ms)[0m [1m[35mCREATE INDEX "index_gin_trgm_pseudonyms_unique_id" ON "public"."pseudonyms" USING gin (lower(unique_id) public.gin_trgm_ops)[0m [- -] [1m[36mSQL (3.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_pseudonyms_on_sis_user_id_and_account_id" ON "public"."pseudonyms" ("sis_user_id", "account_id") WHERE sis_user_id IS NOT NULL[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_pseudonyms_on_integration_id" ON "public"."pseudonyms" ("integration_id", "account_id") WHERE integration_id IS NOT NULL[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_pseudonyms_unique_with_auth_provider" ON "public"."pseudonyms" (LOWER(unique_id), account_id, authentication_provider_id) WHERE workflow_state IN ('active', 'suspended')[0m [- -] [1m[36mSQL (3.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_pseudonyms_unique_without_auth_provider" ON "public"."pseudonyms" (LOWER(unique_id), account_id) WHERE workflow_state IN ('active', 'suspended') AND authentication_provider_id IS NULL[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_pseudonyms_on_unique_id_and_account_id" ON "public"."pseudonyms" (LOWER(unique_id), account_id)[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."pseudonyms" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."pseudonyms" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (3.2ms)[0m [1m[35mCREATE UNIQUE INDEX index_pseudonyms_on_unique_id_and_account_id_and_authentication_provider_id ON "public"."pseudonyms" (LOWER(unique_id), account_id, authentication_provider_id) WHERE workflow_state='active'[0m [- -] [1m[36mSQL (3.1ms)[0m [1m[35mCREATE UNIQUE INDEX index_pseudonyms_on_unique_id_and_account_id_no_authentication_provider_id ON "public"."pseudonyms" (LOWER(unique_id), account_id) WHERE workflow_state='active' AND authentication_provider_id IS NULL[0m [- -] [1m[36mSQL (7.5ms)[0m [1m[35mCREATE TABLE "public"."purgatories" ("id" bigserial primary key, "attachment_id" bigint NOT NULL CONSTRAINT "fk_rails_c906487417" REFERENCES "public"."attachments" ("id"), "deleted_by_user_id" bigint CONSTRAINT "fk_rails_d1f5462acf" REFERENCES "public"."users" ("id"), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "workflow_state" character varying DEFAULT 'active' NOT NULL, "old_filename" character varying NOT NULL, "old_display_name" character varying(255), "old_content_type" character varying(255), "new_instfs_uuid" character varying, "old_file_state" character varying, "old_workflow_state" character varying)[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_purgatories_on_attachment_id" ON "public"."purgatories" ("attachment_id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_purgatories_on_deleted_by_user_id" ON "public"."purgatories" ("deleted_by_user_id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_purgatories_on_workflow_state" ON "public"."purgatories" ("workflow_state")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."purgatories" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."purgatories" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (9.6ms)[0m [1m[35mCREATE TABLE "public"."quizzes" ("id" bigserial primary key, "title" character varying(255), "description" text, "quiz_data" text, "points_possible" float, "context_id" bigint NOT NULL, "context_type" character varying(255) NOT NULL, "assignment_id" bigint CONSTRAINT "fk_rails_9f9beaf05c" REFERENCES "public"."assignments" ("id"), "workflow_state" character varying(255) NOT NULL, "shuffle_answers" boolean DEFAULT FALSE NOT NULL, "show_correct_answers" boolean DEFAULT TRUE NOT NULL, "time_limit" integer, "allowed_attempts" integer, "scoring_policy" character varying(255), "quiz_type" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "lock_at" timestamp, "unlock_at" timestamp, "deleted_at" timestamp, "could_be_locked" boolean DEFAULT FALSE NOT NULL, "cloned_item_id" bigint CONSTRAINT "fk_rails_c8bbad8938" REFERENCES "public"."cloned_items" ("id"), "access_code" character varying(255), "migration_id" character varying(255), "unpublished_question_count" integer DEFAULT 0, "due_at" timestamp, "question_count" integer, "last_assignment_id" bigint, "published_at" timestamp, "last_edited_at" timestamp, "anonymous_submissions" boolean DEFAULT FALSE NOT NULL, "assignment_group_id" bigint, "hide_results" character varying(255), "ip_filter" character varying(255), "require_lockdown_browser" boolean DEFAULT FALSE NOT NULL, "require_lockdown_browser_for_results" boolean DEFAULT FALSE NOT NULL, "one_question_at_a_time" boolean DEFAULT FALSE NOT NULL, "cant_go_back" boolean DEFAULT FALSE NOT NULL, "show_correct_answers_at" timestamp, "hide_correct_answers_at" timestamp, "require_lockdown_browser_monitor" boolean DEFAULT FALSE NOT NULL, "lockdown_browser_monitor_data" text, "only_visible_to_overrides" boolean DEFAULT FALSE NOT NULL, "one_time_results" boolean DEFAULT FALSE NOT NULL, "show_correct_answers_last_attempt" boolean DEFAULT FALSE NOT NULL, "root_account_id" bigint CONSTRAINT "fk_rails_f8f315b8f7" REFERENCES "public"."accounts" ("id"), "disable_timer_autosubmission" boolean DEFAULT FALSE NOT NULL)[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_quizzes_on_assignment_id" ON "public"."quizzes" ("assignment_id")[0m [- -] [1m[36mSQL (2.6ms)[0m [1m[35mCREATE INDEX "index_quizzes_on_cloned_item_id" ON "public"."quizzes" ("cloned_item_id") WHERE cloned_item_id IS NOT NULL[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_quizzes_on_root_account_id" ON "public"."quizzes" ("root_account_id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_quizzes_on_context_id_and_context_type" ON "public"."quizzes" ("context_id", "context_type")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."quizzes" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."quizzes" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.8ms)[0m [1m[35mCREATE TABLE "public"."quiz_groups" ("id" bigserial primary key, "quiz_id" bigint NOT NULL, "name" character varying(255), "pick_count" integer, "question_points" float, "position" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "migration_id" character varying(255), "assessment_question_bank_id" bigint, "root_account_id" bigint CONSTRAINT "fk_rails_66e04b1c22" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_quiz_groups_on_quiz_id" ON "public"."quiz_groups" ("quiz_id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_quiz_groups_on_root_account_id" ON "public"."quiz_groups" ("root_account_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."quiz_groups" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."quiz_groups" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.4ms)[0m [1m[35mCREATE TABLE "public"."quiz_migration_alerts" ("id" bigserial primary key, "migration_type" character varying, "migration_id" bigint, "user_id" bigint NOT NULL CONSTRAINT "fk_rails_40e00cb2a9" REFERENCES "public"."users" ("id"), "course_id" bigint NOT NULL CONSTRAINT "fk_rails_df86859617" REFERENCES "public"."courses" ("id"), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_quiz_migration_alerts_on_migration_type_and_migration_id" ON "public"."quiz_migration_alerts" ("migration_type", "migration_id")[0m [- -] [1m[36mSQL (2.6ms)[0m [1m[35mCREATE INDEX "index_quiz_migration_alerts_on_user_id" ON "public"."quiz_migration_alerts" ("user_id")[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_quiz_migration_alerts_on_course_id" ON "public"."quiz_migration_alerts" ("course_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."quiz_migration_alerts" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."quiz_migration_alerts" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.7ms)[0m [1m[35mCREATE TABLE "public"."quiz_questions" ("id" bigserial primary key, "quiz_id" bigint, "quiz_group_id" bigint, "assessment_question_id" bigint, "question_data" text, "assessment_question_version" integer, "position" integer, "created_at" timestamp, "updated_at" timestamp, "migration_id" character varying(255), "workflow_state" character varying(255), "duplicate_index" integer, "root_account_id" bigint)[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE INDEX "quiz_questions_quiz_group_id" ON "public"."quiz_questions" ("quiz_group_id")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_quiz_questions_on_assessment_question_id" ON "public"."quiz_questions" ("assessment_question_id") WHERE assessment_question_id IS NOT NULL[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_quiz_questions_on_root_account_id" ON "public"."quiz_questions" ("root_account_id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "idx_qqs_on_quiz_and_aq_ids" ON "public"."quiz_questions" ("quiz_id", "assessment_question_id")[0m [- -] [1m[36mSQL (2.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_generated_quiz_questions" ON "public"."quiz_questions" ("assessment_question_id", "quiz_group_id", "duplicate_index") WHERE assessment_question_id IS NOT NULL AND quiz_group_id IS NOT NULL AND workflow_state='generated'[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."quiz_questions" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."quiz_questions" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.1ms)[0m [1m[35mCREATE TABLE "public"."quiz_regrades" ("id" bigserial primary key, "user_id" bigint NOT NULL CONSTRAINT "fk_rails_8116556edd" REFERENCES "public"."users" ("id"), "quiz_id" bigint NOT NULL CONSTRAINT "fk_rails_4cf8b252f4" REFERENCES "public"."quizzes" ("id"), "quiz_version" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_quiz_regrades_on_user_id" ON "public"."quiz_regrades" ("user_id")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_quiz_regrades_on_quiz_id_and_quiz_version" ON "public"."quiz_regrades" ("quiz_id", "quiz_version")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."quiz_regrades" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."quiz_regrades" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (4.7ms)[0m [1m[35mCREATE TABLE "public"."quiz_question_regrades" ("id" bigserial primary key, "quiz_regrade_id" bigint NOT NULL CONSTRAINT "fk_rails_f7834fb23d" REFERENCES "public"."quiz_regrades" ("id"), "quiz_question_id" bigint NOT NULL CONSTRAINT "fk_rails_e6cc08d5f1" REFERENCES "public"."quiz_questions" ("id"), "regrade_option" character varying(255) NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_qqr_on_qq_id" ON "public"."quiz_question_regrades" ("quiz_question_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_qqr_on_qr_id_and_qq_id" ON "public"."quiz_question_regrades" ("quiz_regrade_id", "quiz_question_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."quiz_question_regrades" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."quiz_question_regrades" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (3.9ms)[0m [1m[35mCREATE TABLE "public"."quiz_regrade_runs" ("id" bigserial primary key, "quiz_regrade_id" bigint NOT NULL CONSTRAINT "fk_rails_e7282f482b" REFERENCES "public"."quiz_regrades" ("id"), "started_at" timestamp, "finished_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_quiz_regrade_runs_on_quiz_regrade_id" ON "public"."quiz_regrade_runs" ("quiz_regrade_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."quiz_regrade_runs" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."quiz_regrade_runs" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (4.2ms)[0m [1m[35mCREATE TABLE "public"."quiz_statistics" ("id" bigserial primary key, "quiz_id" bigint CONSTRAINT "fk_rails_4e39b123dd" REFERENCES "public"."quizzes" ("id"), "includes_all_versions" boolean, "anonymous" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "report_type" character varying(255), "includes_sis_ids" boolean)[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_quiz_statistics_on_quiz_id_and_report_type" ON "public"."quiz_statistics" ("quiz_id", "report_type")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."quiz_statistics" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."quiz_statistics" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (8.7ms)[0m [1m[35mCREATE TABLE "public"."quiz_submissions" ("id" bigserial primary key, "quiz_id" bigint NOT NULL CONSTRAINT "fk_rails_473863d022" REFERENCES "public"."quizzes" ("id"), "quiz_version" integer, "user_id" bigint CONSTRAINT "fk_rails_04850db4b4" REFERENCES "public"."users" ("id") DEFERRABLE INITIALLY IMMEDIATE, "submission_data" text, "submission_id" bigint, "score" float, "kept_score" float, "quiz_data" text, "started_at" timestamp, "end_at" timestamp, "finished_at" timestamp, "attempt" integer, "workflow_state" character varying(255) NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "fudge_points" integer DEFAULT 0, "quiz_points_possible" float, "extra_attempts" integer, "temporary_user_code" character varying(255), "extra_time" integer, "manually_unlocked" boolean, "manually_scored" boolean, "validation_token" character varying(255), "score_before_regrade" float, "was_preview" boolean, "has_seen_results" boolean, "question_references_fixed" boolean, "root_account_id" bigint CONSTRAINT "fk_rails_03c29046c1" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_quiz_submissions_on_user_id" ON "public"."quiz_submissions" ("user_id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_quiz_submissions_on_submission_id" ON "public"."quiz_submissions" ("submission_id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_quiz_submissions_on_temporary_user_code" ON "public"."quiz_submissions" ("temporary_user_code")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_quiz_submissions_on_root_account_id" ON "public"."quiz_submissions" ("root_account_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_quiz_submissions_on_quiz_id_and_user_id" ON "public"."quiz_submissions" ("quiz_id", "user_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."quiz_submissions" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."quiz_submissions" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (20.8ms)[0m [1m[35mALTER TABLE "public"."quiz_submissions" ALTER COLUMN "fudge_points" TYPE float[0m [- -] [1m[36mSQL (8.9ms)[0m [1m[35mCREATE TABLE "public"."quiz_submission_events" ("id" bigserial primary key, "attempt" integer NOT NULL, "event_type" character varying(255) NOT NULL, "quiz_submission_id" bigint NOT NULL CONSTRAINT "fk_rails_2d873134e2" REFERENCES "public"."quiz_submissions" ("id"), "event_data" text, "created_at" timestamp NOT NULL, "client_timestamp" timestamp, "root_account_id" bigint CONSTRAINT "fk_rails_63fa6e527e" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_quiz_submission_events_on_created_at" ON "public"."quiz_submission_events" ("created_at")[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_quiz_submission_events_on_root_account_id" ON "public"."quiz_submission_events" ("root_account_id")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "event_predecessor_locator_index" ON "public"."quiz_submission_events" ("quiz_submission_id", "attempt", "created_at")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."quiz_submission_events" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."quiz_submission_events" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.1ms)[0m [1m[35mCREATE TABLE "public"."quiz_submission_snapshots" ("id" bigserial primary key, "quiz_submission_id" bigint, "attempt" integer, "data" text, "created_at" timestamp, "updated_at" timestamp)[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_quiz_submission_snapshots_on_quiz_submission_id" ON "public"."quiz_submission_snapshots" ("quiz_submission_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."quiz_submission_snapshots" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."quiz_submission_snapshots" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.8ms)[0m [1m[35mCREATE TABLE "public"."report_snapshots" ("id" bigserial primary key, "report_type" character varying(255), "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "account_id" bigint CONSTRAINT "fk_rails_983ad88e61" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE INDEX "index_report_snapshots_on_account_id" ON "public"."report_snapshots" ("account_id") WHERE account_id IS NOT NULL[0m [- -] [1m[36mSQL (2.5ms)[0m [1m[35mCREATE INDEX "index_on_report_snapshots" ON "public"."report_snapshots" ("report_type", "account_id", "created_at")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."report_snapshots" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."report_snapshots" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.7ms)[0m [1m[35mCREATE TABLE "public"."roles" ("id" bigserial primary key, "name" character varying(255) NOT NULL, "base_role_type" character varying(255) NOT NULL, "account_id" bigint CONSTRAINT "fk_rails_7c71253d78" REFERENCES "public"."accounts" ("id"), "workflow_state" character varying(255) NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_7d4ded04e1" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE INDEX "index_roles_on_name" ON "public"."roles" ("name")[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE INDEX "index_roles_on_account_id" ON "public"."roles" ("account_id")[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_replica_identity" ON "public"."roles" ("root_account_id", "id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_unique_account_name_where_active" ON "public"."roles" ("account_id", "name") WHERE workflow_state = 'active'[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."roles" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."roles" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (10.6ms)[0m [1m[35mCREATE TABLE "public"."role_overrides" ("id" bigserial primary key, "permission" character varying(255), "enabled" boolean DEFAULT TRUE NOT NULL, "locked" boolean DEFAULT FALSE NOT NULL, "context_id" bigint NOT NULL CONSTRAINT "fk_rails_8571d0f354" REFERENCES "public"."accounts" ("id"), "context_type" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp, "applies_to_self" boolean DEFAULT TRUE NOT NULL, "applies_to_descendants" boolean DEFAULT TRUE NOT NULL, "role_id" bigint NOT NULL CONSTRAINT "fk_rails_4412996802" REFERENCES "public"."roles" ("id"), "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_ed57234287" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_role_overrides_on_role_id" ON "public"."role_overrides" ("role_id")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_role_overrides_replica_identity" ON "public"."role_overrides" ("root_account_id", "id")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_role_overrides_on_context_role_permission" ON "public"."role_overrides" ("context_id", "context_type", "role_id", "permission")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."role_overrides" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."role_overrides" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (8.9ms)[0m [1m[35mCREATE TABLE "public"."rubrics" ("id" bigserial primary key, "user_id" bigint CONSTRAINT "fk_rails_b5b6f45923" REFERENCES "public"."users" ("id"), "rubric_id" bigint CONSTRAINT "fk_rails_aa80454086" REFERENCES "public"."rubrics" ("id"), "context_id" bigint NOT NULL, "context_type" character varying(255) NOT NULL, "data" text, "points_possible" float, "title" character varying(255), "description" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "reusable" boolean DEFAULT FALSE, "public" boolean DEFAULT FALSE, "read_only" boolean DEFAULT FALSE, "association_count" integer DEFAULT 0, "free_form_criterion_comments" boolean, "context_code" character varying(255), "migration_id" character varying(255), "hide_score_total" boolean, "workflow_state" character varying(255) DEFAULT 'active' NOT NULL, "root_account_id" bigint CONSTRAINT "fk_rails_232b21215a" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_rubrics_on_user_id" ON "public"."rubrics" ("user_id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_rubrics_on_rubric_id" ON "public"."rubrics" ("rubric_id") WHERE rubric_id IS NOT NULL[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_rubrics_on_root_account_id" ON "public"."rubrics" ("root_account_id")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_rubrics_on_context_id_and_context_type" ON "public"."rubrics" ("context_id", "context_type")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."rubrics" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."rubrics" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (8.8ms)[0m [1m[35mCREATE TABLE "public"."rubric_associations" ("id" bigserial primary key, "rubric_id" bigint NOT NULL CONSTRAINT "fk_rails_9e5239a751" REFERENCES "public"."rubrics" ("id"), "association_id" bigint NOT NULL, "association_type" character varying(255) NOT NULL, "use_for_grading" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "title" character varying(255), "summary_data" text, "purpose" character varying(255) NOT NULL, "url" character varying(255), "context_id" bigint NOT NULL, "context_type" character varying(255) NOT NULL, "hide_score_total" boolean, "bookmarked" boolean DEFAULT TRUE, "context_code" character varying(255), "hide_points" boolean DEFAULT FALSE, "hide_outcome_results" boolean DEFAULT FALSE, "root_account_id" bigint, "workflow_state" character varying DEFAULT 'active' NOT NULL)[0m [- -] [1m[36mSQL (2.8ms)[0m [1m[35mCREATE INDEX "index_rubric_associations_on_rubric_id" ON "public"."rubric_associations" ("rubric_id")[0m [- -] [1m[36mSQL (3.9ms)[0m [1m[35mCREATE INDEX "index_rubric_associations_on_context_code" ON "public"."rubric_associations" ("context_code")[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE INDEX "index_rubric_associations_on_root_account_id" ON "public"."rubric_associations" ("root_account_id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_rubric_associations_on_aid_and_atype" ON "public"."rubric_associations" ("association_id", "association_type")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_rubric_associations_on_context_id_and_context_type" ON "public"."rubric_associations" ("context_id", "context_type")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."rubric_associations" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."rubric_associations" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (9.3ms)[0m [1m[35mCREATE TABLE "public"."rubric_assessments" ("id" bigserial primary key, "user_id" bigint CONSTRAINT "fk_rails_cbe6352121" REFERENCES "public"."users" ("id"), "rubric_id" bigint NOT NULL CONSTRAINT "fk_rails_eadf99bbb0" REFERENCES "public"."rubrics" ("id"), "rubric_association_id" bigint CONSTRAINT "fk_rails_d38b350cb8" REFERENCES "public"."rubric_associations" ("id"), "score" float, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "artifact_id" bigint NOT NULL, "artifact_type" character varying(255) NOT NULL, "assessment_type" character varying(255) NOT NULL, "assessor_id" bigint CONSTRAINT "fk_rails_a502a63cbe" REFERENCES "public"."users" ("id"), "artifact_attempt" integer, "hide_points" boolean DEFAULT FALSE NOT NULL, "root_account_id" bigint CONSTRAINT "fk_rails_2d2687def1" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_rubric_assessments_on_user_id" ON "public"."rubric_assessments" ("user_id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_rubric_assessments_on_rubric_id" ON "public"."rubric_assessments" ("rubric_id")[0m [- -] [1m[36mSQL (1.2ms)[0m [1m[35mCREATE INDEX "index_rubric_assessments_on_rubric_association_id" ON "public"."rubric_assessments" ("rubric_association_id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_rubric_assessments_on_assessor_id" ON "public"."rubric_assessments" ("assessor_id")[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE INDEX "index_rubric_assessments_on_root_account_id" ON "public"."rubric_assessments" ("root_account_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_rubric_assessments_on_artifact_id_and_artifact_type" ON "public"."rubric_assessments" ("artifact_id", "artifact_type")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."rubric_assessments" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."rubric_assessments" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (8.1ms)[0m [1m[35mCREATE TABLE "public"."rubric_criteria" ("id" bigserial primary key, "rubric_id" bigint NOT NULL CONSTRAINT "fk_rails_928a6c6d8c" REFERENCES "public"."rubrics" ("id"), "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_f062da785f" REFERENCES "public"."accounts" ("id"), "description" text, "long_description" text, "order" integer NOT NULL, "points" decimal NOT NULL, "criterion_use_range" boolean DEFAULT FALSE NOT NULL, "learning_outcome_id" bigint CONSTRAINT "fk_rails_7cf7c45a27" REFERENCES "public"."learning_outcomes" ("id"), "mastery_points" decimal, "ignore_for_scoring" boolean DEFAULT FALSE NOT NULL, "workflow_state" character varying(255) DEFAULT 'active' NOT NULL, "created_by_id" bigint NOT NULL CONSTRAINT "fk_rails_92ad703662" REFERENCES "public"."users" ("id"), "deleted_by_id" bigint CONSTRAINT "fk_rails_8c9ef923f7" REFERENCES "public"."users" ("id"), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_rubric_criteria_on_rubric_id" ON "public"."rubric_criteria" ("rubric_id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_rubric_criteria_on_learning_outcome_id" ON "public"."rubric_criteria" ("learning_outcome_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_rubric_criteria_on_created_by_id" ON "public"."rubric_criteria" ("created_by_id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_rubric_criteria_on_deleted_by_id" ON "public"."rubric_criteria" ("deleted_by_id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_rubric_criteria_replica_identity" ON "public"."rubric_criteria" ("root_account_id", "id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."rubric_criteria" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."rubric_criteria" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.9ms)[0m [1m[35mCREATE TABLE "public"."scheduled_smart_alerts" ("id" bigserial primary key, "context_type" character varying NOT NULL, "alert_type" character varying NOT NULL, "context_id" bigint NOT NULL, "due_at" timestamp NOT NULL, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_60f3ba4c90" REFERENCES "public"."accounts" ("id"), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_scheduled_smart_alerts_on_due_at" ON "public"."scheduled_smart_alerts" ("due_at")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_scheduled_smart_alerts_on_root_account_id" ON "public"."scheduled_smart_alerts" ("root_account_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_unique_scheduled_smart_alert" ON "public"."scheduled_smart_alerts" ("context_type", "context_id", "alert_type", "root_account_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."scheduled_smart_alerts" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."scheduled_smart_alerts" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.0ms)[0m [1m[35mCREATE TABLE "public"."scores" ("id" bigserial primary key, "enrollment_id" bigint NOT NULL CONSTRAINT "fk_rails_a8b66a0a6e" REFERENCES "public"."enrollments" ("id"), "grading_period_id" bigint CONSTRAINT "fk_rails_baf45f32a0" REFERENCES "public"."grading_periods" ("id"), "workflow_state" character varying(255) DEFAULT 'active' NOT NULL, "current_score" float, "final_score" float, "created_at" timestamp, "updated_at" timestamp, "assignment_group_id" bigint, "course_score" boolean DEFAULT FALSE NOT NULL, "unposted_current_score" float, "unposted_final_score" float, "current_points" float, "unposted_current_points" float, "final_points" float, "unposted_final_points" float, "override_score" float, "root_account_id" bigint CONSTRAINT "fk_rails_933d6ed393" REFERENCES "public"."accounts" ("id"), "custom_grade_status_id" bigint CONSTRAINT "fk_rails_6538b6f2d3" REFERENCES "public"."custom_grade_statuses" ("id"))[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_enrollment_scores" ON "public"."scores" ("enrollment_id")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_scores_on_grading_period_id" ON "public"."scores" ("grading_period_id") WHERE grading_period_id IS NOT NULL[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_scores_on_assignment_group_id" ON "public"."scores" ("assignment_group_id")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_scores_on_root_account_id" ON "public"."scores" ("root_account_id")[0m [- -] [1m[36mSQL (2.6ms)[0m [1m[35mCREATE INDEX "index_scores_on_custom_grade_status_id" ON "public"."scores" ("custom_grade_status_id") WHERE custom_grade_status_id IS NOT NULL[0m [- -] [1m[36mSQL (2.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_grading_period_scores" ON "public"."scores" ("enrollment_id", "grading_period_id") WHERE grading_period_id IS NOT NULL[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignment_group_scores" ON "public"."scores" ("enrollment_id", "assignment_group_id") WHERE assignment_group_id IS NOT NULL[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_course_scores" ON "public"."scores" ("enrollment_id") WHERE "course_score"[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."scores" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."scores" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.6ms)[0m [1m[35mCREATE TABLE "public"."score_metadata" ("id" bigserial primary key, "score_id" bigint NOT NULL CONSTRAINT "fk_rails_1baeaf2d19" REFERENCES "public"."scores" ("id"), "calculation_details" json DEFAULT '{}' NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "workflow_state" character varying DEFAULT 'active' NOT NULL)[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_score_metadata_on_score_id" ON "public"."score_metadata" ("score_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."score_metadata" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."score_metadata" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.0ms)[0m [1m[35mCREATE TABLE "public"."score_statistics" ("id" bigserial primary key, "assignment_id" bigint NOT NULL CONSTRAINT "fk_rails_26cf804e62" REFERENCES "public"."assignments" ("id"), "minimum" float NOT NULL, "maximum" float NOT NULL, "mean" float NOT NULL, "count" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "root_account_id" bigint CONSTRAINT "fk_rails_9a9b28f609" REFERENCES "public"."accounts" ("id"), "lower_q" float, "median" float, "upper_q" float)[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_score_statistics_on_assignment_id" ON "public"."score_statistics" ("assignment_id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_score_statistics_on_root_account_id" ON "public"."score_statistics" ("root_account_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."score_statistics" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."score_statistics" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (4.7ms)[0m [1m[35mCREATE TABLE "public"."sessions" ("id" bigserial primary key, "session_id" character varying(255) NOT NULL, "data" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE INDEX "index_sessions_on_session_id" ON "public"."sessions" ("session_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_sessions_on_updated_at" ON "public"."sessions" ("updated_at")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."sessions" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."sessions" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.3ms)[0m [1m[35mCREATE TABLE "public"."session_persistence_tokens" ("id" bigserial primary key, "token_salt" character varying(255) NOT NULL, "crypted_token" character varying(255) NOT NULL, "pseudonym_id" bigint NOT NULL CONSTRAINT "fk_rails_fc3a4b8b9e" REFERENCES "public"."pseudonyms" ("id"), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_session_persistence_tokens_on_pseudonym_id" ON "public"."session_persistence_tokens" ("pseudonym_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."session_persistence_tokens" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."session_persistence_tokens" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.2ms)[0m [1m[35mCREATE TABLE "public"."settings" ("id" bigserial primary key, "name" character varying(255), "value" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "secret" boolean DEFAULT FALSE NOT NULL)[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_settings_on_name" ON "public"."settings" ("name")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."settings" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."settings" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.6ms)[0m [1m[35mCREATE TABLE "public"."shared_brand_configs" ("id" bigserial primary key, "name" character varying(255), "account_id" bigint CONSTRAINT "fk_rails_3f25f5e6fa" REFERENCES "public"."accounts" ("id"), "brand_config_md5" character varying(32) NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, CONSTRAINT "fk_rails_669597e153" FOREIGN KEY ("brand_config_md5") REFERENCES "public"."brand_configs" ("md5"))[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_shared_brand_configs_on_account_id" ON "public"."shared_brand_configs" ("account_id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_shared_brand_configs_on_brand_config_md5" ON "public"."shared_brand_configs" ("brand_config_md5")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."shared_brand_configs" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."shared_brand_configs" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (8.0ms)[0m [1m[35mCREATE TABLE "public"."sis_batch_errors" ("id" bigserial primary key, "sis_batch_id" bigint NOT NULL CONSTRAINT "fk_rails_5b09c1528e" REFERENCES "public"."sis_batches" ("id"), "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_85b0d7c870" REFERENCES "public"."accounts" ("id"), "message" text NOT NULL, "backtrace" text, "file" character varying(255), "failure" boolean DEFAULT FALSE NOT NULL, "row" integer, "created_at" timestamp NOT NULL, "row_info" text)[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_sis_batch_errors_on_sis_batch_id" ON "public"."sis_batch_errors" ("sis_batch_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_sis_batch_errors_on_root_account_id" ON "public"."sis_batch_errors" ("root_account_id")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_sis_batch_errors_on_created_at" ON "public"."sis_batch_errors" ("created_at")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."sis_batch_errors" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."sis_batch_errors" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.8ms)[0m [1m[35mCREATE TABLE "public"."sis_batch_roll_back_data" ("id" bigserial primary key, "sis_batch_id" bigint NOT NULL CONSTRAINT "fk_rails_bfa1493f8a" REFERENCES "public"."sis_batches" ("id"), "context_type" character varying(255) NOT NULL, "context_id" bigint NOT NULL, "previous_workflow_state" character varying(255) NOT NULL, "updated_workflow_state" character varying(255) NOT NULL, "batch_mode_delete" boolean DEFAULT FALSE NOT NULL, "workflow_state" character varying(255) DEFAULT 'active' NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_sis_batch_roll_back_data_on_sis_batch_id" ON "public"."sis_batch_roll_back_data" ("sis_batch_id")[0m [- -] [1m[36mSQL (1.1ms)[0m [1m[35mCREATE INDEX "index_sis_batch_roll_back_data_on_workflow_state" ON "public"."sis_batch_roll_back_data" ("workflow_state")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_sis_batch_roll_back_context_workflow_states" ON "public"."sis_batch_roll_back_data" ("updated_workflow_state", "previous_workflow_state")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."sis_batch_roll_back_data" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."sis_batch_roll_back_data" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.5ms)[0m [1m[35mCREATE TABLE "public"."sis_post_grades_statuses" ("id" bigserial primary key, "course_id" bigint NOT NULL CONSTRAINT "fk_rails_0221897d5f" REFERENCES "public"."courses" ("id"), "course_section_id" bigint CONSTRAINT "fk_rails_07ef291b5d" REFERENCES "public"."course_sections" ("id"), "user_id" bigint CONSTRAINT "fk_rails_870e38a0e6" REFERENCES "public"."users" ("id"), "status" character varying(255) NOT NULL, "message" character varying(255) NOT NULL, "grades_posted_at" timestamp NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_sis_post_grades_statuses_on_course_id" ON "public"."sis_post_grades_statuses" ("course_id")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_sis_post_grades_statuses_on_course_section_id" ON "public"."sis_post_grades_statuses" ("course_section_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_sis_post_grades_statuses_on_user_id" ON "public"."sis_post_grades_statuses" ("user_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."sis_post_grades_statuses" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."sis_post_grades_statuses" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.6ms)[0m [1m[35mCREATE TABLE "public"."standard_grade_statuses" ("id" bigserial primary key, "color" character varying(7) NOT NULL, "status_name" character varying NOT NULL, "hidden" boolean DEFAULT FALSE NOT NULL, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_3d961b60b0" REFERENCES "public"."accounts" ("id"), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_standard_grade_statuses_replica_identity" ON "public"."standard_grade_statuses" ("root_account_id", "id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_standard_status_on_name_and_root_account_id" ON "public"."standard_grade_statuses" ("status_name", "root_account_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."standard_grade_statuses" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."standard_grade_statuses" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.2ms)[0m [1m[35mCREATE TABLE "public"."stream_items" ("id" bigserial primary key, "data" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "context_type" character varying(255), "context_id" bigint, "asset_type" character varying(255) NOT NULL, "asset_id" bigint, "notification_category" character varying(255))[0m [- -] [1m[36mSQL (2.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_stream_items_on_asset_type_and_asset_id" ON "public"."stream_items" ("asset_type", "asset_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_stream_items_on_updated_at" ON "public"."stream_items" ("updated_at")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."stream_items" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."stream_items" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.8ms)[0m [1m[35mCREATE TABLE "public"."stream_item_instances" ("id" bigserial primary key, "user_id" bigint NOT NULL CONSTRAINT "fk_rails_75522c5fd3" REFERENCES "public"."users" ("id"), "stream_item_id" bigint NOT NULL, "hidden" boolean DEFAULT FALSE NOT NULL, "workflow_state" character varying(255), "context_type" character varying(255), "context_id" bigint)[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_stream_item_instances_on_stream_item_id" ON "public"."stream_item_instances" ("stream_item_id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_stream_item_instances_on_context_type_and_context_id" ON "public"."stream_item_instances" ("context_type", "context_id")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_stream_item_instances_global" ON "public"."stream_item_instances" ("user_id", "hidden", "id", "stream_item_id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_stream_item_instances_on_stream_item_id_and_user_id" ON "public"."stream_item_instances" ("stream_item_id", "user_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."stream_item_instances" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."stream_item_instances" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (10.5ms)[0m [1m[35mCREATE TABLE "public"."submissions" ("id" bigserial primary key, "body" text, "url" character varying(255), "attachment_id" bigint, "grade" character varying(255), "score" float, "submitted_at" timestamp, "assignment_id" bigint NOT NULL CONSTRAINT "fk_rails_61cac0823d" REFERENCES "public"."assignments" ("id"), "user_id" bigint NOT NULL CONSTRAINT "fk_rails_8d85741475" REFERENCES "public"."users" ("id") DEFERRABLE INITIALLY IMMEDIATE, "submission_type" character varying(255), "workflow_state" character varying(255) NOT NULL, "created_at" timestamp, "updated_at" timestamp, "group_id" bigint CONSTRAINT "fk_rails_11ec1c51e8" REFERENCES "public"."groups" ("id"), "attachment_ids" text, "processed" boolean, "grade_matches_current_submission" boolean, "published_score" float, "published_grade" character varying(255), "graded_at" timestamp, "student_entered_score" float, "grader_id" bigint, "media_comment_id" character varying(255), "media_comment_type" character varying(255), "quiz_submission_id" bigint CONSTRAINT "fk_rails_ee2f0735cd" REFERENCES "public"."quiz_submissions" ("id"), "submission_comments_count" integer, "attempt" integer, "media_object_id" bigint CONSTRAINT "fk_rails_5d48b8a034" REFERENCES "public"."media_objects" ("id"), "turnitin_data" text, "cached_due_date" timestamp, "excused" boolean, "graded_anonymously" boolean, "late_policy_status" character varying(16), "points_deducted" decimal(6,2), "grading_period_id" bigint CONSTRAINT "fk_rails_9e3ddda320" REFERENCES "public"."grading_periods" ("id"), "seconds_late_override" bigint, "lti_user_id" character varying, "anonymous_id" character varying(5), "last_comment_at" timestamp, "extra_attempts" integer, "posted_at" timestamp, "cached_quiz_lti" boolean DEFAULT FALSE NOT NULL, "cached_tardiness" character varying(16), "course_id" bigint NOT NULL CONSTRAINT "fk_rails_bcaf91aef8" REFERENCES "public"."courses" ("id"), "root_account_id" bigint CONSTRAINT "fk_rails_f44ff46cd5" REFERENCES "public"."accounts" ("id"), "redo_request" boolean DEFAULT FALSE NOT NULL, "resource_link_lookup_uuid" uuid, "proxy_submitter_id" bigint CONSTRAINT "fk_rails_60b29f2fd7" REFERENCES "public"."users" ("id"), "custom_grade_status_id" bigint CONSTRAINT "fk_rails_b470f1112d" REFERENCES "public"."custom_grade_statuses" ("id"), "sticker" character varying(255))[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_submissions_on_submitted_at" ON "public"."submissions" ("submitted_at")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_submissions_on_group_id" ON "public"."submissions" ("group_id") WHERE group_id IS NOT NULL[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE INDEX "index_submissions_on_graded_at" ON "public"."submissions" USING brin ("graded_at")[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE INDEX "index_submissions_on_quiz_submission_id" ON "public"."submissions" ("quiz_submission_id") WHERE quiz_submission_id IS NOT NULL[0m [- -] [1m[36mSQL (2.7ms)[0m [1m[35mCREATE INDEX "index_submissions_on_media_object_id" ON "public"."submissions" ("media_object_id") WHERE media_object_id IS NOT NULL[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE INDEX "index_submissions_on_cached_due_date" ON "public"."submissions" ("cached_due_date")[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE INDEX "index_submissions_on_late_policy_status" ON "public"."submissions" ("late_policy_status") WHERE workflow_state<>'deleted' AND late_policy_status IS NOT NULL[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE INDEX "index_submissions_on_grading_period_id" ON "public"."submissions" ("grading_period_id") WHERE grading_period_id IS NOT NULL[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_submissions_on_cached_quiz_lti" ON "public"."submissions" ("cached_quiz_lti")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_submissions_on_root_account_id" ON "public"."submissions" ("root_account_id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_submissions_on_proxy_submitter_id" ON "public"."submissions" ("proxy_submitter_id")[0m [- -] [1m[36mSQL (2.5ms)[0m [1m[35mCREATE INDEX "index_submissions_on_custom_grade_status_id" ON "public"."submissions" ("custom_grade_status_id") WHERE custom_grade_status_id IS NOT NULL[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_submissions_on_assignment_id_and_submission_type" ON "public"."submissions" ("assignment_id", "submission_type")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_user_id_and_assignment_id" ON "public"."submissions" ("user_id", "assignment_id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_submissions_on_assignment_id_and_user_id" ON "public"."submissions" ("assignment_id", "user_id")[0m [- -] [1m[36mSQL (2.7ms)[0m [1m[35mCREATE INDEX "index_submissions_needs_grading" ON "public"."submissions" ("assignment_id") WHERE submissions.submission_type IS NOT NULL AND (submissions.excused = 'f' OR submissions.excused IS NULL) AND (submissions.workflow_state = 'pending_review' OR (submissions.workflow_state IN ('submitted', 'graded') AND (submissions.score IS NULL OR NOT submissions.grade_matches_current_submission) ) )[0m [- -] [1m[36mSQL (3.4ms)[0m [1m[35mCREATE INDEX "index_active_submissions" ON "public"."submissions" ("assignment_id", "grading_period_id") WHERE workflow_state <> 'deleted'[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_active_submissions_gp" ON "public"."submissions" ("assignment_id", "grading_period_id") WHERE workflow_state<>'deleted' AND grading_period_id IS NOT NULL[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_assignment_id_and_anonymous_id" ON "public"."submissions" ("assignment_id", "anonymous_id") WHERE anonymous_id IS NOT NULL[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_submissions_on_user_and_greatest_dates" ON "public"."submissions" (user_id, GREATEST(submitted_at, created_at))[0m [- -] [1m[36mSQL (2.8ms)[0m [1m[35mCREATE INDEX "index_submissions_graded_or_excused_on_user_id" ON "public"."submissions" ("user_id") WHERE (score IS NOT NULL AND workflow_state = 'graded') OR excused = TRUE[0m [- -] [1m[36mSQL (3.0ms)[0m [1m[35mCREATE INDEX "index_submissions_graded_or_excused_on_assignment_id" ON "public"."submissions" ("assignment_id") WHERE workflow_state <> 'deleted' AND ((score IS NOT NULL AND workflow_state = 'graded') OR excused = TRUE)[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_submissions_on_user_id_and_cached_due_date" ON "public"."submissions" ("user_id", "cached_due_date")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_submissions_on_user_id_and_course_id" ON "public"."submissions" ("user_id", "course_id")[0m [- -] [1m[36mSQL (3.0ms)[0m [1m[35mCREATE INDEX "index_submissions_with_grade" ON "public"."submissions" ("user_id", "course_id") WHERE (score IS NOT NULL OR grade IS NOT NULL) AND workflow_state<>'deleted'[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_submissions_on_course_id_and_cached_due_date" ON "public"."submissions" ("course_id", "cached_due_date")[0m [- -] [1m[36mSQL (6.9ms)[0m [1m[35mCREATE INDEX "index_on_submissions_missing_for_user" ON "public"."submissions" ("user_id") WHERE late_policy_status='missing'[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."submissions" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."submissions" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (8.8ms)[0m [1m[35mCREATE TABLE "public"."submission_comments" ("id" bigserial primary key, "comment" text, "submission_id" bigint CONSTRAINT "fk_rails_e4ff9f0115" REFERENCES "public"."submissions" ("id"), "author_id" bigint CONSTRAINT "fk_rails_a62b09d198" REFERENCES "public"."users" ("id"), "author_name" character varying(255), "group_comment_id" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "attachment_ids" text, "assessment_request_id" bigint, "media_comment_id" character varying(255), "media_comment_type" character varying(255), "context_id" bigint, "context_type" character varying(255), "cached_attachments" text, "anonymous" boolean, "teacher_only_comment" boolean DEFAULT FALSE, "hidden" boolean DEFAULT FALSE, "provisional_grade_id" bigint CONSTRAINT "fk_rails_6a44347cb4" REFERENCES "public"."moderated_grading_provisional_grades" ("id"), "draft" boolean DEFAULT FALSE NOT NULL, "edited_at" timestamp, "attempt" integer, "root_account_id" bigint CONSTRAINT "fk_rails_3afa317b63" REFERENCES "public"."accounts" ("id"), "workflow_state" character varying DEFAULT 'active' NOT NULL)[0m [- -] [1m[36mSQL (4.1ms)[0m [1m[35mCREATE INDEX "index_submission_comments_on_submission_id" ON "public"."submission_comments" ("submission_id")[0m [- -] [1m[36mSQL (4.3ms)[0m [1m[35mCREATE INDEX "index_submission_comments_on_author_id" ON "public"."submission_comments" ("author_id")[0m [- -] [1m[36mSQL (5.0ms)[0m [1m[35mCREATE INDEX "index_submission_comments_on_provisional_grade_id" ON "public"."submission_comments" ("provisional_grade_id") WHERE provisional_grade_id IS NOT NULL[0m [- -] [1m[36mSQL (3.1ms)[0m [1m[35mCREATE INDEX "index_submission_comments_on_draft" ON "public"."submission_comments" ("draft")[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_submission_comments_on_attempt" ON "public"."submission_comments" ("attempt")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_submission_comments_on_root_account_id" ON "public"."submission_comments" ("root_account_id")[0m [- -] [1m[36mSQL (3.5ms)[0m [1m[35mCREATE INDEX "index_submission_comments_on_context_id_and_context_type" ON "public"."submission_comments" ("context_id", "context_type")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."submission_comments" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."submission_comments" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (8.5ms)[0m [1m[35mCREATE TABLE "public"."submission_drafts" ("id" bigserial primary key, "submission_id" bigint NOT NULL CONSTRAINT "fk_rails_0694e3073c" REFERENCES "public"."submissions" ("id"), "submission_attempt" integer NOT NULL, "body" text, "url" text, "active_submission_type" character varying, "media_object_id" character varying, "context_external_tool_id" bigint, "lti_launch_url" text, "resource_link_lookup_uuid" uuid)[0m [- -] [1m[36mSQL (3.6ms)[0m [1m[35mCREATE INDEX "index_submission_drafts_on_submission_id" ON "public"."submission_drafts" ("submission_id")[0m [- -] [1m[36mSQL (13.2ms)[0m [1m[35mCREATE INDEX "index_submission_drafts_on_submission_attempt" ON "public"."submission_drafts" ("submission_attempt")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."submission_drafts" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."submission_drafts" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (2.9ms)[0m [1m[35mCREATE TABLE "public"."submission_draft_attachments" ("id" bigserial primary key, "submission_draft_id" bigint NOT NULL, "attachment_id" bigint NOT NULL)[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_submission_draft_attachments_on_submission_draft_id" ON "public"."submission_draft_attachments" ("submission_draft_id")[0m [- -] [1m[36mSQL (1.2ms)[0m [1m[35mCREATE INDEX "index_submission_draft_attachments_on_attachment_id" ON "public"."submission_draft_attachments" ("attachment_id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submission_draft_and_attachment_unique" ON "public"."submission_draft_attachments" ("submission_draft_id", "attachment_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."submission_draft_attachments" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."submission_draft_attachments" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (12.1ms)[0m [1m[35mCREATE TABLE "public"."submission_versions" ("id" bigserial primary key, "context_id" bigint, "context_type" character varying(255), "version_id" bigint, "user_id" bigint, "assignment_id" bigint, "root_account_id" bigint CONSTRAINT "fk_rails_3cc1d6d266" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (13.3ms)[0m [1m[35mCREATE INDEX "index_submission_versions_on_version_id" ON "public"."submission_versions" ("version_id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_submission_versions_on_root_account_id" ON "public"."submission_versions" ("root_account_id")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submission_versions" ON "public"."submission_versions" ("context_id", "version_id", "user_id", "assignment_id") WHERE context_type='Course'[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."submission_versions" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."submission_versions" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE FUNCTION "public"."submission_comment_after_save_set_last_comment_at__tr_fn" () RETURNS trigger AS $$ BEGIN UPDATE submissions SET last_comment_at = ( SELECT MAX(submission_comments.created_at) FROM submission_comments WHERE submission_comments.submission_id=submissions.id AND submission_comments.author_id <> submissions.user_id AND submission_comments.draft <> 't' AND submission_comments.provisional_grade_id IS NULL ) WHERE id = NEW.submission_id; RETURN NEW; END; $$ LANGUAGE plpgsql; [0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE FUNCTION "public"."submission_comment_after_delete_set_last_comment_at__tr_fn" () RETURNS trigger AS $$ BEGIN UPDATE submissions SET last_comment_at = ( SELECT MAX(submission_comments.created_at) FROM submission_comments WHERE submission_comments.submission_id=submissions.id AND submission_comments.author_id <> submissions.user_id AND submission_comments.draft <> 't' AND submission_comments.provisional_grade_id IS NULL ) WHERE id = OLD.submission_id; RETURN OLD; END; $$ LANGUAGE plpgsql; [0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35m ALTER FUNCTION "public"."submission_comment_after_save_set_last_comment_at__tr_fn"() SET search_path TO public [0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35m ALTER FUNCTION "public"."submission_comment_after_delete_set_last_comment_at__tr_fn"() SET search_path TO public [0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER submission_comment_after_insert_set_last_comment_at__tr AFTER INSERT ON "public"."submission_comments" FOR EACH ROW WHEN (NEW.draft <> 't' AND NEW.provisional_grade_id IS NULL) EXECUTE PROCEDURE "public"."submission_comment_after_save_set_last_comment_at__tr_fn"()[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER submission_comment_after_update_set_last_comment_at__tr AFTER UPDATE OF draft, provisional_grade_id ON "public"."submission_comments" FOR EACH ROW EXECUTE PROCEDURE "public"."submission_comment_after_save_set_last_comment_at__tr_fn"()[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER submission_comment_after_delete_set_last_comment_at__tr AFTER DELETE ON "public"."submission_comments" FOR EACH ROW WHEN (OLD.draft <> 't' AND OLD.provisional_grade_id IS NULL) EXECUTE PROCEDURE "public"."submission_comment_after_delete_set_last_comment_at__tr_fn"()[0m [- -] [1m[36mSQL (5.3ms)[0m [1m[35mCREATE TABLE "public"."switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT FALSE NOT NULL, "settings" text, "delayed_jobs_shard_id" bigint CONSTRAINT "fk_rails_45bd80a9c8" REFERENCES "public"."switchman_shards" ("id"), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "block_stranded" boolean DEFAULT FALSE, "jobs_held" boolean DEFAULT FALSE)[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_switchman_shards_unique_primary_shard" ON "public"."switchman_shards" ("database_server_id") WHERE name IS NULL[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_switchman_shards_on_default" ON "public"."switchman_shards" ("default") WHERE "default"[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_switchman_shards_on_delayed_jobs_shard_id" ON "public"."switchman_shards" ("delayed_jobs_shard_id") WHERE delayed_jobs_shard_id IS NOT NULL[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_switchman_shards_on_database_server_id_and_name" ON "public"."switchman_shards" ("database_server_id", "name")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_switchman_shards_unique_primary_db_and_shard" ON "public"."switchman_shards" ((true)) WHERE database_server_id IS NULL AND name IS NULL[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."switchman_shards" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."switchman_shards" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.6ms)[0m [1m[35mCREATE TABLE IF NOT EXISTS "public"."temporary_enrollment_pairings" ("id" bigserial primary key, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_34cd006ab1" REFERENCES "public"."accounts" ("id"), "workflow_state" character varying(255) DEFAULT 'active' NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "created_by_id" bigint CONSTRAINT "fk_rails_f83a21f38f" REFERENCES "public"."users" ("id"), "deleted_by_id" bigint CONSTRAINT "fk_rails_6c56e522db" REFERENCES "public"."users" ("id"))[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX IF NOT EXISTS "index_temporary_enrollment_pairings_on_created_by_id" ON "public"."temporary_enrollment_pairings" ("created_by_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX IF NOT EXISTS "index_temporary_enrollment_pairings_on_deleted_by_id" ON "public"."temporary_enrollment_pairings" ("deleted_by_id")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX IF NOT EXISTS "index_temporary_enrollment_pairings_replica_identity" ON "public"."temporary_enrollment_pairings" ("root_account_id", "id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."temporary_enrollment_pairings" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."temporary_enrollment_pairings" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.9ms)[0m [1m[35mCREATE TABLE "public"."terms_of_service_contents" ("id" bigserial primary key, "content" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "terms_updated_at" timestamp NOT NULL, "workflow_state" character varying NOT NULL, "account_id" bigint CONSTRAINT "fk_rails_547ad56ef9" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_of_service_contents_on_account_id" ON "public"."terms_of_service_contents" ("account_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."terms_of_service_contents" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."terms_of_service_contents" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.4ms)[0m [1m[35mCREATE TABLE "public"."terms_of_services" ("id" bigserial primary key, "terms_type" character varying DEFAULT 'default' NOT NULL, "passive" boolean DEFAULT TRUE NOT NULL, "terms_of_service_content_id" bigint, "account_id" bigint NOT NULL CONSTRAINT "fk_rails_337ba633a9" REFERENCES "public"."accounts" ("id"), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "workflow_state" character varying NOT NULL)[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_of_services_on_account_id" ON "public"."terms_of_services" ("account_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."terms_of_services" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."terms_of_services" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (4.8ms)[0m [1m[35mCREATE TABLE "public"."thumbnails" ("id" bigserial primary key, "parent_id" bigint, "content_type" character varying(255) NOT NULL, "filename" character varying(255) NOT NULL, "thumbnail" character varying(255), "size" integer NOT NULL, "width" integer, "height" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "uuid" character varying(255), "namespace" character varying(255))[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_thumbnails_on_parent_id" ON "public"."thumbnails" ("parent_id")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_thumbnails_size" ON "public"."thumbnails" ("parent_id", "thumbnail")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."thumbnails" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."thumbnails" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (4.3ms)[0m [1m[35mCREATE TABLE "public"."usage_rights" ("id" bigserial primary key, "context_id" bigint NOT NULL, "context_type" character varying(255) NOT NULL, "use_justification" character varying(255) NOT NULL, "license" character varying(255) NOT NULL, "legal_copyright" text)[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "usage_rights_context_idx" ON "public"."usage_rights" ("context_id", "context_type")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."usage_rights" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."usage_rights" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.6ms)[0m [1m[35mCREATE TABLE "public"."user_account_associations" ("id" bigserial primary key, "user_id" bigint NOT NULL CONSTRAINT "fk_rails_8ec6f29c88" REFERENCES "public"."users" ("id"), "account_id" bigint NOT NULL CONSTRAINT "fk_rails_77e6070def" REFERENCES "public"."accounts" ("id"), "depth" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_ee3ce7b901" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_user_account_associations_on_account_id" ON "public"."user_account_associations" ("account_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_user_account_associations_replica_identity" ON "public"."user_account_associations" ("root_account_id", "id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_user_account_associations_on_user_id_and_account_id" ON "public"."user_account_associations" ("user_id", "account_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."user_account_associations" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."user_account_associations" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.9ms)[0m [1m[35mCREATE TABLE "public"."user_lmgb_outcome_orderings" ("id" bigserial primary key, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_e99a013d04" REFERENCES "public"."accounts" ("id"), "user_id" bigint NOT NULL CONSTRAINT "fk_rails_26995faaa9" REFERENCES "public"."users" ("id"), "course_id" bigint NOT NULL CONSTRAINT "fk_rails_728e4c54c6" REFERENCES "public"."courses" ("id"), "learning_outcome_id" bigint NOT NULL CONSTRAINT "fk_rails_61b9586ab3" REFERENCES "public"."learning_outcomes" ("id"), "position" integer NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_user_lmgb_outcome_orderings_on_user_id" ON "public"."user_lmgb_outcome_orderings" ("user_id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_user_lmgb_outcome_orderings_on_course_id" ON "public"."user_lmgb_outcome_orderings" ("course_id")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_user_lmgb_outcome_orderings_on_learning_outcome_id" ON "public"."user_lmgb_outcome_orderings" ("learning_outcome_id")[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_user_lmgb_outcome_orderings_replica_identity" ON "public"."user_lmgb_outcome_orderings" ("root_account_id", "id")[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_user_lmgb_outcome_orderings" ON "public"."user_lmgb_outcome_orderings" ("learning_outcome_id", "user_id", "course_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."user_lmgb_outcome_orderings" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."user_lmgb_outcome_orderings" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.8ms)[0m [1m[35mCREATE TABLE "public"."user_merge_data" ("id" bigserial primary key, "user_id" bigint NOT NULL CONSTRAINT "fk_rails_4993c3792e" REFERENCES "public"."users" ("id"), "from_user_id" bigint NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "workflow_state" character varying(255) DEFAULT 'active' NOT NULL)[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_user_merge_data_on_user_id" ON "public"."user_merge_data" ("user_id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_user_merge_data_on_from_user_id" ON "public"."user_merge_data" ("from_user_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."user_merge_data" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."user_merge_data" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (8.3ms)[0m [1m[35mCREATE TABLE "public"."user_merge_data_items" ("id" bigserial primary key, "user_merge_data_id" bigint NOT NULL CONSTRAINT "fk_rails_b23903b809" REFERENCES "public"."user_merge_data" ("id"), "user_id" bigint NOT NULL CONSTRAINT "fk_rails_91bd08925b" REFERENCES "public"."users" ("id"), "item_type" character varying(255) NOT NULL, "item" text NOT NULL)[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_user_merge_data_items_on_user_merge_data_id" ON "public"."user_merge_data_items" ("user_merge_data_id")[0m [- -] [1m[36mSQL (1.2ms)[0m [1m[35mCREATE INDEX "index_user_merge_data_items_on_user_id" ON "public"."user_merge_data_items" ("user_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."user_merge_data_items" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."user_merge_data_items" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.4ms)[0m [1m[35mCREATE TABLE "public"."user_merge_data_records" ("id" bigserial primary key, "user_merge_data_id" bigint NOT NULL CONSTRAINT "fk_rails_4579cd8750" REFERENCES "public"."user_merge_data" ("id"), "context_id" bigint NOT NULL, "previous_user_id" bigint NOT NULL, "context_type" character varying(255) NOT NULL, "previous_workflow_state" character varying(255))[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_user_merge_data_records_on_user_merge_data_id" ON "public"."user_merge_data_records" ("user_merge_data_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_user_merge_data_records_on_context_id_and_context_type" ON "public"."user_merge_data_records" ("context_id", "context_type", "user_merge_data_id", "previous_user_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."user_merge_data_records" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."user_merge_data_records" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.6ms)[0m [1m[35mCREATE TABLE "public"."user_notes" ("id" bigserial primary key, "user_id" bigint CONSTRAINT "fk_rails_9bcd528c60" REFERENCES "public"."users" ("id"), "note" text, "title" character varying(255), "created_by_id" bigint CONSTRAINT "fk_rails_b5a898af1b" REFERENCES "public"."users" ("id"), "workflow_state" character varying(255) DEFAULT 'active' NOT NULL, "deleted_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_86c27830da" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_user_notes_on_created_by_id" ON "public"."user_notes" ("created_by_id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_user_notes_replica_identity" ON "public"."user_notes" ("root_account_id", "id")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_user_notes_on_user_id_and_workflow_state" ON "public"."user_notes" ("user_id", "workflow_state")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."user_notes" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."user_notes" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (4.7ms)[0m [1m[35mCREATE TABLE "public"."user_observers" ("id" bigserial primary key, "user_id" bigint NOT NULL CONSTRAINT "fk_rails_6e626831b8" REFERENCES "public"."users" ("id"), "observer_id" bigint NOT NULL CONSTRAINT "fk_rails_506aea5479" REFERENCES "public"."users" ("id"), "workflow_state" character varying(255) DEFAULT 'active' NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "sis_batch_id" bigint, "root_account_id" bigint NOT NULL)[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_user_observers_on_observer_id" ON "public"."user_observers" ("observer_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_user_observers_on_workflow_state" ON "public"."user_observers" ("workflow_state")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_user_observers_on_sis_batch_id" ON "public"."user_observers" ("sis_batch_id") WHERE sis_batch_id IS NOT NULL[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_user_observers_on_user_id_and_observer_id_and_ra" ON "public"."user_observers" ("user_id", "observer_id", "root_account_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."user_observers" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."user_observers" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.1ms)[0m [1m[35mCREATE TABLE "public"."user_past_lti_ids" ("id" bigserial primary key, "user_id" bigint NOT NULL CONSTRAINT "fk_rails_435c8261c6" REFERENCES "public"."users" ("id"), "context_id" bigint NOT NULL, "context_type" character varying(255) NOT NULL, "user_uuid" character varying(255) NOT NULL, "user_lti_id" text NOT NULL, "user_lti_context_id" character varying(255))[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_user_past_lti_ids_on_user_id" ON "public"."user_past_lti_ids" ("user_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_user_past_lti_ids_on_user_uuid" ON "public"."user_past_lti_ids" ("user_uuid")[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE INDEX "index_user_past_lti_ids_on_user_lti_context_id" ON "public"."user_past_lti_ids" ("user_lti_context_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "user_past_lti_ids_index" ON "public"."user_past_lti_ids" ("user_id", "context_id", "context_type")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."user_past_lti_ids" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."user_past_lti_ids" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.8ms)[0m [1m[35mCREATE TABLE "public"."user_preference_values" ("id" bigserial primary key, "user_id" bigint NOT NULL CONSTRAINT "fk_rails_4078397c6d" REFERENCES "public"."users" ("id"), "key" character varying NOT NULL, "sub_key" character varying, "value" text)[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_user_preference_values_on_keys" ON "public"."user_preference_values" ("user_id", "key", "sub_key")[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_user_preference_values_on_key_no_sub_key" ON "public"."user_preference_values" ("user_id", "key") WHERE sub_key IS NULL[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."user_preference_values" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."user_preference_values" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.0ms)[0m [1m[35mCREATE TABLE "public"."user_profiles" ("id" bigserial primary key, "bio" text, "title" character varying(255), "user_id" bigint CONSTRAINT "fk_rails_87a6352e58" REFERENCES "public"."users" ("id"))[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_user_profiles_on_user_id" ON "public"."user_profiles" ("user_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."user_profiles" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."user_profiles" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (5.2ms)[0m [1m[35mCREATE TABLE "public"."user_profile_links" ("id" bigserial primary key, "url" character varying(4096), "title" character varying(255), "user_profile_id" bigint CONSTRAINT "fk_rails_e7feec0134" REFERENCES "public"."user_profiles" ("id"), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE INDEX "index_user_profile_links_on_user_profile_id" ON "public"."user_profile_links" ("user_profile_id") WHERE user_profile_id IS NOT NULL[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."user_profile_links" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."user_profile_links" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.0ms)[0m [1m[35mCREATE TABLE "public"."user_services" ("id" bigserial primary key, "user_id" bigint NOT NULL CONSTRAINT "fk_rails_fea9a826f7" REFERENCES "public"."users" ("id"), "token" text, "secret" character varying(255), "protocol" character varying(255), "service" character varying(255) NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "service_user_url" character varying(255), "service_user_id" character varying(255) NOT NULL, "service_user_name" character varying(255), "service_domain" character varying(255), "crypted_password" character varying(255), "password_salt" character varying(255), "type" character varying(255), "workflow_state" character varying(255) NOT NULL, "last_result_id" character varying(255), "refresh_at" timestamp, "visible" boolean)[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_user_services_on_user_id" ON "public"."user_services" ("user_id")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_user_services_on_id_and_type" ON "public"."user_services" ("id", "type")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."user_services" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."user_services" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (4.7ms)[0m [1m[35mCREATE TABLE "public"."versions" ("id" bigserial primary key, "versionable_id" bigint, "versionable_type" character varying(255), "number" integer, "yaml" text, "created_at" timestamp)[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_versions_on_versionable_object_and_number" ON "public"."versions" ("versionable_id", "versionable_type", "number")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."versions" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."versions" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (4.9ms)[0m [1m[35mCREATE TABLE "public"."viewed_submission_comments" ("id" bigserial primary key, "user_id" bigint NOT NULL CONSTRAINT "fk_rails_653ca85e1b" REFERENCES "public"."users" ("id"), "submission_comment_id" bigint NOT NULL CONSTRAINT "fk_rails_28c7c3f1f7" REFERENCES "public"."submission_comments" ("id"), "viewed_at" timestamp NOT NULL)[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_viewed_submission_comments_on_submission_comment_id" ON "public"."viewed_submission_comments" ("submission_comment_id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_viewed_submission_comments_user_comment" ON "public"."viewed_submission_comments" ("user_id", "submission_comment_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."viewed_submission_comments" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."viewed_submission_comments" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (7.1ms)[0m [1m[35mCREATE TABLE "public"."web_conferences" ("id" bigserial primary key, "title" character varying(255) NOT NULL, "conference_type" character varying(255) NOT NULL, "conference_key" character varying(255), "context_id" bigint NOT NULL, "context_type" character varying(255) NOT NULL, "user_ids" character varying(255), "added_user_ids" character varying(255), "user_id" bigint NOT NULL CONSTRAINT "fk_rails_e776d94dd2" REFERENCES "public"."users" ("id"), "started_at" timestamp, "description" text, "duration" float, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "uuid" character varying(255), "invited_user_ids" character varying(255), "ended_at" timestamp, "start_at" timestamp, "end_at" timestamp, "context_code" character varying(255), "type" character varying(255), "settings" text, "recording_ready" boolean, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_d0b08135f9" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mCREATE INDEX "index_web_conferences_on_user_id" ON "public"."web_conferences" ("user_id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_web_conferences_replica_identity" ON "public"."web_conferences" ("root_account_id", "id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_web_conferences_on_context_id_and_context_type" ON "public"."web_conferences" ("context_id", "context_type")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."web_conferences" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."web_conferences" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.8ms)[0m [1m[35mCREATE TABLE "public"."web_conference_participants" ("id" bigserial primary key, "user_id" bigint CONSTRAINT "fk_rails_5e4063e908" REFERENCES "public"."users" ("id"), "web_conference_id" bigint CONSTRAINT "fk_rails_652989382e" REFERENCES "public"."web_conferences" ("id"), "participation_type" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_318671d89f" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_web_conference_participants_on_user_id" ON "public"."web_conference_participants" ("user_id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_web_conference_participants_on_web_conference_id" ON "public"."web_conference_participants" ("web_conference_id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_web_conference_participants_replica_identity" ON "public"."web_conference_participants" ("root_account_id", "id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."web_conference_participants" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."web_conference_participants" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.9ms)[0m [1m[35mCREATE TABLE "public"."wikis" ("id" bigserial primary key, "title" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "front_page_url" text, "has_no_front_page" boolean, "root_account_id" bigint CONSTRAINT "fk_rails_d3c395298d" REFERENCES "public"."accounts" ("id"))[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_wikis_on_root_account_id" ON "public"."wikis" ("root_account_id")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."wikis" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."wikis" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (10.4ms)[0m [1m[35mCREATE TABLE "public"."wiki_pages" ("id" bigserial primary key, "wiki_id" bigint NOT NULL CONSTRAINT "fk_rails_adcd926cb8" REFERENCES "public"."wikis" ("id"), "title" character varying(255), "body" text, "workflow_state" character varying(255) NOT NULL, "user_id" bigint CONSTRAINT "fk_rails_df5fec60ce" REFERENCES "public"."users" ("id"), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "url" text, "protected_editing" boolean DEFAULT FALSE, "editing_roles" character varying(255), "revised_at" timestamp, "could_be_locked" boolean, "cloned_item_id" bigint CONSTRAINT "fk_rails_154906ae4a" REFERENCES "public"."cloned_items" ("id"), "migration_id" character varying(255), "assignment_id" bigint CONSTRAINT "fk_rails_74a0fa180b" REFERENCES "public"."assignments" ("id"), "old_assignment_id" bigint CONSTRAINT "fk_rails_9a0e88e669" REFERENCES "public"."assignments" ("id"), "todo_date" timestamp, "context_id" bigint NOT NULL, "context_type" character varying NOT NULL, "root_account_id" bigint CONSTRAINT "fk_rails_6315b78b7d" REFERENCES "public"."accounts" ("id"), "publish_at" timestamp, "current_lookup_id" bigint, "unlock_at" timestamp(6), "lock_at" timestamp(6), "only_visible_to_overrides" boolean DEFAULT FALSE NOT NULL)[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_wiki_pages_on_wiki_id" ON "public"."wiki_pages" ("wiki_id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_wiki_pages_on_user_id" ON "public"."wiki_pages" ("user_id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_wiki_pages_on_cloned_item_id" ON "public"."wiki_pages" ("cloned_item_id") WHERE cloned_item_id IS NOT NULL[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_wiki_pages_on_assignment_id" ON "public"."wiki_pages" ("assignment_id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE INDEX "index_wiki_pages_on_old_assignment_id" ON "public"."wiki_pages" ("old_assignment_id")[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE INDEX "index_wiki_pages_on_root_account_id" ON "public"."wiki_pages" ("root_account_id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_wiki_pages_on_current_lookup_id" ON "public"."wiki_pages" ("current_lookup_id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_wiki_pages_on_context_id_and_context_type" ON "public"."wiki_pages" ("context_id", "context_type")[0m [- -] [1m[36mSQL (2.5ms)[0m [1m[35mCREATE INDEX "index_wiki_pages_on_wiki_id_and_todo_date" ON "public"."wiki_pages" ("wiki_id", "todo_date") WHERE todo_date IS NOT NULL[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."wiki_pages" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."wiki_pages" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (6.2ms)[0m [1m[35mCREATE TABLE "public"."wiki_page_lookups" ("id" bigserial primary key, "slug" text NOT NULL, "wiki_page_id" bigint NOT NULL CONSTRAINT "fk_rails_fab897d3f1" REFERENCES "public"."wiki_pages" ("id") ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_c478396003" REFERENCES "public"."accounts" ("id"), "context_id" bigint NOT NULL, "context_type" character varying(255) NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE INDEX "index_wiki_page_lookups_on_wiki_page_id" ON "public"."wiki_page_lookups" ("wiki_page_id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_wiki_page_lookups_replica_identity" ON "public"."wiki_page_lookups" ("root_account_id", "id")[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mCREATE UNIQUE INDEX "unique_index_on_context_and_slug" ON "public"."wiki_page_lookups" ("context_id", "context_type", "slug")[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."wiki_page_lookups" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."wiki_page_lookups" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (4.7ms)[0m [1m[35mALTER TABLE "public"."schema_migrations" ALTER COLUMN "version" TYPE character varying(255)[0m [- -] [1m[36mSQL (21.2ms)[0m [1m[35mCREATE VIEW "public"."assignment_student_visibilities" AS SELECT DISTINCT a.id as assignment_id, e.user_id as user_id, e.course_id as course_id FROM "public"."assignments" a JOIN "public"."enrollments" e ON e.course_id = a.context_id AND a.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') WHERE a.workflow_state NOT IN ('deleted','unpublished') AND COALESCE(a.only_visible_to_overrides, 'false') = 'false' UNION SELECT DISTINCT a.id as assignment_id, e.user_id as user_id, e.course_id as course_id FROM "public"."assignments" a JOIN "public"."enrollments" e ON e.course_id = a.context_id AND a.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON a.id = ao.assignment_id AND ao.set_type = 'ADHOC' INNER JOIN "public"."assignment_override_students" aos ON ao.id = aos.assignment_override_id AND aos.user_id = e.user_id WHERE ao.workflow_state = 'active' AND aos.workflow_state <> 'deleted' AND a.workflow_state NOT IN ('deleted','unpublished') AND a.only_visible_to_overrides = 'true' UNION SELECT DISTINCT a.id as assignment_id, e.user_id as user_id, e.course_id as course_id FROM "public"."assignments" a JOIN "public"."enrollments" e ON e.course_id = a.context_id AND a.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON a.id = ao.assignment_id AND ao.set_type = 'Group' INNER JOIN "public"."groups" g ON g.id = ao.set_id INNER JOIN "public"."group_memberships" gm ON gm.group_id = g.id AND gm.user_id = e.user_id WHERE gm.workflow_state <> 'deleted' AND g.workflow_state <> 'deleted' AND ao.workflow_state = 'active' AND a.workflow_state NOT IN ('deleted','unpublished') AND a.only_visible_to_overrides = 'true' UNION SELECT DISTINCT a.id as assignment_id, e.user_id as user_id, e.course_id as course_id FROM "public"."assignments" a JOIN "public"."enrollments" e ON e.course_id = a.context_id AND a.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON e.course_section_id = ao.set_id AND ao.set_type = 'CourseSection' AND ao.assignment_id = a.id WHERE a.workflow_state NOT IN ('deleted','unpublished') AND a.only_visible_to_overrides = 'true' AND ao.workflow_state = 'active'[0m [- -] [1m[36mSQL (5.8ms)[0m [1m[35mCREATE VIEW "public"."quiz_student_visibilities" AS SELECT DISTINCT q.id as quiz_id, e.user_id as user_id, e.course_id as course_id FROM "public"."quizzes" q JOIN "public"."enrollments" e ON e.course_id = q.context_id AND q.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') WHERE q.workflow_state NOT IN ('deleted','unpublished') AND COALESCE(q.only_visible_to_overrides, 'false') = 'false' UNION SELECT DISTINCT q.id as quiz_id, e.user_id as user_id, e.course_id as course_id FROM "public"."quizzes" q JOIN "public"."enrollments" e ON e.course_id = q.context_id AND q.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON q.id = ao.quiz_id AND ao.set_type = 'ADHOC' INNER JOIN "public"."assignment_override_students" aos ON ao.id = aos.assignment_override_id AND aos.user_id = e.user_id WHERE ao.workflow_state = 'active' AND aos.workflow_state <> 'deleted' AND q.workflow_state NOT IN ('deleted','unpublished') AND q.only_visible_to_overrides = 'true' UNION SELECT DISTINCT q.id as quiz_id, e.user_id as user_id, e.course_id as course_id FROM "public"."quizzes" q JOIN "public"."enrollments" e ON e.course_id = q.context_id AND q.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON e.course_section_id = ao.set_id AND ao.set_type = 'CourseSection' AND ao.quiz_id = q.id WHERE q.workflow_state NOT IN ('deleted','unpublished') AND q.only_visible_to_overrides = 'true' AND ao.workflow_state = 'active'[0m [- -] [1m[36mSQL (25.7ms)[0m [1m[35m/* if only_visible_to_overrides is false, or there's related modules with no overrides, then everyone can see it */ CREATE OR REPLACE VIEW "public"."assignment_student_visibilities_v2" AS SELECT DISTINCT a.id as assignment_id, e.user_id as user_id, e.course_id as course_id FROM "public"."assignments" a JOIN "public"."enrollments" e ON e.course_id = a.context_id AND a.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') LEFT JOIN "public"."content_tags" t ON t.content_id = a.id AND t.content_type = 'Assignment' AND t.tag_type='context_module' AND t.workflow_state<>'deleted' LEFT JOIN "public"."context_modules" m ON m.id = t.context_module_id AND m.workflow_state<>'deleted' LEFT JOIN "public"."assignment_overrides" ao ON m.id = ao.context_module_id AND ao.workflow_state = 'active' WHERE a.workflow_state NOT IN ('deleted','unpublished') AND COALESCE(a.only_visible_to_overrides, 'false') = 'false' AND (m.id IS NULL OR (ao.context_module_id IS NULL AND m.workflow_state = 'active')) UNION /* group overrides */ SELECT DISTINCT a.id as assignment_id, e.user_id as user_id, e.course_id as course_id FROM "public"."assignments" a JOIN "public"."enrollments" e ON e.course_id = a.context_id AND a.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON a.id = ao.assignment_id AND ao.set_type = 'Group' INNER JOIN "public"."groups" g ON g.id = ao.set_id INNER JOIN "public"."group_memberships" gm ON gm.group_id = g.id AND gm.user_id = e.user_id WHERE gm.workflow_state <> 'deleted' AND g.workflow_state <> 'deleted' AND ao.workflow_state = 'active' AND a.workflow_state NOT IN ('deleted','unpublished') AND a.only_visible_to_overrides = 'true' UNION /* section overrides and related module section overrides */ SELECT DISTINCT a.id as assignment_id, e.user_id as user_id, e.course_id as course_id FROM "public"."assignments" a JOIN "public"."enrollments" e ON e.course_id = a.context_id AND a.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') LEFT JOIN "public"."content_tags" t ON t.content_id = a.id AND t.tag_type='context_module' AND t.workflow_state<>'deleted' AND t.content_type = 'Assignment' LEFT JOIN "public"."context_modules" m ON m.id = t.context_module_id AND m.workflow_state = 'active' INNER JOIN "public"."assignment_overrides" ao ON e.course_section_id = ao.set_id AND ao.set_type = 'CourseSection' AND (m.id = ao.context_module_id OR ao.assignment_id = a.id) AND ao.workflow_state = 'active' WHERE a.workflow_state NOT IN ('deleted','unpublished') AND (a.only_visible_to_overrides = 'true' OR m.id IS NOT NULL) AND ao.unassign_item = FALSE EXCEPT /* remove students with unassigned section overrides */ SELECT DISTINCT a.id as assignment_id, e.user_id as user_id, e.course_id as course_id FROM "public"."assignments" a JOIN "public"."enrollments" e ON e.course_id = a.context_id AND a.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON e.course_section_id = ao.set_id AND ao.set_type = 'CourseSection' AND ao.assignment_id = a.id AND ao.workflow_state = 'active' WHERE a.workflow_state NOT IN ('deleted','unpublished') AND ao.unassign_item = TRUE UNION /* ADHOC overrides and related module ADHOC overrides */ SELECT DISTINCT a.id as assignment_id, e.user_id as user_id, e.course_id as course_id FROM "public"."assignments" a JOIN "public"."enrollments" e ON e.course_id = a.context_id AND a.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') LEFT JOIN "public"."content_tags" t ON t.content_id = a.id AND t.tag_type='context_module' AND t.workflow_state<>'deleted' AND t.content_type = 'Assignment' LEFT JOIN "public"."context_modules" m ON m.id = t.context_module_id AND m.workflow_state = 'active' INNER JOIN "public"."assignment_overrides" ao ON (m.id = ao.context_module_id OR a.id = ao.assignment_id) AND ao.set_type = 'ADHOC' AND ao.workflow_state = 'active' INNER JOIN "public"."assignment_override_students" aos ON ao.id = aos.assignment_override_id AND aos.user_id = e.user_id AND aos.workflow_state <> 'deleted' WHERE a.workflow_state NOT IN ('deleted','unpublished') AND (a.only_visible_to_overrides = 'true' OR m.id IS NOT NULL) AND ao.unassign_item = FALSE EXCEPT /* remove students with unassigned ADHOC overrides */ SELECT DISTINCT a.id as assignment_id, e.user_id as user_id, e.course_id as course_id FROM "public"."assignments" a JOIN "public"."enrollments" e ON e.course_id = a.context_id AND a.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON a.id = ao.assignment_id AND ao.set_type = 'ADHOC' AND ao.workflow_state = 'active' INNER JOIN "public"."assignment_override_students" aos ON ao.id = aos.assignment_override_id AND aos.user_id = e.user_id AND aos.workflow_state <> 'deleted' WHERE a.workflow_state NOT IN ('deleted','unpublished') AND ao.unassign_item = TRUE UNION /* course overrides */ SELECT DISTINCT a.id as assignment_id, e.user_id as user_id, e.course_id as course_id FROM "public"."assignments" a JOIN "public"."enrollments" e ON e.course_id = a.context_id AND a.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON e.course_id = ao.set_id AND ao.set_type = 'Course' AND a.id = ao.assignment_id WHERE a.workflow_state NOT IN ('deleted','unpublished') AND ao.workflow_state = 'active'[0m [- -] [1m[36mSQL (20.0ms)[0m [1m[35m/* if only_visible_to_overrides is false, or there's related modules with no overrides, then everyone can see it */ CREATE OR REPLACE VIEW "public"."quiz_student_visibilities_v2" AS SELECT DISTINCT a.id as quiz_id, e.user_id as user_id, e.course_id as course_id FROM "public"."quizzes" a JOIN "public"."enrollments" e ON e.course_id = a.context_id AND a.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') LEFT JOIN "public"."content_tags" t ON t.content_id = a.id AND t.content_type = 'Quizzes::Quiz' AND t.tag_type='context_module' AND t.workflow_state<>'deleted' LEFT JOIN "public"."context_modules" m ON m.id = t.context_module_id AND m.workflow_state<>'deleted' LEFT JOIN "public"."assignment_overrides" ao ON m.id = ao.context_module_id AND ao.workflow_state = 'active' WHERE a.workflow_state NOT IN ('deleted','unpublished') AND COALESCE(a.only_visible_to_overrides, 'false') = 'false' AND (m.id IS NULL OR (ao.context_module_id IS NULL AND m.workflow_state = 'active')) UNION /* section overrides and related module section overrides */ SELECT DISTINCT a.id as quiz_id, e.user_id as user_id, e.course_id as course_id FROM "public"."quizzes" a JOIN "public"."enrollments" e ON e.course_id = a.context_id AND a.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') LEFT JOIN "public"."content_tags" t ON t.content_id = a.id AND t.tag_type='context_module' AND t.workflow_state<>'deleted' AND t.content_type = 'Quizzes::Quiz' LEFT JOIN "public"."context_modules" m ON m.id = t.context_module_id AND m.workflow_state = 'active' INNER JOIN "public"."assignment_overrides" ao ON e.course_section_id = ao.set_id AND ao.set_type = 'CourseSection' AND (m.id = ao.context_module_id OR ao.quiz_id = a.id) AND ao.workflow_state = 'active' WHERE a.workflow_state NOT IN ('deleted','unpublished') AND (a.only_visible_to_overrides = 'true' OR m.id IS NOT NULL) AND ao.unassign_item = FALSE EXCEPT /* remove students with unassigned section overrides */ SELECT DISTINCT a.id as quiz_id, e.user_id as user_id, e.course_id as course_id FROM "public"."quizzes" a JOIN "public"."enrollments" e ON e.course_id = a.context_id AND a.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON e.course_section_id = ao.set_id AND ao.set_type = 'CourseSection' AND ao.quiz_id = a.id AND ao.workflow_state = 'active' WHERE a.workflow_state NOT IN ('deleted','unpublished') AND ao.unassign_item = TRUE UNION /* ADHOC overrides and related module ADHOC overrides */ SELECT DISTINCT a.id as quiz_id, e.user_id as user_id, e.course_id as course_id FROM "public"."quizzes" a JOIN "public"."enrollments" e ON e.course_id = a.context_id AND a.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') LEFT JOIN "public"."content_tags" t ON t.content_id = a.id AND t.tag_type='context_module' AND t.workflow_state<>'deleted' AND t.content_type = 'Quizzes::Quiz' LEFT JOIN "public"."context_modules" m ON m.id = t.context_module_id AND m.workflow_state = 'active' INNER JOIN "public"."assignment_overrides" ao ON (m.id = ao.context_module_id OR a.id = ao.quiz_id) AND ao.set_type = 'ADHOC' AND ao.workflow_state = 'active' INNER JOIN "public"."assignment_override_students" aos ON ao.id = aos.assignment_override_id AND aos.user_id = e.user_id AND aos.workflow_state <> 'deleted' WHERE a.workflow_state NOT IN ('deleted','unpublished') AND (a.only_visible_to_overrides = 'true' OR m.id IS NOT NULL) AND ao.unassign_item = FALSE EXCEPT /* remove students with unassigned ADHOC overrides */ SELECT DISTINCT a.id as quiz_id, e.user_id as user_id, e.course_id as course_id FROM "public"."quizzes" a JOIN "public"."enrollments" e ON e.course_id = a.context_id AND a.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON a.id = ao.quiz_id AND ao.set_type = 'ADHOC' AND ao.workflow_state = 'active' INNER JOIN "public"."assignment_override_students" aos ON ao.id = aos.assignment_override_id AND aos.user_id = e.user_id AND aos.workflow_state <> 'deleted' WHERE a.workflow_state NOT IN ('deleted','unpublished') AND ao.unassign_item = TRUE UNION /* course overrides */ SELECT DISTINCT a.id as quiz_id, e.user_id as user_id, e.course_id as course_id FROM "public"."quizzes" a JOIN "public"."enrollments" e ON e.course_id = a.context_id AND a.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON e.course_id = ao.set_id AND ao.set_type = 'Course' AND a.id = ao.quiz_id WHERE a.workflow_state NOT IN ('deleted','unpublished') AND ao.workflow_state = 'active'[0m [- -] [1m[36mSQL (3.8ms)[0m [1m[35mALTER TABLE "public"."accounts" ADD CONSTRAINT "fk_rails_630eca7263" FOREIGN KEY ("sis_batch_id") REFERENCES "public"."sis_batches" ("id")[0m [- -] [1m[36mSQL (2.9ms)[0m [1m[35mALTER TABLE "public"."accounts" ADD CONSTRAINT "fk_rails_3f0c8923c0" FOREIGN KEY ("latest_outcome_import_id") REFERENCES "public"."outcome_imports" ("id")[0m [- -] [1m[36mSQL (4.1ms)[0m [1m[35mALTER TABLE "public"."accounts" ADD CONSTRAINT "fk_rails_89d393ce68" FOREIGN KEY ("course_template_id") REFERENCES "public"."courses" ("id")[0m [- -] [1m[36mSQL (3.2ms)[0m [1m[35mALTER TABLE "public"."accounts" ADD CONSTRAINT "fk_rails_911a8f4c11" FOREIGN KEY ("grading_standard_id") REFERENCES "public"."grading_standards" ("id")[0m [- -] [1m[36mSQL (3.2ms)[0m [1m[35mALTER TABLE "public"."accounts" ADD CONSTRAINT "fk_rails_f7353907b2" FOREIGN KEY ("brand_config_md5") REFERENCES "public"."brand_configs" ("md5")[0m [- -] [1m[36mSQL (2.7ms)[0m [1m[35mALTER TABLE "public"."courses" ADD CONSTRAINT "fk_rails_4309898d02" FOREIGN KEY ("wiki_id") REFERENCES "public"."wikis" ("id")[0m [- -] [1m[36mSQL (2.5ms)[0m [1m[35mALTER TABLE "public"."courses" ADD CONSTRAINT "fk_rails_c47c5058d9" FOREIGN KEY ("abstract_course_id") REFERENCES "public"."abstract_courses" ("id")[0m [- -] [1m[36mSQL (2.8ms)[0m [1m[35mALTER TABLE "public"."courses" ADD CONSTRAINT "fk_rails_f4449a81f6" FOREIGN KEY ("enrollment_term_id") REFERENCES "public"."enrollment_terms" ("id") DEFERRABLE INITIALLY IMMEDIATE DEFERRABLE INITIALLY IMMEDIATE[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mALTER TABLE "public"."courses" ADD CONSTRAINT "fk_rails_187ebba5f6" FOREIGN KEY ("sis_batch_id") REFERENCES "public"."sis_batches" ("id")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mALTER TABLE "public"."courses" ADD CONSTRAINT "fk_rails_7e42d223b2" FOREIGN KEY ("latest_outcome_import_id") REFERENCES "public"."outcome_imports" ("id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mALTER TABLE "public"."sis_batches" ADD CONSTRAINT "fk_rails_5cc4e38775" FOREIGN KEY ("batch_mode_term_id") REFERENCES "public"."enrollment_terms" ("id")[0m [- -] [1m[36mSQL (2.7ms)[0m [1m[35mALTER TABLE "public"."sis_batches" ADD CONSTRAINT "fk_rails_0235dd4ff6" FOREIGN KEY ("user_id") REFERENCES "public"."users" ("id")[0m [- -] [1m[36mSQL (3.6ms)[0m [1m[35mALTER TABLE "public"."sis_batches" ADD CONSTRAINT "fk_rails_289263ccc7" FOREIGN KEY ("errors_attachment_id") REFERENCES "public"."attachments" ("id")[0m [- -] [1m[36mSQL (2.4ms)[0m [1m[35mALTER TABLE "public"."abstract_courses" ADD CONSTRAINT "fk_rails_87ef57da5a" FOREIGN KEY ("enrollment_term_id") REFERENCES "public"."enrollment_terms" ("id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mALTER TABLE "public"."account_notification_roles" ADD CONSTRAINT "fk_rails_794b06ff0e" FOREIGN KEY ("role_id") REFERENCES "public"."roles" ("id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mALTER TABLE "public"."account_reports" ADD CONSTRAINT "fk_rails_58e7f750a2" FOREIGN KEY ("attachment_id") REFERENCES "public"."attachments" ("id")[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mALTER TABLE "public"."account_users" ADD CONSTRAINT "fk_rails_f685686f18" FOREIGN KEY ("role_id") REFERENCES "public"."roles" ("id")[0m [- -] [1m[36mSQL (4.4ms)[0m [1m[35mALTER TABLE "public"."anonymous_or_moderation_events" ADD CONSTRAINT "fk_rails_80aae1e26f" FOREIGN KEY ("assignment_id") REFERENCES "public"."assignments" ("id")[0m [- -] [1m[36mSQL (4.4ms)[0m [1m[35mALTER TABLE "public"."anonymous_or_moderation_events" ADD CONSTRAINT "fk_rails_1c75f73508" FOREIGN KEY ("submission_id") REFERENCES "public"."submissions" ("id")[0m [- -] [1m[36mSQL (2.5ms)[0m [1m[35mALTER TABLE "public"."anonymous_or_moderation_events" ADD CONSTRAINT "fk_rails_227462b115" FOREIGN KEY ("canvadoc_id") REFERENCES "public"."canvadocs" ("id")[0m [- -] [1m[36mSQL (2.7ms)[0m [1m[35mALTER TABLE "public"."anonymous_or_moderation_events" ADD CONSTRAINT "fk_rails_f492821432" FOREIGN KEY ("context_external_tool_id") REFERENCES "public"."context_external_tools" ("id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mALTER TABLE "public"."anonymous_or_moderation_events" ADD CONSTRAINT "fk_rails_a862303024" FOREIGN KEY ("quiz_id") REFERENCES "public"."quizzes" ("id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mALTER TABLE "public"."assessment_requests" ADD CONSTRAINT "fk_rails_400dc27246" FOREIGN KEY ("asset_id") REFERENCES "public"."submissions" ("id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mALTER TABLE "public"."assessment_requests" ADD CONSTRAINT "fk_rails_cef87e7126" FOREIGN KEY ("rubric_association_id") REFERENCES "public"."rubric_associations" ("id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mALTER TABLE "public"."assignments" ADD CONSTRAINT "fk_rails_be38f24036" FOREIGN KEY ("group_category_id") REFERENCES "public"."group_categories" ("id")[0m [- -] [1m[36mSQL (3.1ms)[0m [1m[35mALTER TABLE "public"."assignments" ADD CONSTRAINT "fk_rails_b035441827" FOREIGN KEY ("grader_section_id") REFERENCES "public"."course_sections" ("id")[0m [- -] [1m[36mSQL (2.7ms)[0m [1m[35mALTER TABLE "public"."assignments" ADD CONSTRAINT "fk_rails_46718e626a" FOREIGN KEY ("migrate_from_id") REFERENCES "public"."quizzes" ("id")[0m [- -] [1m[36mSQL (2.9ms)[0m [1m[35mALTER TABLE "public"."assignments" ADD CONSTRAINT "fk_rails_3b14d42018" FOREIGN KEY ("annotatable_attachment_id") REFERENCES "public"."attachments" ("id")[0m [- -] [1m[36mSQL (3.3ms)[0m [1m[35mALTER TABLE "public"."assignment_overrides" ADD CONSTRAINT "fk_rails_bc94d484ff" FOREIGN KEY ("quiz_id") REFERENCES "public"."quizzes" ("id")[0m [- -] [1m[36mSQL (2.7ms)[0m [1m[35mALTER TABLE "public"."assignment_overrides" ADD CONSTRAINT "fk_rails_93a79682f6" FOREIGN KEY ("context_module_id") REFERENCES "public"."context_modules" ("id")[0m [- -] [1m[36mSQL (3.5ms)[0m [1m[35mALTER TABLE "public"."assignment_overrides" ADD CONSTRAINT "fk_rails_ba7c38f74c" FOREIGN KEY ("wiki_page_id") REFERENCES "public"."wiki_pages" ("id")[0m [- -] [1m[36mSQL (4.3ms)[0m [1m[35mALTER TABLE "public"."assignment_overrides" ADD CONSTRAINT "fk_rails_1b328f175b" FOREIGN KEY ("discussion_topic_id") REFERENCES "public"."discussion_topics" ("id")[0m [- -] [1m[36mSQL (2.0ms)[0m [1m[35mALTER TABLE "public"."assignment_overrides" ADD CONSTRAINT "fk_rails_aa683b1055" FOREIGN KEY ("attachment_id") REFERENCES "public"."attachments" ("id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mALTER TABLE "public"."assignment_override_students" ADD CONSTRAINT "fk_rails_e35e8eee60" FOREIGN KEY ("quiz_id") REFERENCES "public"."quizzes" ("id")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mALTER TABLE "public"."assignment_override_students" ADD CONSTRAINT "fk_rails_c64a8a9f6b" FOREIGN KEY ("context_module_id") REFERENCES "public"."context_modules" ("id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mALTER TABLE "public"."assignment_override_students" ADD CONSTRAINT "fk_rails_a157046dae" FOREIGN KEY ("wiki_page_id") REFERENCES "public"."wiki_pages" ("id")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mALTER TABLE "public"."assignment_override_students" ADD CONSTRAINT "fk_rails_3f4a57f6cc" FOREIGN KEY ("discussion_topic_id") REFERENCES "public"."discussion_topics" ("id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mALTER TABLE "public"."assignment_override_students" ADD CONSTRAINT "fk_rails_767df07579" FOREIGN KEY ("attachment_id") REFERENCES "public"."attachments" ("id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mALTER TABLE "public"."attachments" ADD CONSTRAINT "fk_rails_d24085bab5" FOREIGN KEY ("usage_rights_id") REFERENCES "public"."usage_rights" ("id")[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mALTER TABLE "public"."auditor_authentication_records" ADD CONSTRAINT "fk_rails_5ad3656efe" FOREIGN KEY ("pseudonym_id") REFERENCES "public"."pseudonyms" ("id")[0m [- -] [1m[36mSQL (3.0ms)[0m [1m[35mALTER TABLE "public"."auditor_grade_change_records" ADD CONSTRAINT "fk_rails_580da144dc" FOREIGN KEY ("submission_id") REFERENCES "public"."submissions" ("id")[0m [- -] [1m[36mSQL (2.3ms)[0m [1m[35mALTER TABLE "public"."auditor_grade_change_records" ADD CONSTRAINT "fk_rails_7f96e6972d" FOREIGN KEY ("grading_period_id") REFERENCES "public"."grading_periods" ("id")[0m [- -] [1m[36mSQL (2.7ms)[0m [1m[35mALTER TABLE "public"."auditor_pseudonym_records" ADD CONSTRAINT "fk_rails_9739b23244" FOREIGN KEY ("pseudonym_id") REFERENCES "public"."pseudonyms" ("id")[0m [- -] [1m[36mSQL (2.9ms)[0m [1m[35mALTER TABLE "public"."calendar_events" ADD CONSTRAINT "fk_rails_c65a0a767a" FOREIGN KEY ("web_conference_id") REFERENCES "public"."web_conferences" ("id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mALTER TABLE "public"."canvadocs_annotation_contexts" ADD CONSTRAINT "fk_rails_3852f56e03" FOREIGN KEY ("submission_id") REFERENCES "public"."submissions" ("id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mALTER TABLE "public"."collaborators" ADD CONSTRAINT "fk_rails_baeba1010a" FOREIGN KEY ("group_id") REFERENCES "public"."groups" ("id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mALTER TABLE "public"."content_migrations" ADD CONSTRAINT "fk_rails_04f446621a" FOREIGN KEY ("child_subscription_id") REFERENCES "public"."master_courses_child_subscriptions" ("id")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mALTER TABLE "public"."content_tags" ADD CONSTRAINT "fk_rails_0ad9c826f2" FOREIGN KEY ("context_module_id") REFERENCES "public"."context_modules" ("id")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mALTER TABLE "public"."content_tags" ADD CONSTRAINT "fk_rails_cbe0e9b21a" FOREIGN KEY ("learning_outcome_id") REFERENCES "public"."learning_outcomes" ("id")[0m [- -] [1m[36mSQL (1.1ms)[0m [1m[35mALTER TABLE "public"."conversation_batches" ADD CONSTRAINT "fk_rails_d421fc74f4" FOREIGN KEY ("root_conversation_message_id") REFERENCES "public"."conversation_messages" ("id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mALTER TABLE "public"."course_account_associations" ADD CONSTRAINT "fk_rails_7225a78aa5" FOREIGN KEY ("course_section_id") REFERENCES "public"."course_sections" ("id")[0m [- -] [1m[36mSQL (1.2ms)[0m [1m[35mALTER TABLE "public"."course_sections" ADD CONSTRAINT "fk_rails_88559b4f6d" FOREIGN KEY ("enrollment_term_id") REFERENCES "public"."enrollment_terms" ("id")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mALTER TABLE "public"."delayed_messages" ADD CONSTRAINT "fk_rails_81d84c7a3d" FOREIGN KEY ("notification_policy_id") REFERENCES "public"."notification_policies" ("id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mALTER TABLE "public"."delayed_messages" ADD CONSTRAINT "fk_rails_46708890c3" FOREIGN KEY ("notification_policy_override_id") REFERENCES "public"."notification_policy_overrides" ("id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mALTER TABLE "public"."discussion_entries" ADD CONSTRAINT "fk_rails_e329dc15c5" FOREIGN KEY ("discussion_topic_id") REFERENCES "public"."discussion_topics" ("id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mALTER TABLE "public"."discussion_entry_drafts" ADD CONSTRAINT "fk_rails_1a148cca38" FOREIGN KEY ("discussion_topic_id") REFERENCES "public"."discussion_topics" ("id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mALTER TABLE "public"."discussion_topics" ADD CONSTRAINT "fk_rails_1d19e2eea5" FOREIGN KEY ("external_feed_id") REFERENCES "public"."external_feeds" ("id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mALTER TABLE "public"."discussion_topics" ADD CONSTRAINT "fk_rails_0b0ccee25f" FOREIGN KEY ("group_category_id") REFERENCES "public"."group_categories" ("id")[0m [- -] [1m[36mSQL (1.4ms)[0m [1m[35mALTER TABLE "public"."enrollment_dates_overrides" ADD CONSTRAINT "fk_rails_356b7d0ddc" FOREIGN KEY ("enrollment_term_id") REFERENCES "public"."enrollment_terms" ("id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mALTER TABLE "public"."enrollment_states" ADD CONSTRAINT "fk_rails_2583b53a28" FOREIGN KEY ("enrollment_id") REFERENCES "public"."enrollments" ("id")[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mALTER TABLE "public"."enrollment_terms" ADD CONSTRAINT "fk_rails_51e8498073" FOREIGN KEY ("grading_period_group_id") REFERENCES "public"."grading_period_groups" ("id")[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mALTER TABLE "public"."enrollments" ADD CONSTRAINT "fk_rails_d1e7d10c0a" FOREIGN KEY ("role_id") REFERENCES "public"."roles" ("id")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mALTER TABLE "public"."enrollments" ADD CONSTRAINT "fk_rails_bb18af1d4e" FOREIGN KEY ("temporary_enrollment_pairing_id") REFERENCES "public"."temporary_enrollment_pairings" ("id")[0m [- -] [1m[36mSQL (1.2ms)[0m [1m[35mALTER TABLE "public"."gradebook_csvs" ADD CONSTRAINT "fk_rails_4d8cd84eb3" FOREIGN KEY ("progress_id") REFERENCES "public"."progresses" ("id")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mALTER TABLE "public"."gradebook_uploads" ADD CONSTRAINT "fk_rails_4e38efab60" FOREIGN KEY ("progress_id") REFERENCES "public"."progresses" ("id")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mALTER TABLE "public"."groups" ADD CONSTRAINT "fk_rails_e5b00ef0e2" FOREIGN KEY ("wiki_id") REFERENCES "public"."wikis" ("id")[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mALTER TABLE "public"."lti_line_items" ADD CONSTRAINT "fk_rails_96e1b2271c" FOREIGN KEY ("lti_resource_link_id") REFERENCES "public"."lti_resource_links" ("id")[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mALTER TABLE "public"."lti_message_handlers" ADD CONSTRAINT "fk_rails_0446c78346" FOREIGN KEY ("resource_handler_id") REFERENCES "public"."lti_resource_handlers" ("id")[0m [- -] [1m[36mSQL (2.6ms)[0m [1m[35mALTER TABLE "public"."lti_message_handlers" ADD CONSTRAINT "fk_rails_ec356d0f96" FOREIGN KEY ("tool_proxy_id") REFERENCES "public"."lti_tool_proxies" ("id")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mALTER TABLE "public"."lti_resource_handlers" ADD CONSTRAINT "fk_rails_7cca6549c4" FOREIGN KEY ("tool_proxy_id") REFERENCES "public"."lti_tool_proxies" ("id")[0m [- -] [1m[36mSQL (3.0ms)[0m [1m[35mALTER TABLE "public"."lti_results" ADD CONSTRAINT "fk_rails_521e616957" FOREIGN KEY ("submission_id") REFERENCES "public"."submissions" ("id")[0m [- -] [1m[36mSQL (2.8ms)[0m [1m[35mALTER TABLE "public"."master_courses_child_content_tags" ADD CONSTRAINT "fk_rails_1421b96805" FOREIGN KEY ("child_subscription_id") REFERENCES "public"."master_courses_child_subscriptions" ("id")[0m [- -] [1m[36mSQL (2.5ms)[0m [1m[35mALTER TABLE "public"."master_courses_child_subscriptions" ADD CONSTRAINT "fk_rails_831debb6b9" FOREIGN KEY ("master_template_id") REFERENCES "public"."master_courses_master_templates" ("id")[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mALTER TABLE "public"."master_courses_master_content_tags" ADD CONSTRAINT "fk_rails_925590350a" FOREIGN KEY ("master_template_id") REFERENCES "public"."master_courses_master_templates" ("id")[0m [- -] [1m[36mSQL (2.2ms)[0m [1m[35mALTER TABLE "public"."master_courses_master_content_tags" ADD CONSTRAINT "fk_rails_af398d5991" FOREIGN KEY ("current_migration_id") REFERENCES "public"."master_courses_master_migrations" ("id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mALTER TABLE "public"."master_courses_master_migrations" ADD CONSTRAINT "fk_rails_48befa8db6" FOREIGN KEY ("master_template_id") REFERENCES "public"."master_courses_master_templates" ("id")[0m [- -] [1m[36mSQL (2.9ms)[0m [1m[35mALTER TABLE "public"."moderated_grading_provisional_grades" ADD CONSTRAINT "fk_rails_afa87e4ebc" FOREIGN KEY ("submission_id") REFERENCES "public"."submissions" ("id")[0m [- -] [1m[36mSQL (2.9ms)[0m [1m[35mALTER TABLE "public"."originality_reports" ADD CONSTRAINT "fk_rails_36c981e3e7" FOREIGN KEY ("submission_id") REFERENCES "public"."submissions" ("id")[0m [- -] [1m[36mSQL (2.5ms)[0m [1m[35mALTER TABLE "public"."wiki_pages" ADD CONSTRAINT "fk_rails_35d1fa9801" FOREIGN KEY ("current_lookup_id") REFERENCES "public"."wiki_page_lookups" ("id")[0m [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.9ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20101210192618') RETURNING "version"[0m [- -] [1m[36mSQL TRANSACTION (27.9ms)[0m [1m[35mCOMMIT[0m [- -] Migrating to CreateDelayedJobs (20101216224513) [- -] [1m[36mSQL TRANSACTION (7.9ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL (8.9ms)[0m [1m[35mCREATE TABLE "public"."delayed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0, "attempts" integer DEFAULT 0, "handler" text, "last_error" text, "queue" character varying(255) NOT NULL, "run_at" timestamp NOT NULL, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "tag" character varying(255), "max_attempts" integer, "strand" character varying(255), "next_in_strand" boolean DEFAULT TRUE NOT NULL, "shard_id" bigint, "source" character varying(255), "max_concurrent" integer DEFAULT 1 NOT NULL, "expires_at" timestamp, "strand_order_override" integer DEFAULT 0 NOT NULL, "singleton" character varying)[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX "index_delayed_jobs_on_locked_by" ON "public"."delayed_jobs" ("locked_by") WHERE locked_by IS NOT NULL[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_delayed_jobs_on_tag" ON "public"."delayed_jobs" ("tag")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "index_delayed_jobs_on_shard_id" ON "public"."delayed_jobs" ("shard_id")[0m [- -] [1m[36mSQL (2.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_delayed_jobs_on_singleton_not_running" ON "public"."delayed_jobs" ("singleton") WHERE singleton IS NOT NULL AND (locked_by IS NULL OR locked_by = 'on hold')[0m [- -] [1m[36mSQL (2.7ms)[0m [1m[35mCREATE INDEX "get_delayed_jobs_index" ON "public"."delayed_jobs" ("priority", "run_at", "id") WHERE queue = 'canvas_queue' AND locked_at IS NULL AND next_in_strand[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE INDEX "index_delayed_jobs_on_strand" ON "public"."delayed_jobs" ("strand", "id")[0m [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_delayed_jobs_on_run_at_and_tag" ON "public"."delayed_jobs" ("run_at", "tag")[0m [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE INDEX "next_in_strand_index" ON "public"."delayed_jobs" ("strand", "strand_order_override", "id") WHERE strand IS NOT NULL[0m [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "n_strand_index" ON "public"."delayed_jobs" ("strand", "next_in_strand", "id") WHERE strand IS NOT NULL[0m [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_delayed_jobs_on_singleton_running" ON "public"."delayed_jobs" ("singleton") WHERE singleton IS NOT NULL AND locked_by IS NOT NULL AND locked_by <> 'on hold'[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.8ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.8ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."delayed_jobs" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."delayed_jobs" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.8ms)[0m [1m[35mCREATE FUNCTION "public"."half_md5_as_bigint"(strand varchar) RETURNS bigint AS $$ DECLARE strand_md5 bytea; BEGIN strand_md5 := decode(md5(strand), 'hex'); RETURN (CAST(get_byte(strand_md5, 0) AS bigint) << 56) + (CAST(get_byte(strand_md5, 1) AS bigint) << 48) + (CAST(get_byte(strand_md5, 2) AS bigint) << 40) + (CAST(get_byte(strand_md5, 3) AS bigint) << 32) + (CAST(get_byte(strand_md5, 4) AS bigint) << 24) + (get_byte(strand_md5, 5) << 16) + (get_byte(strand_md5, 6) << 8) + get_byte(strand_md5, 7); END; $$ LANGUAGE plpgsql SET search_path TO public; [0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE FUNCTION "public"."delayed_jobs_before_insert_row_tr_fn" () RETURNS trigger AS $$ BEGIN IF NEW.strand IS NOT NULL THEN PERFORM pg_advisory_xact_lock(half_md5_as_bigint(NEW.strand)); IF (SELECT COUNT(*) FROM ( SELECT 1 FROM delayed_jobs WHERE strand = NEW.strand AND next_in_strand=true LIMIT NEW.max_concurrent ) s) = NEW.max_concurrent THEN NEW.next_in_strand := false; END IF; END IF; IF NEW.singleton IS NOT NULL THEN PERFORM pg_advisory_xact_lock(half_md5_as_bigint(CONCAT('singleton:', NEW.singleton))); -- this condition seems silly, but it forces postgres to use the two partial indexes on singleton, -- rather than doing a seq scan PERFORM 1 FROM delayed_jobs WHERE singleton = NEW.singleton AND (locked_by IS NULL OR locked_by = 'on hold' OR locked_by <> 'on hold'); IF FOUND THEN NEW.next_in_strand := false; END IF; END IF; RETURN NEW; END; $$ LANGUAGE plpgsql SET search_path TO public; [0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER delayed_jobs_before_insert_row_tr BEFORE INSERT ON "public"."delayed_jobs" FOR EACH ROW WHEN (NEW.strand IS NOT NULL OR NEW.singleton IS NOT NULL) EXECUTE PROCEDURE "public"."delayed_jobs_before_insert_row_tr_fn"()[0m [- -] [1m[36mSQL (1.0ms)[0m [1m[37mCREATE FUNCTION "public"."delayed_jobs_after_delete_row_tr_fn" () RETURNS trigger AS $$ DECLARE next_strand varchar; running_count integer; should_lock boolean; should_be_precise boolean; update_query varchar; skip_locked varchar; transition boolean; BEGIN IF OLD.strand IS NOT NULL THEN should_lock := true; should_be_precise := OLD.id % (OLD.max_concurrent * 4) = 0; IF NOT should_be_precise AND OLD.max_concurrent > 16 THEN running_count := (SELECT COUNT(*) FROM ( SELECT 1 as one FROM delayed_jobs WHERE strand = OLD.strand AND next_in_strand = 't' LIMIT OLD.max_concurrent ) subquery_for_count); should_lock := running_count < OLD.max_concurrent; END IF; IF should_lock THEN PERFORM pg_advisory_xact_lock(half_md5_as_bigint(OLD.strand)); END IF; -- note that we don't really care if the row we're deleting has a singleton, or if it even -- matches the row(s) we're going to update. we just need to make sure that whatever -- singleton we grab isn't already running (which is a simple existence check, since -- the unique indexes ensure there is at most one singleton running, and one queued) update_query := 'UPDATE delayed_jobs SET next_in_strand=true WHERE id IN ( SELECT id FROM delayed_jobs j2 WHERE next_in_strand=false AND j2.strand=$1.strand AND (j2.singleton IS NULL OR NOT EXISTS (SELECT 1 FROM delayed_jobs j3 WHERE j3.singleton=j2.singleton AND j3.id<>j2.id AND (j3.locked_by IS NULL OR j3.locked_by = ''on hold'' OR j3.locked_by <> ''on hold''))) ORDER BY j2.strand_order_override ASC, j2.id ASC LIMIT '; IF should_be_precise THEN running_count := (SELECT COUNT(*) FROM ( SELECT 1 FROM delayed_jobs WHERE strand = OLD.strand AND next_in_strand = 't' LIMIT OLD.max_concurrent ) s); IF running_count < OLD.max_concurrent THEN update_query := update_query || '($1.max_concurrent - $2)'; ELSE -- we have too many running already; just bail RETURN OLD; END IF; ELSE update_query := update_query || '1'; -- n-strands don't require precise ordering; we can make this query more performant IF OLD.max_concurrent > 1 THEN skip_locked := ' SKIP LOCKED'; END IF; END IF; update_query := update_query || ' FOR UPDATE' || COALESCE(skip_locked, '') || ')'; EXECUTE update_query USING OLD, running_count; END IF; IF OLD.singleton IS NOT NULL THEN PERFORM pg_advisory_xact_lock(half_md5_as_bigint(CONCAT('singleton:', OLD.singleton))); transition := EXISTS (SELECT 1 FROM delayed_jobs AS j1 WHERE j1.singleton = OLD.singleton AND j1.strand IS DISTINCT FROM OLD.strand AND locked_by IS NULL); IF transition THEN next_strand := (SELECT j1.strand FROM delayed_jobs AS j1 WHERE j1.singleton = OLD.singleton AND j1.strand IS DISTINCT FROM OLD.strand AND locked_by IS NULL AND j1.strand IS NOT NULL LIMIT 1); IF next_strand IS NOT NULL THEN -- if the singleton has a new strand defined, we need to lock it to ensure we obey n_strand constraints -- IF NOT pg_try_advisory_xact_lock(half_md5_as_bigint(next_strand)) THEN -- a failure to acquire the lock means that another process already has it and will thus handle this singleton -- RETURN OLD; END IF; END IF; ELSIF OLD.strand IS NOT NULL THEN -- if there is no transition and there is a strand then we have already handled this singleton in the case above -- RETURN OLD; END IF; -- handles transitioning a singleton from stranded to not stranded -- -- handles transitioning a singleton from unstranded to stranded -- -- handles transitioning a singleton from strand A to strand B -- -- these transitions are a relatively rare case, so we take a shortcut and -- -- only start the next singleton if its strand does not currently have any running jobs -- -- if it does, the next stranded job that finishes will start this singleton if it can -- UPDATE delayed_jobs SET next_in_strand=true WHERE id IN ( SELECT id FROM delayed_jobs j2 WHERE next_in_strand=false AND j2.singleton=OLD.singleton AND j2.locked_by IS NULL AND (j2.strand IS NULL OR NOT EXISTS (SELECT 1 FROM delayed_jobs j3 WHERE j3.strand=j2.strand AND j3.id<>j2.id)) FOR UPDATE ); END IF; RETURN OLD; END; $$ LANGUAGE plpgsql SET search_path TO public; [0m [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE TRIGGER delayed_jobs_after_delete_row_tr AFTER DELETE ON "public"."delayed_jobs" FOR EACH ROW WHEN ((OLD.strand IS NOT NULL OR OLD.singleton IS NOT NULL) AND OLD.next_in_strand=true) EXECUTE PROCEDURE "public"."delayed_jobs_after_delete_row_tr_fn"()[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE FUNCTION "public"."delayed_jobs_before_unlock_delete_conflicting_singletons_row_fn" () RETURNS trigger AS $$ BEGIN DELETE FROM delayed_jobs WHERE id<>OLD.id AND singleton=OLD.singleton AND locked_by IS NULL; RETURN NEW; END; $$ LANGUAGE plpgsql SET search_path TO public; [0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER delayed_jobs_before_unlock_delete_conflicting_singletons_row_tr BEFORE UPDATE ON "public"."delayed_jobs" FOR EACH ROW WHEN ( OLD.singleton IS NOT NULL AND OLD.singleton=NEW.singleton AND OLD.locked_by IS NOT NULL AND NEW.locked_by IS NULL) EXECUTE PROCEDURE "public"."delayed_jobs_before_unlock_delete_conflicting_singletons_row_fn"(); [0m [- -] [1m[36mSQL (5.1ms)[0m [1m[35mCREATE TABLE "public"."failed_jobs" ("id" bigserial primary key, "priority" integer DEFAULT 0, "attempts" integer DEFAULT 0, "handler" text, "last_error" text, "queue" character varying(255), "run_at" timestamp, "locked_at" timestamp, "failed_at" timestamp, "locked_by" character varying(255), "created_at" timestamp, "updated_at" timestamp, "tag" character varying(255), "max_attempts" integer, "strand" character varying(255), "shard_id" bigint, "original_job_id" bigint, "source" character varying(255), "expires_at" timestamp, "strand_order_override" integer DEFAULT 0 NOT NULL, "singleton" character varying, "requeued_job_id" bigint)[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_failed_jobs_on_failed_at" ON "public"."failed_jobs" ("failed_at")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_failed_jobs_on_tag" ON "public"."failed_jobs" ("tag")[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_failed_jobs_on_strand" ON "public"."failed_jobs" ("strand") WHERE strand IS NOT NULL[0m [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_failed_jobs_on_shard_id" ON "public"."failed_jobs" ("shard_id")[0m [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_failed_jobs_on_singleton" ON "public"."failed_jobs" ("singleton") WHERE singleton IS NOT NULL[0m [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."failed_jobs" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."failed_jobs" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.5ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20101216224513') RETURNING "version"[0m [- -] [1m[36mSQL TRANSACTION (0.9ms)[0m [1m[35mCOMMIT[0m [- -] Migrating to SetReplicaIdentities (20101217224513) [- -] [1m[36mSQL TRANSACTION (0.4ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL (0.8ms)[0m [1m[35mALTER TABLE "public"."access_tokens" REPLICA IDENTITY USING INDEX "index_access_tokens_replica_identity"[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mALTER TABLE "public"."account_users" REPLICA IDENTITY USING INDEX "index_account_users_replica_identity"[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mALTER TABLE "public"."accounts" REPLICA IDENTITY USING INDEX "index_accounts_replica_identity"[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mALTER TABLE "public"."asset_user_accesses" REPLICA IDENTITY USING INDEX "index_asset_user_accesses_replica_identity"[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mALTER TABLE "public"."blackout_dates" REPLICA IDENTITY USING INDEX "index_blackout_dates_replica_identity"[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mALTER TABLE "public"."comment_bank_items" REPLICA IDENTITY USING INDEX "index_comment_bank_items_replica_identity"[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mALTER TABLE "public"."content_tags" REPLICA IDENTITY USING INDEX "index_content_tags_replica_identity"[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mALTER TABLE "public"."context_external_tools" REPLICA IDENTITY USING INDEX "index_context_external_tools_replica_identity"[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mALTER TABLE "public"."course_account_associations" REPLICA IDENTITY USING INDEX "index_course_account_associations_replica_identity"[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mALTER TABLE "public"."course_pace_module_items" REPLICA IDENTITY USING INDEX "index_course_pace_module_items_replica_identity"[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mALTER TABLE "public"."course_paces" REPLICA IDENTITY USING INDEX "index_course_paces_replica_identity"[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mALTER TABLE "public"."course_sections" REPLICA IDENTITY USING INDEX "index_course_sections_replica_identity"[0m [- -] [1m[36mSQL (0.9ms)[0m [1m[35mALTER TABLE "public"."courses" REPLICA IDENTITY USING INDEX "index_courses_replica_identity"[0m [- -] [1m[36mSQL (0.7ms)[0m [1m[35mALTER TABLE "public"."custom_grade_statuses" REPLICA IDENTITY USING INDEX "index_custom_grade_statuses_replica_identity"[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mALTER TABLE "public"."developer_key_account_bindings" REPLICA IDENTITY USING INDEX "index_developer_key_account_bindings_replica_identity"[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mALTER TABLE "public"."developer_keys" REPLICA IDENTITY USING INDEX "index_developer_keys_replica_identity"[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mALTER TABLE "public"."discussion_entries" REPLICA IDENTITY USING INDEX "index_discussion_entries_replica_identity"[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mALTER TABLE "public"."discussion_entry_versions" REPLICA IDENTITY USING INDEX "index_discussion_entry_versions_replica_identity"[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mALTER TABLE "public"."discussion_entry_participants" REPLICA IDENTITY USING INDEX "index_discussion_entry_participants_replica_identity"[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mALTER TABLE "public"."discussion_topic_participants" REPLICA IDENTITY USING INDEX "index_discussion_topic_participants_replica_identity"[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mALTER TABLE "public"."discussion_topics" REPLICA IDENTITY USING INDEX "index_discussion_topics_replica_identity"[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mALTER TABLE "public"."enrollment_dates_overrides" REPLICA IDENTITY USING INDEX "index_enrollment_dates_overrides_replica_identity"[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mALTER TABLE "public"."enrollment_states" REPLICA IDENTITY USING INDEX "index_enrollment_states_replica_identity"[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mALTER TABLE "public"."enrollment_terms" REPLICA IDENTITY USING INDEX "index_enrollment_terms_replica_identity"[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mALTER TABLE "public"."enrollments" REPLICA IDENTITY USING INDEX "index_enrollments_replica_identity"[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mALTER TABLE "public"."favorites" REPLICA IDENTITY USING INDEX "index_favorites_replica_identity"[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mALTER TABLE "public"."folders" REPLICA IDENTITY USING INDEX "index_folders_replica_identity"[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mALTER TABLE "public"."group_categories" REPLICA IDENTITY USING INDEX "index_group_categories_replica_identity"[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mALTER TABLE "public"."group_memberships" REPLICA IDENTITY USING INDEX "index_group_memberships_replica_identity"[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mALTER TABLE "public"."groups" REPLICA IDENTITY USING INDEX "index_groups_replica_identity"[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mALTER TABLE "public"."lti_ims_registrations" REPLICA IDENTITY USING INDEX "index_lti_ims_registrations_replica_identity"[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mALTER TABLE "public"."lti_line_items" REPLICA IDENTITY USING INDEX "index_lti_line_items_replica_identity"[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mALTER TABLE "public"."lti_resource_links" REPLICA IDENTITY USING INDEX "index_lti_resource_links_replica_identity"[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mALTER TABLE "public"."lti_results" REPLICA IDENTITY USING INDEX "index_lti_results_replica_identity"[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[35mALTER TABLE "public"."mentions" REPLICA IDENTITY USING INDEX "index_mentions_replica_identity"[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[35mALTER TABLE "public"."microsoft_sync_groups" REPLICA IDENTITY USING INDEX "index_microsoft_sync_groups_replica_identity"[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mALTER TABLE "public"."microsoft_sync_partial_sync_changes" REPLICA IDENTITY USING INDEX "index_microsoft_sync_partial_sync_changes_replica_identity"[0m [- -] [1m[36mSQL (0.5ms)[0m [1m[35mALTER TABLE "public"."microsoft_sync_user_mappings" REPLICA IDENTITY USING INDEX "index_microsoft_sync_user_mappings_replica_identity"[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mALTER TABLE "public"."originality_reports" REPLICA IDENTITY USING INDEX "index_originality_reports_replica_identity"[0m [- -] [1m[36mSQL (0.7ms)[0m [1m[35mALTER TABLE "public"."pseudonyms" REPLICA IDENTITY USING INDEX "index_pseudonyms_replica_identity"[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mALTER TABLE "public"."role_overrides" REPLICA IDENTITY USING INDEX "index_role_overrides_replica_identity"[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mALTER TABLE "public"."roles" REPLICA IDENTITY USING INDEX "index_roles_replica_identity"[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mALTER TABLE "public"."rubric_criteria" REPLICA IDENTITY USING INDEX "index_rubric_criteria_replica_identity"[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mALTER TABLE "public"."standard_grade_statuses" REPLICA IDENTITY USING INDEX "index_standard_grade_statuses_replica_identity"[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mALTER TABLE "public"."temporary_enrollment_pairings" REPLICA IDENTITY USING INDEX "index_temporary_enrollment_pairings_replica_identity"[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mALTER TABLE "public"."user_account_associations" REPLICA IDENTITY USING INDEX "index_user_account_associations_replica_identity"[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mALTER TABLE "public"."user_lmgb_outcome_orderings" REPLICA IDENTITY USING INDEX "index_user_lmgb_outcome_orderings_replica_identity"[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mALTER TABLE "public"."user_notes" REPLICA IDENTITY USING INDEX "index_user_notes_replica_identity"[0m [- -] [1m[36mSQL (1.1ms)[0m [1m[35mALTER TABLE "public"."users" REPLICA IDENTITY USING INDEX "index_users_replica_identity"[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mALTER TABLE "public"."web_conference_participants" REPLICA IDENTITY USING INDEX "index_web_conference_participants_replica_identity"[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mALTER TABLE "public"."web_conferences" REPLICA IDENTITY USING INDEX "index_web_conferences_replica_identity"[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[35mALTER TABLE "public"."wiki_page_lookups" REPLICA IDENTITY USING INDEX "index_wiki_page_lookups_replica_identity"[0m [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.6ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20101217224513') RETURNING "version"[0m [- -] [1m[36mSQL TRANSACTION (1.0ms)[0m [1m[35mCOMMIT[0m [- -] Migrating to LoadInitialData (20111111214312) [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL (1.3ms)[0m [1m[35mSET CONSTRAINTS "public"."fk_rails_5de7ad5dec" DEFERRED[0m [- -] [1m[36mSQL Account Load (2.1ms)[0m [1m[34mSELECT "accounts".* FROM "public"."accounts" WHERE "accounts"."id" = 0 LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m [- -] [1m[36mSQL Account Create (1.7ms)[0m [1m[32mINSERT INTO "public"."accounts" ("id", "name", "created_at", "updated_at", "workflow_state", "root_account_id", "allow_sis_import", "uuid", "stuck_sis_fields", "lti_guid") VALUES (0, 'Dummy Root Account', '2024-08-27 17:23:26.989865', '2024-08-27 17:23:26.989865', 'deleted', 0, TRUE, 'yjZwLmjU2c8Sf6XZFbIYgyDFcC7pfQpX9ubDcmiW', 'name', 'yjZwLmjU2c8Sf6XZFbIYgyDFcC7pfQpX9ubDcmiW:canvas-lms') RETURNING "id"[0m [- -] [1m[36mSQL LearningOutcomeGroup Load (1.5ms)[0m [1m[34mSELECT "learning_outcome_groups".* FROM "public"."learning_outcome_groups" WHERE "learning_outcome_groups"."context_id" = 0 AND "learning_outcome_groups"."context_type" = 'Account' AND (learning_outcome_groups.workflow_state NOT IN ('deleted', 'archived')) AND "learning_outcome_groups"."learning_outcome_group_id" IS NULL LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m [- -] [1m[36mSQL (0.8ms)[0m [1m[35mSET CONSTRAINTS "public"."fk_rails_5de7ad5dec" IMMEDIATE[0m [- -] [1m[36mSQL EnrollmentTerm Load (0.9ms)[0m [1m[34mSELECT "enrollment_terms".* FROM "public"."enrollment_terms" WHERE "enrollment_terms"."id" = 0 LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [- -] [1m[36mSQL Course Exists? (1.5ms)[0m [1m[34mSELECT 1 AS one FROM "public"."courses" WHERE "courses"."enrollment_term_id" = 0 AND "courses"."workflow_state" != 'deleted' LIMIT 1[0m [- -] [1m[36mSQL EnrollmentTerm Create (1.2ms)[0m [1m[32mINSERT INTO "public"."enrollment_terms" ("id", "root_account_id", "created_at", "updated_at", "workflow_state") VALUES (0, 0, '2024-08-27 17:23:27.092064', '2024-08-27 17:23:27.092064', 'deleted') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m [- -] [1m[36mSQL EnrollmentTerm Load (0.4ms)[0m [1m[34mSELECT "enrollment_terms".* FROM "public"."enrollment_terms" WHERE "enrollment_terms"."id" = 0 LIMIT 1[0m [- -] [1m[36mSQL Account Load (0.5ms)[0m [1m[34mSELECT "accounts".* FROM "public"."accounts" WHERE "accounts"."id" = 0 LIMIT 1[0m [- -] [1m[36mSQL Course Load (0.6ms)[0m [1m[34mSELECT "courses".* FROM "public"."courses" WHERE "courses"."id" = 0 LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m [- -] [1m[36mSQL EnrollmentTerm Load (0.9ms)[0m [1m[34mSELECT "enrollment_terms".* FROM "public"."enrollment_terms" WHERE "enrollment_terms"."id" = 0 LIMIT 1[0m [- -] [1m[36mSQL Course Create (3.0ms)[0m [1m[32mINSERT INTO "public"."courses" ("id", "name", "account_id", "workflow_state", "uuid", "allow_student_wiki_edits", "created_at", "updated_at", "course_code", "default_view", "root_account_id", "enrollment_term_id", "stuck_sis_fields") VALUES (0, 'Unnamed Course', 0, 'deleted', 'BYKi6jPNPco24VvYf9Crc7QMEl8GB7Muu9z1SzaR', FALSE, '2024-08-27 17:23:27.224812', '2024-08-27 17:23:27.224812', 'Unnamed', 'modules', 0, 0, 'account_id,course_code,enrollment_term_id,name,workflow_state') RETURNING "id"[0m [- -] [1m[36mSQL PostPolicy Load (0.9ms)[0m [1m[34mSELECT "post_policies".* FROM "public"."post_policies" WHERE "post_policies"."course_id" = 0 AND "post_policies"."assignment_id" IS NULL LIMIT 1[0m [- -] [1m[36mSQL PostPolicy Create (1.6ms)[0m [1m[32mINSERT INTO "public"."post_policies" ("course_id", "created_at", "updated_at", "root_account_id") VALUES (0, '2024-08-27 17:23:27.278908', '2024-08-27 17:23:27.278908', 0) RETURNING "id"[0m [- -] [1m[36mSQL LearningOutcomeGroup Load (0.6ms)[0m [1m[34mSELECT "learning_outcome_groups".* FROM "public"."learning_outcome_groups" WHERE "learning_outcome_groups"."context_id" = 0 AND "learning_outcome_groups"."context_type" = 'Course' AND (learning_outcome_groups.workflow_state NOT IN ('deleted', 'archived')) AND "learning_outcome_groups"."learning_outcome_group_id" IS NULL LIMIT 1[0m [- -] [1m[36mSQL CourseSection Load (1.0ms)[0m [1m[34mSELECT "course_sections".* FROM "public"."course_sections" WHERE "course_sections"."course_id" = 0[0m [- -] [1m[36mSQL CourseAccountAssociation Load (1.0ms)[0m [1m[34mSELECT "course_account_associations".* FROM "public"."course_account_associations" WHERE "course_account_associations"."course_id" = 0[0m [- -] [1m[36mSQL Account Load (0.8ms)[0m [1m[34mSELECT "accounts".* FROM "public"."accounts" WHERE "accounts"."id" = 0[0m [- -] [1m[36mSQL TRANSACTION (0.4ms)[0m [1m[35mSAVEPOINT active_record_2[0m [- -] [1m[36mSQL Account Load (1.5ms)[0m [1m[34mSELECT "accounts".* FROM "public"."accounts" WHERE "accounts"."id" = 0 LIMIT 1[0m [- -] [1m[36mSQL CourseAccountAssociation Create (1.6ms)[0m [1m[32mINSERT INTO "public"."course_account_associations" ("course_id", "account_id", "depth", "created_at", "updated_at", "root_account_id") VALUES (0, 0, 0, '2024-08-27 17:23:27.346384', '2024-08-27 17:23:27.346384', 0) RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_2[0m [- -] [1m[36mSQL Enrollment Pluck (1.4ms)[0m [1m[34mSELECT "enrollments"."user_id" FROM "public"."enrollments" WHERE (course_id IN (0) AND workflow_state<>'deleted') GROUP BY "enrollments"."user_id"[0m [- -] [1m[36mSQL Notification Load (34.2ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications"[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m [- -] [1m[36mSQL TRANSACTION (0.4ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Switchman::Shard Exists? (1.8ms)[0m [1m[34mSELECT 1 AS one FROM "public"."switchman_shards" WHERE "switchman_shards"."default" = TRUE LIMIT 1[0m [- -] [1m[36mSQL Switchman::Shard Create (0.9ms)[0m [1m[32mINSERT INTO "public"."switchman_shards" ("default", "created_at", "updated_at") VALUES (TRUE, '2024-08-27 17:23:27.452212', '2024-08-27 17:23:27.452212') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Switchman::Shard Load (0.4ms)[0m [1m[34mSELECT "switchman_shards".* FROM "public"."switchman_shards" WHERE "switchman_shards"."default" = TRUE LIMIT 1[0m [- -] [1m[36mSQL (0.6ms)[0m [1m[34mSELECT * FROM unnest(current_schemas(false))[0m [production:1 deploy] [- -] [1m[36mSQL Switchman::Shard Exists? (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "public"."switchman_shards" WHERE "switchman_shards"."id" IN (SELECT DISTINCT "switchman_shards"."delayed_jobs_shard_id" FROM "public"."switchman_shards" WHERE "switchman_shards"."delayed_jobs_shard_id" IS NOT NULL) LIMIT 1[0m [production:1 deploy] [- -] [1m[36mSQL Switchman::Shard Load (0.4ms)[0m [1m[34mSELECT "switchman_shards".* FROM "public"."switchman_shards" WHERE "switchman_shards"."id" = 1[0m [production:1 deploy] [- -] [1m[36mSQL BrandConfig Create (1.0ms)[0m [1m[32mINSERT INTO "public"."brand_configs" ("md5", "variables", "share", "name", "created_at") VALUES ('a1f113321fa024e7a14cb0948597a2a4', '--- ic-brand-primary: "#E66135" ic-brand-button--primary-bgd: "#4A90E2" ic-link-color: "#4A90E2" ic-brand-global-nav-bgd: "#4A90E2" ic-brand-global-nav-logo-bgd: "#3B73B4" ', TRUE, 'K12 Theme', '2024-08-27 17:23:27.489231')[0m [production:1 deploy] [- -] [1m[36mSQL BrandConfig Load (0.9ms)[0m [1m[34mSELECT "brand_configs".* FROM "public"."brand_configs" WHERE "brand_configs"."md5" = 'a1f113321fa024e7a14cb0948597a2a4' LIMIT 1[0m [production:1 deploy] [- -] [1m[36mSQL SharedBrandConfig Create (1.7ms)[0m [1m[32mINSERT INTO "public"."shared_brand_configs" ("name", "brand_config_md5", "created_at", "updated_at") VALUES ('K12 Theme', 'a1f113321fa024e7a14cb0948597a2a4', '2024-08-27 17:23:27.516681', '2024-08-27 17:23:27.516681') RETURNING "id"[0m [production:1 deploy] [- -] [1m[36mSQL BrandConfig Create (0.7ms)[0m [1m[32mINSERT INTO "public"."brand_configs" ("md5", "variables", "share", "name", "created_at") VALUES ('3f38c01c65835e7de842d709a89ec3e8', '--- ic-brand-primary: "#2773e2" ic-brand-button--secondary-bgd: "#4d4d4d" ic-link-color: "#1d6adb" ic-brand-global-nav-bgd: "#f2f2f2" ic-brand-global-nav-ic-icon-svg-fill: "#444444" ic-brand-global-nav-menu-item__text-color: "#444444" ic-brand-global-nav-avatar-border: "#444444" ic-brand-global-nav-logo-bgd: "#4d4d4d" ic-brand-watermark-opacity: ''1'' ic-brand-Login-body-bgd-color: "#f2f2f2" ic-brand-Login-body-bgd-shadow-color: "#f2f2f2" ic-brand-Login-Content-bgd-color: "#ffffff" ic-brand-Login-Content-border-color: "#efefef" ic-brand-Login-Content-label-text-color: "#444444" ic-brand-Login-Content-password-text-color: "#444444" ic-brand-Login-Content-button-bgd: "#2773e2" ic-brand-Login-footer-link-color: "#2773e2" ic-brand-Login-instructure-logo: "#aaaaaa" ', TRUE, 'Minimalist Theme', '2024-08-27 17:23:27.522747')[0m [production:1 deploy] [- -] [1m[36mSQL BrandConfig Load (0.6ms)[0m [1m[34mSELECT "brand_configs".* FROM "public"."brand_configs" WHERE "brand_configs"."md5" = '3f38c01c65835e7de842d709a89ec3e8' LIMIT 1[0m [production:1 deploy] [- -] [1m[36mSQL SharedBrandConfig Create (0.7ms)[0m [1m[32mINSERT INTO "public"."shared_brand_configs" ("name", "brand_config_md5", "created_at", "updated_at") VALUES ('Minimalist Theme', '3f38c01c65835e7de842d709a89ec3e8', '2024-08-27 17:23:27.530052', '2024-08-27 17:23:27.530052') RETURNING "id"[0m [production:1 deploy] [- -] [1m[36mSQL BrandConfig Create (0.6ms)[0m [1m[32mINSERT INTO "public"."brand_configs" ("md5", "variables", "share", "name", "created_at") VALUES ('7845907c6e76db998e5f24d63aca97b5', '--- ic-brand-primary: "#d12e2e" ic-link-color: "#b52828" ic-brand-global-nav-bgd: "#262626" ic-brand-global-nav-ic-icon-svg-fill: "#d43c3c" ic-brand-global-nav-menu-item__text-color--active: "#d12e2e" ic-brand-global-nav-menu-item__badge-bgd: "#128812" ic-brand-global-nav-logo-bgd: "#d12e2e" ic-brand-watermark-opacity: ''1'' ic-brand-Login-body-bgd-color: "#d12e2e" ic-brand-Login-body-bgd-shadow-color: "#d12e2e" ic-brand-Login-Content-bgd-color: "#262626" ic-brand-Login-Content-border-color: "#262626" ic-brand-Login-Content-password-text-color: "#dddddd" ic-brand-Login-Content-button-bgd: "#d12e2e" ic-brand-Login-footer-link-color: "#dddddd" ic-brand-Login-footer-link-color-hover: "#cccccc" ic-brand-Login-instructure-logo: "#cccccc" ', TRUE, 'State U. Theme', '2024-08-27 17:23:27.534111')[0m [production:1 deploy] [- -] [1m[36mSQL BrandConfig Load (0.6ms)[0m [1m[34mSELECT "brand_configs".* FROM "public"."brand_configs" WHERE "brand_configs"."md5" = '7845907c6e76db998e5f24d63aca97b5' LIMIT 1[0m [production:1 deploy] [- -] [1m[36mSQL SharedBrandConfig Create (0.7ms)[0m [1m[32mINSERT INTO "public"."shared_brand_configs" ("name", "brand_config_md5", "created_at", "updated_at") VALUES ('State U. Theme', '7845907c6e76db998e5f24d63aca97b5', '2024-08-27 17:23:27.540865', '2024-08-27 17:23:27.540865') RETURNING "id"[0m [production:1 deploy] [- -] [1m[36mSQL Notification Update All (3.9ms)[0m [1m[33mUPDATE "public"."notifications" SET "priority" = TRUE WHERE "notifications"."name" IN ('Account User Registration', 'Confirm Email Communication Channel', 'Confirm Registration', 'Confirm SMS Communication Channel', 'Enrollment Invitation', 'Enrollment Notification', 'Forgot Password', 'Manually Created Access Token Created', 'Merge Email Communication Channel', 'Pseudonym Registration', 'Pseudonym Registration Done', 'Self Enrollment Registration', 'Account Verification')[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20111111214312') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] [1m[36mSQL (33.1ms)[0m [1m[34mSELECT * FROM unnest(current_schemas(false))[0m [production:1 primary] [- -] [1m[36mSQL Delayed::Backend::ActiveRecord::Job Create (8.4ms)[0m [1m[32mINSERT INTO "public"."delayed_jobs" ("priority", "handler", "queue", "run_at", "created_at", "updated_at", "tag", "max_attempts", "shard_id", "singleton") VALUES (10, '--- !ruby/struct:Delayed::PerformableMethod object: !ruby/ActiveRecord:Course 0 method: :recompute_student_scores_without_send_later args: - kwargs: :grading_period_id: :update_all_grading_period_scores: true fail_cb: permanent_fail_cb: sender: sender_is_object: true sender_is_class: false ', 'canvas_queue', '2024-08-27 17:23:27.686668', '2024-08-27 17:23:27.686909', '2024-08-27 17:23:27.686909', 'Course#recompute_student_scores_without_send_later', 10, 1, 'recompute_student_scores:0') ON CONFLICT (singleton) WHERE singleton IS NOT NULL AND locked_by IS NULL DO UPDATE SET run_at=EXCLUDED.run_at WHERE EXCLUDED.run_at<delayed_jobs.run_at RETURNING id, (xmax = 0) AS inserted[0m [production:1 primary] [- -] DDC.recompute_course(#<Course id: 0, name: "Unnamed Course", account_id: 0, group_weighting_scheme: nil, workflow_state: "deleted", uuid: "BYKi6jPNPco24VvYf9Crc7QMEl8GB7Muu9z1SzaR", start_at: nil, conclude_at: nil, grading_standard_id: nil, is_public: nil, allow_student_wiki_edits: false, created_at: "2024-08-27 17:23:27.224812577 +0000", updated_at: "2024-08-27 17:23:27.224812577 +0000", show_public_context_messages: nil, syllabus_body: nil, allow_student_forum_attachments: false, default_wiki_editing_roles: nil, wiki_id: nil, allow_student_organized_groups: true, course_code: "Unnamed", default_view: "modules", abstract_course_id: nil, root_account_id: 0, enrollment_term_id: 0, sis_source_id: nil, sis_batch_id: nil, open_enrollment: nil, storage_quota: nil, tab_configuration: nil, allow_wiki_comments: nil, turnitin_comments: nil, self_enrollment: nil, license: nil, indexed: nil, restrict_enrollments_to_course_dates: nil, template_course_id: nil, locale: nil, settings: {}, replacement_course_id: nil, stuck_sis_fields: "account_id,course_code,enrollment_term_id,name,wor...", public_description: nil, self_enrollment_code: nil, self_enrollment_limit: nil, integration_id: nil, time_zone: nil, lti_context_id: nil, turnitin_id: nil, show_announcements_on_home_page: nil, home_page_announcement_limit: nil, latest_outcome_import_id: nil, grade_passback_setting: nil, template: false, homeroom_course: false, sync_enrollments_from_homeroom: false, homeroom_course_id: nil, deleted_at: nil>, nil, {}) - /var/canvas/app/models/course.rb:1416:in `update_cached_due_dates' [- -] [1m[36mSQL AbstractAssignment Pluck (1.9ms)[0m [1m[34mSELECT "assignments"."id" FROM "public"."assignments" WHERE "assignments"."workflow_state" != 'deleted' AND "assignments"."context_type" = 'Course' AND "assignments"."context_id" = 0[0m [production:1 deploy] [- -] Migrating to CreateInitialPartitions (20141109202906) [- -] [1m[36mSQL TRANSACTION (0.5ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL Auditors::ActiveRecord::AuthenticationRecord Minimum (1.1ms)[0m [1m[34mSELECT MIN("auditor_authentication_records"."created_at") FROM "public"."auditor_authentication_records"[0m [production:1 deploy] [- -] [1m[36mSQL Auditors::ActiveRecord::AuthenticationRecord Maximum (0.5ms)[0m [1m[34mSELECT MAX("auditor_authentication_records"."created_at") FROM "public"."auditor_authentication_records"[0m [production:1 deploy] [- -] [1m[36mSQL Setting Pluck (0.5ms)[0m [1m[34mSELECT "settings"."name", "settings"."value" FROM "public"."settings"[0m [production:1 deploy] [- -] [1m[36mSQL (0.2ms)[0m [1m[35mSET LOCAL statement_timeout TO '30000ms'[0m [production:1 deploy] [- -] [1m[36mSQL (14.8ms)[0m [1m[35mCREATE TABLE "public"."auditor_authentication_records_2024_8" ( LIKE "public"."auditor_authentication_records" INCLUDING ALL, CHECK (created_at >= TIMESTAMP '2024-08-01 00:00:00' AND created_at < TIMESTAMP '2024-09-01 00:00:00') ) INHERITS ("public"."auditor_authentication_records")[0m [production:1 deploy] [- -] [1m[36mSQL (2.1ms)[0m [1m[35mALTER TABLE "public"."auditor_authentication_records_2024_8" ADD CONSTRAINT "fk_rails_73d919b86f" FOREIGN KEY ("account_id") REFERENCES "public"."accounts" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL (2.0ms)[0m [1m[35mALTER TABLE "public"."auditor_authentication_records_2024_8" ADD CONSTRAINT "fk_rails_f2002d4c9d" FOREIGN KEY ("user_id") REFERENCES "public"."users" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL (1.8ms)[0m [1m[35mALTER TABLE "public"."auditor_authentication_records_2024_8" ADD CONSTRAINT "fk_rails_d2638920c7" FOREIGN KEY ("pseudonym_id") REFERENCES "public"."pseudonyms" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [production:1 deploy] [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."auditor_authentication_records_2024_8" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."auditor_authentication_records_2024_8" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (13.0ms)[0m [1m[35mCREATE TABLE "public"."auditor_authentication_records_2024_9" ( LIKE "public"."auditor_authentication_records" INCLUDING ALL, CHECK (created_at >= TIMESTAMP '2024-09-01 00:00:00' AND created_at < TIMESTAMP '2024-10-01 00:00:00') ) INHERITS ("public"."auditor_authentication_records")[0m [production:1 deploy] [- -] [1m[36mSQL (2.3ms)[0m [1m[35mALTER TABLE "public"."auditor_authentication_records_2024_9" ADD CONSTRAINT "fk_rails_037d250bad" FOREIGN KEY ("account_id") REFERENCES "public"."accounts" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL (2.0ms)[0m [1m[35mALTER TABLE "public"."auditor_authentication_records_2024_9" ADD CONSTRAINT "fk_rails_6bcc4cc381" FOREIGN KEY ("user_id") REFERENCES "public"."users" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL (1.3ms)[0m [1m[35mALTER TABLE "public"."auditor_authentication_records_2024_9" ADD CONSTRAINT "fk_rails_af0db5d5ee" FOREIGN KEY ("pseudonym_id") REFERENCES "public"."pseudonyms" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [production:1 deploy] [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."auditor_authentication_records_2024_9" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."auditor_authentication_records_2024_9" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL Auditors::ActiveRecord::CourseRecord Minimum (1.0ms)[0m [1m[34mSELECT MIN("auditor_course_records"."created_at") FROM "public"."auditor_course_records"[0m [production:1 deploy] [- -] [1m[36mSQL Auditors::ActiveRecord::CourseRecord Maximum (0.5ms)[0m [1m[34mSELECT MAX("auditor_course_records"."created_at") FROM "public"."auditor_course_records"[0m [production:1 deploy] [- -] [1m[36mSQL (14.9ms)[0m [1m[35mCREATE TABLE "public"."auditor_course_records_2024_8" ( LIKE "public"."auditor_course_records" INCLUDING ALL, CHECK (created_at >= TIMESTAMP '2024-08-01 00:00:00' AND created_at < TIMESTAMP '2024-09-01 00:00:00') ) INHERITS ("public"."auditor_course_records")[0m [production:1 deploy] [- -] [1m[36mSQL (2.6ms)[0m [1m[35mALTER TABLE "public"."auditor_course_records_2024_8" ADD CONSTRAINT "fk_rails_9fdfc1ebbb" FOREIGN KEY ("course_id") REFERENCES "public"."courses" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL (2.2ms)[0m [1m[35mALTER TABLE "public"."auditor_course_records_2024_8" ADD CONSTRAINT "fk_rails_a4c514c2e7" FOREIGN KEY ("user_id") REFERENCES "public"."users" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL (2.4ms)[0m [1m[35mALTER TABLE "public"."auditor_course_records_2024_8" ADD CONSTRAINT "fk_rails_2fdd3765c3" FOREIGN KEY ("account_id") REFERENCES "public"."accounts" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [production:1 deploy] [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."auditor_course_records_2024_8" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."auditor_course_records_2024_8" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (271.7ms)[0m [1m[35mCREATE TABLE "public"."auditor_course_records_2024_9" ( LIKE "public"."auditor_course_records" INCLUDING ALL, CHECK (created_at >= TIMESTAMP '2024-09-01 00:00:00' AND created_at < TIMESTAMP '2024-10-01 00:00:00') ) INHERITS ("public"."auditor_course_records")[0m [production:1 deploy] [- -] [1m[36mSQL (3.0ms)[0m [1m[35mALTER TABLE "public"."auditor_course_records_2024_9" ADD CONSTRAINT "fk_rails_f325ba00e0" FOREIGN KEY ("course_id") REFERENCES "public"."courses" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL (2.5ms)[0m [1m[35mALTER TABLE "public"."auditor_course_records_2024_9" ADD CONSTRAINT "fk_rails_03f277f686" FOREIGN KEY ("user_id") REFERENCES "public"."users" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL (2.5ms)[0m [1m[35mALTER TABLE "public"."auditor_course_records_2024_9" ADD CONSTRAINT "fk_rails_84f05d3047" FOREIGN KEY ("account_id") REFERENCES "public"."accounts" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [production:1 deploy] [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."auditor_course_records_2024_9" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."auditor_course_records_2024_9" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL Auditors::ActiveRecord::FeatureFlagRecord Minimum (1.1ms)[0m [1m[34mSELECT MIN("auditor_feature_flag_records"."created_at") FROM "public"."auditor_feature_flag_records"[0m [production:1 deploy] [- -] [1m[36mSQL Auditors::ActiveRecord::FeatureFlagRecord Maximum (0.6ms)[0m [1m[34mSELECT MAX("auditor_feature_flag_records"."created_at") FROM "public"."auditor_feature_flag_records"[0m [production:1 deploy] [- -] [1m[36mSQL (12.5ms)[0m [1m[35mCREATE TABLE "public"."auditor_feature_flag_records_2024_8" ( LIKE "public"."auditor_feature_flag_records" INCLUDING ALL, CHECK (created_at >= TIMESTAMP '2024-08-01 00:00:00' AND created_at < TIMESTAMP '2024-09-01 00:00:00') ) INHERITS ("public"."auditor_feature_flag_records")[0m [production:1 deploy] [- -] [1m[36mSQL (2.3ms)[0m [1m[35mALTER TABLE "public"."auditor_feature_flag_records_2024_8" ADD CONSTRAINT "fk_rails_d1ce612d5c" FOREIGN KEY ("root_account_id") REFERENCES "public"."accounts" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL (1.5ms)[0m [1m[35mALTER TABLE "public"."auditor_feature_flag_records_2024_8" ADD CONSTRAINT "fk_rails_f82876ce86" FOREIGN KEY ("user_id") REFERENCES "public"."users" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [production:1 deploy] [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."auditor_feature_flag_records_2024_8" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."auditor_feature_flag_records_2024_8" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (11.3ms)[0m [1m[35mCREATE TABLE "public"."auditor_feature_flag_records_2024_9" ( LIKE "public"."auditor_feature_flag_records" INCLUDING ALL, CHECK (created_at >= TIMESTAMP '2024-09-01 00:00:00' AND created_at < TIMESTAMP '2024-10-01 00:00:00') ) INHERITS ("public"."auditor_feature_flag_records")[0m [production:1 deploy] [- -] [1m[36mSQL (2.1ms)[0m [1m[35mALTER TABLE "public"."auditor_feature_flag_records_2024_9" ADD CONSTRAINT "fk_rails_7148048e79" FOREIGN KEY ("root_account_id") REFERENCES "public"."accounts" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL (1.9ms)[0m [1m[35mALTER TABLE "public"."auditor_feature_flag_records_2024_9" ADD CONSTRAINT "fk_rails_c3067aa096" FOREIGN KEY ("user_id") REFERENCES "public"."users" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [production:1 deploy] [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."auditor_feature_flag_records_2024_9" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."auditor_feature_flag_records_2024_9" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL Auditors::ActiveRecord::GradeChangeRecord Minimum (1.1ms)[0m [1m[34mSELECT MIN("auditor_grade_change_records"."created_at") FROM "public"."auditor_grade_change_records"[0m [production:1 deploy] [- -] [1m[36mSQL Auditors::ActiveRecord::GradeChangeRecord Maximum (0.5ms)[0m [1m[34mSELECT MAX("auditor_grade_change_records"."created_at") FROM "public"."auditor_grade_change_records"[0m [production:1 deploy] [- -] [1m[36mSQL (20.9ms)[0m [1m[35mCREATE TABLE "public"."auditor_grade_change_records_2024_8" ( LIKE "public"."auditor_grade_change_records" INCLUDING ALL, CHECK (created_at >= TIMESTAMP '2024-08-01 00:00:00' AND created_at < TIMESTAMP '2024-09-01 00:00:00') ) INHERITS ("public"."auditor_grade_change_records")[0m [production:1 deploy] [- -] [1m[36mSQL (2.9ms)[0m [1m[35mALTER TABLE "public"."auditor_grade_change_records_2024_8" ADD CONSTRAINT "fk_rails_cf5f5d3a55" FOREIGN KEY ("submission_id") REFERENCES "public"."submissions" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL (1.6ms)[0m [1m[35mALTER TABLE "public"."auditor_grade_change_records_2024_8" ADD CONSTRAINT "fk_rails_933a6d7889" FOREIGN KEY ("account_id") REFERENCES "public"."accounts" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL (1.5ms)[0m [1m[35mALTER TABLE "public"."auditor_grade_change_records_2024_8" ADD CONSTRAINT "fk_rails_1ec98a43fc" FOREIGN KEY ("assignment_id") REFERENCES "public"."assignments" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL (1.2ms)[0m [1m[35mALTER TABLE "public"."auditor_grade_change_records_2024_8" ADD CONSTRAINT "fk_rails_3d643839e7" FOREIGN KEY ("grading_period_id") REFERENCES "public"."grading_periods" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL (1.5ms)[0m [1m[35mALTER TABLE "public"."auditor_grade_change_records_2024_8" ADD CONSTRAINT "fk_rails_69cac01488" FOREIGN KEY ("grader_id") REFERENCES "public"."users" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL (1.4ms)[0m [1m[35mALTER TABLE "public"."auditor_grade_change_records_2024_8" ADD CONSTRAINT "fk_rails_2e0d4bb4a8" FOREIGN KEY ("root_account_id") REFERENCES "public"."accounts" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL (1.4ms)[0m [1m[35mALTER TABLE "public"."auditor_grade_change_records_2024_8" ADD CONSTRAINT "fk_rails_7a5e989a1a" FOREIGN KEY ("student_id") REFERENCES "public"."users" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [production:1 deploy] [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."auditor_grade_change_records_2024_8" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."auditor_grade_change_records_2024_8" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (22.5ms)[0m [1m[35mCREATE TABLE "public"."auditor_grade_change_records_2024_9" ( LIKE "public"."auditor_grade_change_records" INCLUDING ALL, CHECK (created_at >= TIMESTAMP '2024-09-01 00:00:00' AND created_at < TIMESTAMP '2024-10-01 00:00:00') ) INHERITS ("public"."auditor_grade_change_records")[0m [production:1 deploy] [- -] [1m[36mSQL (2.0ms)[0m [1m[35mALTER TABLE "public"."auditor_grade_change_records_2024_9" ADD CONSTRAINT "fk_rails_59a91f44cc" FOREIGN KEY ("submission_id") REFERENCES "public"."submissions" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL (1.7ms)[0m [1m[35mALTER TABLE "public"."auditor_grade_change_records_2024_9" ADD CONSTRAINT "fk_rails_7758431399" FOREIGN KEY ("account_id") REFERENCES "public"."accounts" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL (1.6ms)[0m [1m[35mALTER TABLE "public"."auditor_grade_change_records_2024_9" ADD CONSTRAINT "fk_rails_7df57383ee" FOREIGN KEY ("assignment_id") REFERENCES "public"."assignments" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL (1.3ms)[0m [1m[35mALTER TABLE "public"."auditor_grade_change_records_2024_9" ADD CONSTRAINT "fk_rails_7eb6b02f49" FOREIGN KEY ("grading_period_id") REFERENCES "public"."grading_periods" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL (2.3ms)[0m [1m[35mALTER TABLE "public"."auditor_grade_change_records_2024_9" ADD CONSTRAINT "fk_rails_83223a5bbd" FOREIGN KEY ("grader_id") REFERENCES "public"."users" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL (2.5ms)[0m [1m[35mALTER TABLE "public"."auditor_grade_change_records_2024_9" ADD CONSTRAINT "fk_rails_ac1cb44a54" FOREIGN KEY ("root_account_id") REFERENCES "public"."accounts" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL (1.8ms)[0m [1m[35mALTER TABLE "public"."auditor_grade_change_records_2024_9" ADD CONSTRAINT "fk_rails_b78d4ef96f" FOREIGN KEY ("student_id") REFERENCES "public"."users" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [production:1 deploy] [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."auditor_grade_change_records_2024_9" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."auditor_grade_change_records_2024_9" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL Auditors::ActiveRecord::PseudonymRecord Minimum (1.1ms)[0m [1m[34mSELECT MIN("auditor_pseudonym_records"."created_at") FROM "public"."auditor_pseudonym_records"[0m [production:1 deploy] [- -] [1m[36mSQL Auditors::ActiveRecord::PseudonymRecord Maximum (0.5ms)[0m [1m[34mSELECT MAX("auditor_pseudonym_records"."created_at") FROM "public"."auditor_pseudonym_records"[0m [production:1 deploy] [- -] [1m[36mSQL (12.2ms)[0m [1m[35mCREATE TABLE "public"."auditor_pseudonym_records_2024_8" ( LIKE "public"."auditor_pseudonym_records" INCLUDING ALL, CHECK (created_at >= TIMESTAMP '2024-08-01 00:00:00' AND created_at < TIMESTAMP '2024-09-01 00:00:00') ) INHERITS ("public"."auditor_pseudonym_records")[0m [production:1 deploy] [- -] [1m[36mSQL (3.1ms)[0m [1m[35mALTER TABLE "public"."auditor_pseudonym_records_2024_8" ADD CONSTRAINT "fk_rails_9c12c649ca" FOREIGN KEY ("root_account_id") REFERENCES "public"."accounts" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL (1.8ms)[0m [1m[35mALTER TABLE "public"."auditor_pseudonym_records_2024_8" ADD CONSTRAINT "fk_rails_f9654e24ea" FOREIGN KEY ("pseudonym_id") REFERENCES "public"."pseudonyms" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [production:1 deploy] [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."auditor_pseudonym_records_2024_8" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."auditor_pseudonym_records_2024_8" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (11.3ms)[0m [1m[35mCREATE TABLE "public"."auditor_pseudonym_records_2024_9" ( LIKE "public"."auditor_pseudonym_records" INCLUDING ALL, CHECK (created_at >= TIMESTAMP '2024-09-01 00:00:00' AND created_at < TIMESTAMP '2024-10-01 00:00:00') ) INHERITS ("public"."auditor_pseudonym_records")[0m [production:1 deploy] [- -] [1m[36mSQL (2.4ms)[0m [1m[35mALTER TABLE "public"."auditor_pseudonym_records_2024_9" ADD CONSTRAINT "fk_rails_0ffcd7c4aa" FOREIGN KEY ("root_account_id") REFERENCES "public"."accounts" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL (1.3ms)[0m [1m[35mALTER TABLE "public"."auditor_pseudonym_records_2024_9" ADD CONSTRAINT "fk_rails_6950b0a0ee" FOREIGN KEY ("pseudonym_id") REFERENCES "public"."pseudonyms" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [production:1 deploy] [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."auditor_pseudonym_records_2024_9" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."auditor_pseudonym_records_2024_9" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL Message Minimum (1.7ms)[0m [1m[34mSELECT MIN("messages"."created_at") FROM "public"."messages"[0m [production:1 deploy] [- -] [1m[36mSQL Message Maximum (0.5ms)[0m [1m[34mSELECT MAX("messages"."created_at") FROM "public"."messages"[0m [production:1 deploy] [- -] [1m[36mSQL (27.0ms)[0m [1m[35mCREATE TABLE "public"."messages_2024_35" ( LIKE "public"."messages" INCLUDING ALL, CHECK (created_at >= TIMESTAMP '2024-08-26 00:00:00' AND created_at < TIMESTAMP '2024-09-02 00:00:00') ) INHERITS ("public"."messages")[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [production:1 deploy] [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."messages_2024_35" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."messages_2024_35" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (17.4ms)[0m [1m[35mCREATE TABLE "public"."messages_2024_36" ( LIKE "public"."messages" INCLUDING ALL, CHECK (created_at >= TIMESTAMP '2024-09-02 00:00:00' AND created_at < TIMESTAMP '2024-09-09 00:00:00') ) INHERITS ("public"."messages")[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [production:1 deploy] [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."messages_2024_36" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."messages_2024_36" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (17.4ms)[0m [1m[35mCREATE TABLE "public"."messages_2024_37" ( LIKE "public"."messages" INCLUDING ALL, CHECK (created_at >= TIMESTAMP '2024-09-09 00:00:00' AND created_at < TIMESTAMP '2024-09-16 00:00:00') ) INHERITS ("public"."messages")[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [production:1 deploy] [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."messages_2024_37" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."messages_2024_37" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (9.5ms)[0m [1m[35mCREATE TABLE "public"."quiz_submission_events_2024_8" ( LIKE "public"."quiz_submission_events" INCLUDING ALL, CHECK (created_at >= TIMESTAMP '2024-08-01 00:00:00' AND created_at < TIMESTAMP '2024-09-01 00:00:00') ) INHERITS ("public"."quiz_submission_events")[0m [production:1 deploy] [- -] [1m[36mSQL (2.1ms)[0m [1m[35mALTER TABLE "public"."quiz_submission_events_2024_8" ADD CONSTRAINT "fk_rails_163058a775" FOREIGN KEY ("quiz_submission_id") REFERENCES "public"."quiz_submissions" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL (1.7ms)[0m [1m[35mALTER TABLE "public"."quiz_submission_events_2024_8" ADD CONSTRAINT "fk_rails_08c7f3e061" FOREIGN KEY ("root_account_id") REFERENCES "public"."accounts" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [production:1 deploy] [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."quiz_submission_events_2024_8" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."quiz_submission_events_2024_8" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (8.7ms)[0m [1m[35mCREATE TABLE "public"."quiz_submission_events_2024_9" ( LIKE "public"."quiz_submission_events" INCLUDING ALL, CHECK (created_at >= TIMESTAMP '2024-09-01 00:00:00' AND created_at < TIMESTAMP '2024-10-01 00:00:00') ) INHERITS ("public"."quiz_submission_events")[0m [production:1 deploy] [- -] [1m[36mSQL (1.4ms)[0m [1m[35mALTER TABLE "public"."quiz_submission_events_2024_9" ADD CONSTRAINT "fk_rails_833b4b0f69" FOREIGN KEY ("quiz_submission_id") REFERENCES "public"."quiz_submissions" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL (1.6ms)[0m [1m[35mALTER TABLE "public"."quiz_submission_events_2024_9" ADD CONSTRAINT "fk_rails_cccfdaca9c" FOREIGN KEY ("root_account_id") REFERENCES "public"."accounts" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [production:1 deploy] [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."quiz_submission_events_2024_9" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."quiz_submission_events_2024_9" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (8.4ms)[0m [1m[35mCREATE TABLE "public"."quiz_submission_events_2024_10" ( LIKE "public"."quiz_submission_events" INCLUDING ALL, CHECK (created_at >= TIMESTAMP '2024-10-01 00:00:00' AND created_at < TIMESTAMP '2024-11-01 00:00:00') ) INHERITS ("public"."quiz_submission_events")[0m [production:1 deploy] [- -] [1m[36mSQL (1.9ms)[0m [1m[35mALTER TABLE "public"."quiz_submission_events_2024_10" ADD CONSTRAINT "fk_rails_fb3a74081c" FOREIGN KEY ("quiz_submission_id") REFERENCES "public"."quiz_submissions" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL (2.1ms)[0m [1m[35mALTER TABLE "public"."quiz_submission_events_2024_10" ADD CONSTRAINT "fk_rails_d988201ce2" FOREIGN KEY ("root_account_id") REFERENCES "public"."accounts" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [production:1 deploy] [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."quiz_submission_events_2024_10" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."quiz_submission_events_2024_10" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL SimplyVersioned::Version Maximum (1.0ms)[0m [1m[34mSELECT MAX("versions"."versionable_id") FROM "public"."versions"[0m [production:1 deploy] [- -] [1m[36mSQL AssessmentQuestion Maximum (0.8ms)[0m [1m[34mSELECT MAX("assessment_questions"."id") FROM "public"."assessment_questions"[0m [production:1 deploy] [- -] [1m[36mSQL AbstractAssignment Maximum (0.8ms)[0m [1m[34mSELECT MAX("assignments"."id") FROM "public"."assignments"[0m [production:1 deploy] [- -] [1m[36mSQL AssignmentOverride Maximum (1.5ms)[0m [1m[34mSELECT MAX("assignment_overrides"."id") FROM "public"."assignment_overrides"[0m [production:1 deploy] [- -] [1m[36mSQL LearningOutcomeQuestionResult Maximum (1.0ms)[0m [1m[34mSELECT MAX("learning_outcome_question_results"."id") FROM "public"."learning_outcome_question_results"[0m [production:1 deploy] [- -] [1m[36mSQL LearningOutcomeResult Maximum (1.4ms)[0m [1m[34mSELECT MAX("learning_outcome_results"."id") FROM "public"."learning_outcome_results"[0m [production:1 deploy] [- -] [1m[36mSQL Rubric Maximum (1.2ms)[0m [1m[34mSELECT MAX("rubrics"."id") FROM "public"."rubrics"[0m [production:1 deploy] [- -] [1m[36mSQL RubricAssessment Maximum (1.0ms)[0m [1m[34mSELECT MAX("rubric_assessments"."id") FROM "public"."rubric_assessments"[0m [production:1 deploy] [- -] [1m[36mSQL Submission Maximum (1.0ms)[0m [1m[34mSELECT MAX("submissions"."id") FROM "public"."submissions"[0m [production:1 deploy] [- -] [1m[36mSQL WikiPage Maximum (1.2ms)[0m [1m[34mSELECT MAX("wiki_pages"."id") FROM "public"."wiki_pages"[0m [production:1 deploy] [- -] [1m[36mSQL Quizzes::Quiz Maximum (1.1ms)[0m [1m[34mSELECT MAX("quizzes"."id") FROM "public"."quizzes"[0m [production:1 deploy] [- -] [1m[36mSQL Quizzes::QuizSubmission Maximum (0.6ms)[0m [1m[34mSELECT MAX("quiz_submissions"."id") FROM "public"."quiz_submissions"[0m [production:1 deploy] [- -] [1m[36mSQL (8.2ms)[0m [1m[35mCREATE TABLE "public"."versions_0" ( LIKE "public"."versions" INCLUDING ALL, CHECK ("versionable_id" < 5000000) ) INHERITS ("public"."versions")[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [production:1 deploy] [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."versions_0" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."versions_0" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (7.5ms)[0m [1m[35mCREATE TABLE "public"."versions_1" ( LIKE "public"."versions" INCLUDING ALL, CHECK ("versionable_id" >= 5000000 AND "versionable_id" < 10000000) ) INHERITS ("public"."versions")[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [production:1 deploy] [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."versions_1" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."versions_1" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.5ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20141109202906') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (2.9ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to AddEndingEnrollmentStateToTemporaryEnrollmentPairings (20240110232431) [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (3.4ms)[0m [1m[35mALTER TABLE "public"."temporary_enrollment_pairings" ADD "ending_enrollment_state" text[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.6ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240110232431') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.6ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to AddHidePointsToRubrics (20240124155444) [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (0.9ms)[0m [1m[35mALTER TABLE "public"."rubrics" ADD "hide_points" boolean DEFAULT FALSE NOT NULL[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.5ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240124155444') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (1.1ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to AddRatingOrderToRubrics (20240130210940) [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (1.2ms)[0m [1m[35mALTER TABLE "public"."rubrics" ADD "rating_order" character varying DEFAULT 'descending' NOT NULL[0m [production:1 deploy] [- -] [1m[36mSQL (0.9ms)[0m [1m[35mALTER TABLE "public"."rubrics" ADD CONSTRAINT check_rating_order CHECK (rating_order IN ('descending', 'ascending'))[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.5ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240130210940') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to AddButtonDisplayToRubrics (20240130230351) [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (1.1ms)[0m [1m[35mALTER TABLE "public"."rubrics" ADD "button_display" character varying DEFAULT 'numeric' NOT NULL[0m [production:1 deploy] [- -] [1m[36mSQL (0.7ms)[0m [1m[35mALTER TABLE "public"."rubrics" ADD CONSTRAINT check_button_display CHECK (button_display IN ('numeric', 'emoji', 'letter'))[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.5ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240130230351') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to AddStuckSisFieldsToEnrollmentDatesOverrides (20240201220924) [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (1.1ms)[0m [1m[35mALTER TABLE "public"."enrollment_dates_overrides" ADD "stuck_sis_fields" text[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240201220924') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (1.1ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to CreateBlockEditors (20240207181908) [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (8.0ms)[0m [1m[35mCREATE TABLE "public"."block_editors" ("id" bigserial primary key, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_bec365c139" REFERENCES "public"."accounts" ("id"), "context_type" character varying NOT NULL, "context_id" bigint NOT NULL, "time" bigint, "blocks" jsonb DEFAULT '[]' NOT NULL, "editor_version" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)[0m [production:1 deploy] [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX "index_block_editors_on_context" ON "public"."block_editors" ("context_type", "context_id")[0m [production:1 deploy] [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_block_editors_replica_identity" ON "public"."block_editors" ("root_account_id", "id")[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [production:1 deploy] [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."block_editors" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."block_editors" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.5ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240207181908') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to AddReplicaIdentityToBlockEditors (20240208204317) [- -] [1m[36mSQL TRANSACTION (0.4ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (1.2ms)[0m [1m[35mALTER TABLE "public"."block_editors" REPLICA IDENTITY USING INDEX "index_block_editors_replica_identity"[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.6ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240208204317') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (1.0ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to ShareBanksWithSubaccountsBackfill (20240208225234) [- -] [1m[36mSQL (0.4ms)[0m [1m[34mSELECT pg_is_in_recovery()[0m [production:1 deploy] [- -] [1m[36mSQL RoleOverride Load (1.0ms)[0m [1m[34mSELECT "role_overrides".* FROM "public"."role_overrides" WHERE "role_overrides"."permission" = 'become_user' ORDER BY "role_overrides"."id" ASC LIMIT 1000[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (1.1ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240208225234') RETURNING "version"[0m [production:1 deploy] [- -] Migrating to FixGradingPeriodGroupIdType (20240313154359) [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (12.6ms)[0m [1m[35mALTER TABLE "public"."grading_periods" ALTER COLUMN "grading_period_group_id" TYPE bigint[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240313154359') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (2.0ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to AddStartDateTimeToLineItems (20240318220115) [- -] [1m[36mSQL TRANSACTION (0.4ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (1.1ms)[0m [1m[35mALTER TABLE "public"."lti_line_items" ADD "start_date_time" timestamp(6)[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240318220115') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.9ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to CreateInboxSettings (20240322203021) [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (7.9ms)[0m [1m[35mCREATE TABLE "public"."inbox_settings" ("id" bigserial primary key, "user_id" character varying NOT NULL, "use_signature" boolean DEFAULT FALSE NOT NULL, "signature" character varying(255), "use_out_of_office" boolean DEFAULT FALSE NOT NULL, "out_of_office_first_date" timestamp(6), "out_of_office_last_date" timestamp(6), "out_of_office_subject" character varying(255), "out_of_office_message" character varying(255), "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_babb40d1e3" REFERENCES "public"."accounts" ("id"), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)[0m [production:1 deploy] [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE INDEX "index_inbox_settings_on_user_id" ON "public"."inbox_settings" ("user_id")[0m [production:1 deploy] [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_inbox_settings_replica_identity" ON "public"."inbox_settings" ("root_account_id", "id")[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [production:1 deploy] [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."inbox_settings" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."inbox_settings" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240322203021') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to AddReplicaIdentityToInboxSettings (20240325180430) [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (0.9ms)[0m [1m[35mALTER TABLE "public"."inbox_settings" REPLICA IDENTITY USING INDEX "index_inbox_settings_replica_identity"[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.6ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240325180430') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.5ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to ContextExternalToolsNotSelectableDefaultFalse (20240402182047) [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (0.5ms)[0m [1m[35mALTER TABLE "public"."context_external_tools" ALTER COLUMN "not_selectable" SET DEFAULT FALSE[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240402182047') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.6ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to AddAutomatedAndSnapshotToConversationMessage (20240409235414) [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (0.7ms)[0m [1m[35mALTER TABLE "public"."conversation_messages" ADD "automated" boolean DEFAULT FALSE NOT NULL, ADD "inbox_settings_ooo_snapshot" bigint[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240409235414') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to CreateLtiRegistrations (20240411191610) [- -] [1m[36mSQL (10.7ms)[0m [1m[35mCREATE TABLE IF NOT EXISTS "public"."lti_registrations" ("id" bigserial primary key, "internal_service" boolean DEFAULT FALSE NOT NULL, "account_id" bigint NOT NULL CONSTRAINT "fk_rails_c03fa4ac47" REFERENCES "public"."accounts" ("id"), "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_c2f1419942" REFERENCES "public"."accounts" ("id"), "created_by_id" bigint NOT NULL CONSTRAINT "fk_rails_e80e3edd2f" REFERENCES "public"."users" ("id"), "updated_by_id" bigint NOT NULL CONSTRAINT "fk_rails_a004d15639" REFERENCES "public"."users" ("id"), "name" character varying(255) NOT NULL, "admin_nickname" character varying(255), "vendor" character varying(255), "workflow_state" character varying(255) DEFAULT 'active' NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)[0m [production:1 deploy] [- -] [1m[36mSQL (2.5ms)[0m [1m[35mCREATE INDEX IF NOT EXISTS "index_lti_registrations_on_account_id" ON "public"."lti_registrations" ("account_id")[0m [production:1 deploy] [- -] [1m[36mSQL (3.1ms)[0m [1m[35mCREATE INDEX IF NOT EXISTS "index_lti_registrations_on_created_by_id" ON "public"."lti_registrations" ("created_by_id")[0m [production:1 deploy] [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX IF NOT EXISTS "index_lti_registrations_on_updated_by_id" ON "public"."lti_registrations" ("updated_by_id")[0m [production:1 deploy] [- -] [1m[36mSQL (2.7ms)[0m [1m[35mCREATE INDEX IF NOT EXISTS "index_lti_registrations_on_name" ON "public"."lti_registrations" ("name")[0m [production:1 deploy] [- -] [1m[36mSQL (2.5ms)[0m [1m[35mCREATE UNIQUE INDEX IF NOT EXISTS "index_lti_registrations_replica_identity" ON "public"."lti_registrations" ("root_account_id", "id")[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [production:1 deploy] [- -] [1m[36mSQL (0.9ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."lti_registrations" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (1.0ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."lti_registrations" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (1.4ms)[0m [1m[35mALTER TABLE "public"."lti_ims_registrations" ADD "lti_registration_id" bigint[0m [production:1 deploy] [- -] [1m[36mSQL (4.7ms)[0m [1m[35mCREATE INDEX CONCURRENTLY IF NOT EXISTS "index_lti_ims_registrations_on_lti_registration_id" ON "public"."lti_ims_registrations" ("lti_registration_id") WHERE lti_registration_id IS NOT NULL[0m [production:1 deploy] [- -] [1m[36mSQL (2.6ms)[0m [1m[35mALTER TABLE "public"."lti_ims_registrations" ADD CONSTRAINT "fk_rails_5253900b81" FOREIGN KEY ("lti_registration_id") REFERENCES "public"."lti_registrations" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL (1.3ms)[0m [1m[35mALTER TABLE "public"."developer_keys" ADD "lti_registration_id" bigint[0m [production:1 deploy] [- -] [1m[36mSQL (4.5ms)[0m [1m[35mCREATE INDEX CONCURRENTLY IF NOT EXISTS "index_developer_keys_on_lti_registration_id" ON "public"."developer_keys" ("lti_registration_id") WHERE lti_registration_id IS NOT NULL[0m [production:1 deploy] [- -] [1m[36mSQL (2.3ms)[0m [1m[35mALTER TABLE "public"."developer_keys" ADD CONSTRAINT "fk_rails_7dbffa0230" FOREIGN KEY ("lti_registration_id") REFERENCES "public"."lti_registrations" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (1.3ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240411191610') RETURNING "version"[0m [production:1 deploy] [- -] Migrating to AddReplicaIdentityToLtiRegistrations (20240412165529) [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (1.2ms)[0m [1m[35mALTER TABLE "public"."lti_registrations" REPLICA IDENTITY USING INDEX "index_lti_registrations_replica_identity"[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240412165529') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to CreateLtiRegistrationAccountBindings (20240417211623) [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (11.3ms)[0m [1m[35mCREATE TABLE "public"."lti_registration_account_bindings" ("id" bigserial primary key, "registration_id" bigint NOT NULL CONSTRAINT "fk_rails_ea051f33b1" REFERENCES "public"."lti_registrations" ("id"), "account_id" bigint NOT NULL CONSTRAINT "fk_rails_5da86d27e7" REFERENCES "public"."accounts" ("id"), "created_by_id" bigint CONSTRAINT "fk_rails_04769c1694" REFERENCES "public"."users" ("id"), "updated_by_id" bigint CONSTRAINT "fk_rails_33913e36c8" REFERENCES "public"."users" ("id"), "workflow_state" character varying DEFAULT 'off' NOT NULL, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_168d2288c8" REFERENCES "public"."accounts" ("id"), "developer_key_account_binding_id" bigint CONSTRAINT "fk_rails_b319875671" REFERENCES "public"."developer_key_account_bindings" ("id"), "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)[0m [production:1 deploy] [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_lti_registration_account_bindings_on_registration_id" ON "public"."lti_registration_account_bindings" ("registration_id")[0m [production:1 deploy] [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_lti_registration_account_bindings_on_account_id" ON "public"."lti_registration_account_bindings" ("account_id")[0m [production:1 deploy] [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_lti_registration_account_bindings_on_created_by_id" ON "public"."lti_registration_account_bindings" ("created_by_id")[0m [production:1 deploy] [- -] [1m[36mSQL (1.3ms)[0m [1m[35mCREATE INDEX "index_lti_registration_account_bindings_on_updated_by_id" ON "public"."lti_registration_account_bindings" ("updated_by_id")[0m [production:1 deploy] [- -] [1m[36mSQL (1.5ms)[0m [1m[35mCREATE INDEX "index_lrab_on_developer_key_account_binding_id" ON "public"."lti_registration_account_bindings" ("developer_key_account_binding_id")[0m [production:1 deploy] [- -] [1m[36mSQL (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_lti_registration_account_bindings_replica_identity" ON "public"."lti_registration_account_bindings" ("root_account_id", "id")[0m [production:1 deploy] [- -] [1m[36mSQL (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_lti_reg_bindings_on_account_id_and_registration_id" ON "public"."lti_registration_account_bindings" ("account_id", "registration_id")[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [production:1 deploy] [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."lti_registration_account_bindings" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (0.3ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."lti_registration_account_bindings" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240417211623') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to AddCheckpointsCreatedNotification (20240418190255) [- -] [1m[36mSQL Notification Load (1.1ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Checkpoints Created' ORDER BY "notifications"."id" ASC LIMIT 1[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL Notification Exists? (1.1ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Checkpoints Created' LIMIT 1[0m [production:1 deploy] [- -] [1m[36mSQL Notification Create (0.9ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Checkpoints Created', 'No Subject', 'Due Date', 0, '2024-08-27 17:23:29.192987', '2024-08-27 17:23:29.192987') RETURNING "id"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.6ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (1.3ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240418190255') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.9ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to AddReplicaIdentityToLtiRegistrationAccountBindings (20240419173548) [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (1.1ms)[0m [1m[35mALTER TABLE "public"."lti_registration_account_bindings" REPLICA IDENTITY USING INDEX "index_lti_registration_account_bindings_replica_identity"[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240419173548') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.6ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to AddPronunciationToUserProfiles (20240426200824) [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (0.9ms)[0m [1m[35mALTER TABLE "public"."user_profiles" ADD "pronunciation" character varying(255)[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240426200824') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.6ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to AddWorkflowStateToLtiIMSRegistrations (20240429163358) [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (0.9ms)[0m [1m[35mALTER TABLE "public"."lti_ims_registrations" ADD "workflow_state" character varying(255) DEFAULT 'active'[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240429163358') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.6ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to AddPseudonymLoginAttributes (20240429191100) [- -] [1m[36mSQL (1.0ms)[0m [1m[35mALTER TABLE "public"."pseudonyms" ADD "login_attribute" character varying(255)[0m [production:1 deploy] [- -] [1m[36mSQL (1.3ms)[0m [1m[35mALTER TABLE "public"."pseudonyms" ADD "unique_ids" jsonb DEFAULT '{}' NOT NULL[0m [production:1 deploy] [- -] [1m[36mSQL (1.4ms)[0m [1m[35mALTER TABLE "public"."pseudonyms" ADD CONSTRAINT check_login_attribute_authentication_provider_id CHECK (authentication_provider_id IS NOT NULL OR login_attribute IS NULL) NOT VALID[0m [production:1 deploy] [- -] [1m[36mSQL (1.2ms)[0m [1m[35mALTER TABLE "public"."pseudonyms" VALIDATE CONSTRAINT "check_login_attribute_authentication_provider_id"[0m [production:1 deploy] [- -] [1m[36mSQL (4.7ms)[0m [1m[35mCREATE UNIQUE INDEX CONCURRENTLY IF NOT EXISTS "index_pseudonyms_unique_with_login_attribute" ON "public"."pseudonyms" (LOWER(unique_id), account_id, authentication_provider_id, login_attribute) WHERE workflow_state IN ('active', 'suspended')[0m [production:1 deploy] [- -] [1m[36mSQL (4.5ms)[0m [1m[35mCREATE UNIQUE INDEX CONCURRENTLY IF NOT EXISTS "index_pseudonyms_unique_without_login_attribute" ON "public"."pseudonyms" (LOWER(unique_id), account_id, authentication_provider_id) WHERE workflow_state IN ('active', 'suspended') AND login_attribute IS NULL[0m [production:1 deploy] [- -] [1m[36mSQL (2.7ms)[0m [1m[35mDROP INDEX CONCURRENTLY "public"."index_pseudonyms_unique_with_auth_provider"[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.9ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240429191100') RETURNING "version"[0m [production:1 deploy] [- -] Migrating to MakeExtraneousIMSRegistrationFieldsNullable (20240429194145) [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (1.5ms)[0m [1m[35mALTER TABLE "public"."lti_ims_registrations" ALTER COLUMN "application_type" DROP NOT NULL, ALTER COLUMN "grant_types" DROP NOT NULL, ALTER COLUMN "response_types" DROP NOT NULL, ALTER COLUMN "token_endpoint_auth_method" DROP NOT NULL[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.5ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240429194145') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to AddSummaryEnabledToDiscussionTopics (20240502124108) [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (1.0ms)[0m [1m[35mALTER TABLE "public"."discussion_topics" ADD "summary_enabled" boolean DEFAULT FALSE NOT NULL[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240502124108') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.9ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to AddSummaryToDiscussionTopics (20240502124109) [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (9.3ms)[0m [1m[35mCREATE TABLE "public"."discussion_topic_summaries" ("id" bigserial primary key, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_5ee96fc8af" REFERENCES "public"."accounts" ("id"), "discussion_topic_id" bigint NOT NULL CONSTRAINT "fk_rails_b3ae1157cd" REFERENCES "public"."discussion_topics" ("id"), "llm_config_version" character varying(255) NOT NULL, "dynamic_content_hash" character varying(255) NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "summary" text, "input_tokens" integer, "output_tokens" integer, "generation_time" float)[0m [production:1 deploy] [- -] [1m[36mSQL (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_discussion_topic_summaries_replica_identity" ON "public"."discussion_topic_summaries" ("root_account_id", "id")[0m [production:1 deploy] [- -] [1m[36mSQL (4.0ms)[0m [1m[35mCREATE INDEX "index_summaries_on_topic_id" ON "public"."discussion_topic_summaries" ("discussion_topic_id")[0m [production:1 deploy] [- -] [1m[36mSQL (2.5ms)[0m [1m[35mCREATE INDEX "index_summaries_on_topic_id_and_llm_config_version_and_hash" ON "public"."discussion_topic_summaries" ("discussion_topic_id", "llm_config_version", "dynamic_content_hash")[0m [production:1 deploy] [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE INDEX "index_summaries_on_topic_id_and_created_at" ON "public"."discussion_topic_summaries" ("discussion_topic_id", "created_at" DESC)[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [production:1 deploy] [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."discussion_topic_summaries" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (0.4ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."discussion_topic_summaries" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (7.0ms)[0m [1m[35mCREATE TABLE "public"."discussion_topic_summary_feedback" ("id" bigserial primary key, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_02f469b5c4" REFERENCES "public"."accounts" ("id"), "discussion_topic_summary_id" bigint NOT NULL CONSTRAINT "fk_rails_955c7ec223" REFERENCES "public"."discussion_topic_summaries" ("id"), "user_id" bigint NOT NULL CONSTRAINT "fk_rails_1de1c7f202" REFERENCES "public"."users" ("id"), "liked" boolean DEFAULT FALSE NOT NULL, "disliked" boolean DEFAULT FALSE NOT NULL, "regenerated" boolean DEFAULT FALSE NOT NULL, "summary_disabled" boolean DEFAULT FALSE NOT NULL, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, CONSTRAINT chk_rails_83acfc39f9 CHECK (NOT (liked AND disliked)))[0m [production:1 deploy] [- -] [1m[36mSQL (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_discussion_topic_summary_feedback_replica_identity" ON "public"."discussion_topic_summary_feedback" ("root_account_id", "id")[0m [production:1 deploy] [- -] [1m[36mSQL (1.4ms)[0m [1m[35mCREATE INDEX "index_discussion_topic_summary_feedback_on_user_id" ON "public"."discussion_topic_summary_feedback" ("user_id")[0m [production:1 deploy] [- -] [1m[36mSQL (3.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_feedback_on_summary_id_and_user_id" ON "public"."discussion_topic_summary_feedback" ("discussion_topic_summary_id", "user_id")[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.9ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [production:1 deploy] [- -] [1m[36mSQL (0.9ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."discussion_topic_summary_feedback" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (0.5ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."discussion_topic_summary_feedback" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.5ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240502124109') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (2.0ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to AddReplicaIdentityToDiscussionSummaries (20240502124110) [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (2.0ms)[0m [1m[35mALTER TABLE "public"."discussion_topic_summaries" REPLICA IDENTITY USING INDEX "index_discussion_topic_summaries_replica_identity"[0m [production:1 deploy] [- -] [1m[36mSQL (0.6ms)[0m [1m[35mALTER TABLE "public"."discussion_topic_summary_feedback" REPLICA IDENTITY USING INDEX "index_discussion_topic_summary_feedback_replica_identity"[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.6ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240502124110') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to AddAccountVerificationNotification (20240502221856) [- -] [1m[36mSQL Notification Load (0.8ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Account Verification' ORDER BY "notifications"."id" ASC LIMIT 1[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL Notification Exists? (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Account Verification' LIMIT 1[0m [production:1 deploy] [- -] [1m[36mSQL Notification Create (0.5ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at", "priority") VALUES ('Account Verification', 'No Subject', 'Registration', 0, '2024-08-27 17:23:29.377321', '2024-08-27 17:23:29.377321', TRUE) RETURNING "id"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.9ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240502221856') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (1.0ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to AddVerificationTokenToPseudonyms (20240503221247) [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (1.3ms)[0m [1m[35mALTER TABLE "public"."pseudonyms" ADD "verification_token" character varying(255)[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240503221247') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to UpdateLtiRegistrationCreatedByNull (20240514224014) [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (1.1ms)[0m [1m[35mALTER TABLE "public"."lti_registrations" ALTER COLUMN "created_by_id" DROP NOT NULL, ALTER COLUMN "updated_by_id" DROP NOT NULL[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.7ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240514224014') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to AddParentAndLocaleToDiscussionSummaries (20240606124108) [- -] [1m[36mSQL (1.1ms)[0m [1m[35mALTER TABLE "public"."discussion_topic_summaries" ADD "parent_id" bigint[0m [production:1 deploy] [- -] [1m[36mSQL (3.1ms)[0m [1m[35mCREATE INDEX CONCURRENTLY IF NOT EXISTS "index_discussion_topic_summaries_on_parent_id" ON "public"."discussion_topic_summaries" ("parent_id")[0m [production:1 deploy] [- -] [1m[36mSQL (2.4ms)[0m [1m[35mALTER TABLE "public"."discussion_topic_summaries" ADD CONSTRAINT "fk_rails_f1aa07bb85" FOREIGN KEY ("parent_id") REFERENCES "public"."discussion_topic_summaries" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL (0.8ms)[0m [1m[35mALTER TABLE "public"."discussion_topic_summaries" ADD "locale" character varying[0m [production:1 deploy] [- -] [1m[36mSQL (3.8ms)[0m [1m[35mCREATE INDEX CONCURRENTLY IF NOT EXISTS "index_summaries_for_lookup" ON "public"."discussion_topic_summaries" ("discussion_topic_id", "llm_config_version", "dynamic_content_hash", "parent_id", "locale", "created_at" DESC)[0m [production:1 deploy] [- -] [1m[36mSQL (1.1ms)[0m [1m[35mDROP INDEX "public"."index_summaries_on_topic_id_and_llm_config_version_and_hash"[0m [production:1 deploy] [- -] [1m[36mSQL (1.2ms)[0m [1m[35mDROP INDEX "public"."index_summaries_on_topic_id_and_created_at"[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.7ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240606124108') RETURNING "version"[0m [production:1 deploy] [- -] Migrating to AddAutoCaptionStatusToMediaObjects (20240606153424) [- -] [1m[36mSQL (0.8ms)[0m [1m[35mALTER TABLE "public"."media_objects" ADD "auto_caption_status" character varying(255)[0m [production:1 deploy] [- -] [1m[36mSQL (1.1ms)[0m [1m[35mALTER TABLE "public"."media_objects" ADD CONSTRAINT chk_auto_caption_status_enum CHECK (auto_caption_status IN ('Complete', 'Processing', 'Error - Something went wrong', 'Error - Failed to communicate with captioning service', 'Error - Failed to request', 'Error - Caption request failed', 'Error - Captions not found')) NOT VALID[0m [production:1 deploy] [- -] [1m[36mSQL (0.9ms)[0m [1m[35mALTER TABLE "public"."media_objects" VALIDATE CONSTRAINT "chk_auto_caption_status_enum"[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.7ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240606153424') RETURNING "version"[0m [production:1 deploy] [- -] Migrating to RemoveRegistrationBindingForeignKey (20240610201627) [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (0.8ms)[0m [1m[35mALTER TABLE "public"."lti_registration_account_bindings" DROP CONSTRAINT "fk_rails_ea051f33b1"[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240610201627') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.6ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to AddUnifiedToolIdToContextExternalTools (20240612065118) [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (0.9ms)[0m [1m[35mALTER TABLE "public"."context_external_tools" ADD "unified_tool_id" character varying(255)[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.5ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240612065118') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.5ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to AddUnifiedToolIdToLtiToolConfiguration (20240613083005) [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (1.0ms)[0m [1m[35mALTER TABLE "public"."lti_tool_configurations" ADD "unified_tool_id" character varying(255)[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240613083005') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.5ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to AddRootAccountIdForCollaborations (20240617124613) [- -] [1m[36mSQL (0.7ms)[0m [1m[35mALTER TABLE "public"."collaborations" ADD "root_account_id" bigint[0m [production:1 deploy] [- -] [1m[36mSQL (3.0ms)[0m [1m[35mCREATE INDEX CONCURRENTLY IF NOT EXISTS "index_collaborations_on_root_account_id" ON "public"."collaborations" ("root_account_id")[0m [production:1 deploy] [- -] [1m[36mSQL (3.7ms)[0m [1m[35mALTER TABLE "public"."collaborations" ADD CONSTRAINT "fk_rails_f5bce15519" FOREIGN KEY ("root_account_id") REFERENCES "public"."accounts" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.8ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240617124613') RETURNING "version"[0m [production:1 deploy] [- -] Migrating to UpdateAutoCaptionStatusConstraint (20240620184959) [- -] [1m[36mSQL (1.0ms)[0m [1m[35mALTER TABLE "public"."media_objects" DROP CONSTRAINT "chk_auto_caption_status_enum"[0m [production:1 deploy] [- -] [1m[36mSQL MediaObject Update All (2.8ms)[0m [1m[37mUPDATE "public"."media_objects" SET "auto_caption_status" = NULL WHERE "media_objects"."id" IN (SELECT "media_objects"."id" FROM "public"."media_objects" WHERE "media_objects"."auto_caption_status" IS NOT NULL LIMIT 1000 FOR UPDATE)[0m [production:1 deploy] [- -] [1m[36mSQL (1.4ms)[0m [1m[35mALTER TABLE "public"."media_objects" ADD CONSTRAINT chk_auto_caption_status_enum CHECK (auto_caption_status IN ('complete', 'processing', 'failed_initial_validation', 'failed_handoff', 'failed_request', 'non_english_captions', 'failed_captions', 'failed_to_pull')) NOT VALID[0m [production:1 deploy] [- -] [1m[36mSQL (0.7ms)[0m [1m[35mALTER TABLE "public"."media_objects" VALIDATE CONSTRAINT "chk_auto_caption_status_enum"[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.6ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240620184959') RETURNING "version"[0m [production:1 deploy] [- -] Migrating to AddInboxSettingsOooHash (20240626165624) [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (0.8ms)[0m [1m[35mALTER TABLE "public"."conversation_messages" ADD "inbox_settings_ooo_hash" text[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240626165624') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.5ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to AddUnifiedToolIdToLtiIMSRegistrations (20240627203549) [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (0.9ms)[0m [1m[35mALTER TABLE "public"."lti_ims_registrations" ADD "unified_tool_id" character varying(255)[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240627203549') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.5ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to CreateRubricImports (20240709153926) [- -] [1m[36mSQL (10.6ms)[0m [1m[35mCREATE TABLE IF NOT EXISTS "public"."rubric_imports" ("id" bigserial primary key, "root_account_id" bigint NOT NULL CONSTRAINT "fk_rails_b8ef59b172" REFERENCES "public"."accounts" ("id"), "workflow_state" character varying NOT NULL, "user_id" bigint CONSTRAINT "fk_rails_b681c23382" REFERENCES "public"."users" ("id"), "attachment_id" bigint CONSTRAINT "fk_rails_89e421a9cf" REFERENCES "public"."attachments" ("id"), "progress" integer DEFAULT 0 NOT NULL, "error_count" integer DEFAULT 0 NOT NULL, "error_data" json, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL, "account_id" bigint CONSTRAINT "fk_rails_2f6e31834f" REFERENCES "public"."accounts" ("id"), "course_id" bigint CONSTRAINT "fk_rails_8188d0686f" REFERENCES "public"."courses" ("id"), CONSTRAINT require_context CHECK ((account_id IS NOT NULL OR course_id IS NOT NULL) AND NOT (account_id IS NOT NULL AND course_id IS NOT NULL)))[0m [production:1 deploy] [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX IF NOT EXISTS "index_rubric_imports_on_user_id" ON "public"."rubric_imports" ("user_id")[0m [production:1 deploy] [- -] [1m[36mSQL (2.1ms)[0m [1m[35mCREATE INDEX IF NOT EXISTS "index_rubric_imports_on_attachment_id" ON "public"."rubric_imports" ("attachment_id")[0m [production:1 deploy] [- -] [1m[36mSQL (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX IF NOT EXISTS "index_rubric_imports_replica_identity" ON "public"."rubric_imports" ("root_account_id", "id")[0m [production:1 deploy] [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX IF NOT EXISTS "index_rubric_imports_on_account_id" ON "public"."rubric_imports" ("account_id") WHERE account_id IS NOT NULL[0m [production:1 deploy] [- -] [1m[36mSQL (1.9ms)[0m [1m[35mCREATE INDEX IF NOT EXISTS "index_rubric_imports_on_course_id" ON "public"."rubric_imports" ("course_id") WHERE course_id IS NOT NULL[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "public"."ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'guard_dangerous_changes_installed' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [production:1 deploy] [- -] [1m[36mSQL (0.7ms)[0m [1m[35mCREATE TRIGGER guard_excessive_updates AFTER UPDATE ON "public"."rubric_imports" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (0.6ms)[0m [1m[35mCREATE TRIGGER guard_excessive_deletes AFTER DELETE ON "public"."rubric_imports" REFERENCING OLD TABLE AS oldtbl FOR EACH STATEMENT EXECUTE PROCEDURE "public"."guard_excessive_updates"();[0m [production:1 deploy] [- -] [1m[36mSQL (0.8ms)[0m [1m[35mALTER TABLE "public"."rubrics" ADD "rubric_imports_id" bigint[0m [production:1 deploy] [- -] [1m[36mSQL (2.4ms)[0m [1m[35mCREATE INDEX CONCURRENTLY IF NOT EXISTS "index_rubrics_on_rubric_imports_id" ON "public"."rubrics" ("rubric_imports_id")[0m [production:1 deploy] [- -] [1m[36mSQL (1.8ms)[0m [1m[35mALTER TABLE "public"."rubrics" ADD CONSTRAINT "fk_rails_1aaf601a20" FOREIGN KEY ("rubric_imports_id") REFERENCES "public"."rubric_imports" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.7ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240709153926') RETURNING "version"[0m [production:1 deploy] [- -] Migrating to AddRegistrationUrlToLtiIMSRegistrations (20240715144749) [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (0.8ms)[0m [1m[35mALTER TABLE "public"."lti_ims_registrations" ADD "registration_url" character varying(255)[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240715144749') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.5ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to AddReplicaIdentityToRubricImports (20240722160756) [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (0.7ms)[0m [1m[35mALTER TABLE "public"."rubric_imports" REPLICA IDENTITY USING INDEX "index_rubric_imports_replica_identity"[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240722160756') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.5ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to AddUserAndUserInputToDiscussionSummaries (202406011124108) [- -] [1m[36mSQL (0.8ms)[0m [1m[35mALTER TABLE "public"."discussion_topic_summaries" ADD "user_id" bigint[0m [production:1 deploy] [- -] [1m[36mSQL (2.9ms)[0m [1m[35mCREATE INDEX CONCURRENTLY IF NOT EXISTS "index_discussion_topic_summaries_on_user_id" ON "public"."discussion_topic_summaries" ("user_id")[0m [production:1 deploy] [- -] [1m[36mSQL (2.4ms)[0m [1m[35mALTER TABLE "public"."discussion_topic_summaries" ADD CONSTRAINT "fk_rails_53c5c3ad18" FOREIGN KEY ("user_id") REFERENCES "public"."users" ("id")[0m [production:1 deploy] [- -] [1m[36mSQL (0.7ms)[0m [1m[35mALTER TABLE "public"."discussion_topic_summaries" ADD "user_input" character varying(255)[0m [production:1 deploy] [- -] [1m[36mSQL (1.2ms)[0m [1m[35mDROP INDEX "public"."index_summaries_for_lookup"[0m [production:1 deploy] [- -] [1m[36mSQL (3.0ms)[0m [1m[35mCREATE INDEX CONCURRENTLY IF NOT EXISTS "index_summaries_for_lookup" ON "public"."discussion_topic_summaries" ("discussion_topic_id", "llm_config_version", "dynamic_content_hash", "parent_id", "created_at" DESC)[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.7ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('202406011124108') RETURNING "version"[0m [production:1 deploy] [- -] Migrating to RegenerateBrandFilesBasedOnNewDefaultsPredeploy (748091800218022945873) [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL BrandConfig Load (1.0ms)[0m [1m[34mSELECT "brand_configs".* FROM "public"."brand_configs" ORDER BY "brand_configs"."md5" ASC LIMIT 1000[0m [production:1 deploy] [- -] saving brand variables json file: public/dist/brandable_css/3f38c01c65835e7de842d709a89ec3e8/variables-7dd4b80918af0e0218ec0229e4bd5873.json [- -] saving brand variables js file: public/dist/brandable_css/3f38c01c65835e7de842d709a89ec3e8/variables-7dd4b80918af0e0218ec0229e4bd5873.js [- -] saving brand variables css file: public/dist/brandable_css/3f38c01c65835e7de842d709a89ec3e8/variables-7dd4b80918af0e0218ec0229e4bd5873.css [- -] saving brand variables json file: public/dist/brandable_css/7845907c6e76db998e5f24d63aca97b5/variables-7dd4b80918af0e0218ec0229e4bd5873.json [- -] saving brand variables js file: public/dist/brandable_css/7845907c6e76db998e5f24d63aca97b5/variables-7dd4b80918af0e0218ec0229e4bd5873.js [- -] saving brand variables css file: public/dist/brandable_css/7845907c6e76db998e5f24d63aca97b5/variables-7dd4b80918af0e0218ec0229e4bd5873.css [- -] saving brand variables json file: public/dist/brandable_css/a1f113321fa024e7a14cb0948597a2a4/variables-7dd4b80918af0e0218ec0229e4bd5873.json [- -] saving brand variables js file: public/dist/brandable_css/a1f113321fa024e7a14cb0948597a2a4/variables-7dd4b80918af0e0218ec0229e4bd5873.js [- -] saving brand variables css file: public/dist/brandable_css/a1f113321fa024e7a14cb0948597a2a4/variables-7dd4b80918af0e0218ec0229e4bd5873.css [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.6ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('748091800218022945873') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.6ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to CreateModuleStudentVisibilities (20240110105826) [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (6.7ms)[0m [1m[35mCREATE OR REPLACE VIEW "public"."module_student_visibilities" AS /* if only_visible_to_overrides is false, or there's related modules with no overrides, then everyone can see it */ SELECT DISTINCT o.id as context_module_id, e.user_id as user_id, e.course_id as course_id FROM "public"."context_modules" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') LEFT JOIN "public"."assignment_overrides" ao ON o.id = ao.context_module_id AND ao.workflow_state = 'active' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND (o.id IS NULL OR (ao.context_module_id IS NULL AND o.workflow_state = 'active')) /* only assignments can have group overrides */ UNION /* section overrides and related module section overrides */ SELECT DISTINCT o.id as context_module_id, e.user_id as user_id, e.course_id as course_id FROM "public"."context_modules" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON e.course_section_id = ao.set_id AND ao.set_type = 'CourseSection' AND (ao.context_module_id = o.id ) AND ao.workflow_state = 'active' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND ao.unassign_item = FALSE /* remove students with unassigned section overrides */ UNION /* ADHOC overrides and related module ADHOC overrides */ SELECT DISTINCT o.id as context_module_id, e.user_id as user_id, e.course_id as course_id FROM "public"."context_modules" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON (ao.context_module_id = o.id ) AND ao.set_type = 'ADHOC' AND ao.workflow_state = 'active' INNER JOIN "public"."assignment_override_students" aos ON ao.id = aos.assignment_override_id AND aos.user_id = e.user_id AND aos.workflow_state <> 'deleted' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND ao.unassign_item = FALSE /* remove students with unassigned ADHOC overrides */ /* course overrides */[0m [production:1 deploy] [- -] [1m[36mSQL (30.8ms)[0m [1m[35mCREATE OR REPLACE VIEW "public"."assignment_student_visibilities_v2" AS /* if only_visible_to_overrides is false, or there's related modules with no overrides, then everyone can see it */ SELECT DISTINCT o.id as assignment_id, e.user_id as user_id, e.course_id as course_id FROM "public"."assignments" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') LEFT JOIN "public"."content_tags" t ON t.content_id = o.id AND t.content_type = 'Assignment' AND t.tag_type='context_module' AND t.workflow_state<>'deleted' LEFT JOIN "public"."context_modules" m ON m.id = t.context_module_id AND m.workflow_state<>'deleted' LEFT JOIN "public"."assignment_overrides" ao ON m.id = ao.context_module_id AND ao.workflow_state = 'active' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND COALESCE(o.only_visible_to_overrides, 'false') = 'false' AND (m.id IS NULL OR (ao.context_module_id IS NULL AND m.workflow_state = 'active')) /* only assignments can have group overrides */ UNION SELECT DISTINCT a.id as assignment_id, e.user_id as user_id, e.course_id as course_id FROM "public"."assignments" a JOIN "public"."enrollments" e ON e.course_id = a.context_id AND a.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON a.id = ao.assignment_id AND ao.set_type = 'Group' INNER JOIN "public"."groups" g ON g.id = ao.set_id INNER JOIN "public"."group_memberships" gm ON gm.group_id = g.id AND gm.user_id = e.user_id WHERE gm.workflow_state <> 'deleted' AND g.workflow_state <> 'deleted' AND ao.workflow_state = 'active' AND a.workflow_state NOT IN ('deleted','unpublished') AND a.only_visible_to_overrides = 'true' UNION /* section overrides and related module section overrides */ SELECT DISTINCT o.id as assignment_id, e.user_id as user_id, e.course_id as course_id FROM "public"."assignments" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') LEFT JOIN "public"."content_tags" t ON t.content_id = o.id AND t.content_type = 'Assignment' AND t.tag_type='context_module' AND t.workflow_state<>'deleted' LEFT JOIN "public"."context_modules" m ON m.id = t.context_module_id AND m.workflow_state = 'active' INNER JOIN "public"."assignment_overrides" ao ON e.course_section_id = ao.set_id AND ao.set_type = 'CourseSection' AND (ao.assignment_id = o.id OR m.id = ao.context_module_id) AND ao.workflow_state = 'active' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND (m.id IS NOT NULL OR o.only_visible_to_overrides = 'true') AND ao.unassign_item = FALSE /* remove students with unassigned section overrides */ EXCEPT SELECT DISTINCT o.id as assignment_id, e.user_id as user_id, e.course_id as course_id FROM "public"."assignments" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON e.course_section_id = ao.set_id AND ao.set_type = 'CourseSection' AND ao.assignment_id = o.id AND ao.workflow_state = 'active' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND ao.unassign_item = TRUE UNION /* ADHOC overrides and related module ADHOC overrides */ SELECT DISTINCT o.id as assignment_id, e.user_id as user_id, e.course_id as course_id FROM "public"."assignments" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') LEFT JOIN "public"."content_tags" t ON t.content_id = o.id AND t.content_type = 'Assignment' AND t.tag_type='context_module' AND t.workflow_state<>'deleted' LEFT JOIN "public"."context_modules" m ON m.id = t.context_module_id AND m.workflow_state = 'active' INNER JOIN "public"."assignment_overrides" ao ON (ao.assignment_id = o.id OR m.id = ao.context_module_id) AND ao.set_type = 'ADHOC' AND ao.workflow_state = 'active' INNER JOIN "public"."assignment_override_students" aos ON ao.id = aos.assignment_override_id AND aos.user_id = e.user_id AND aos.workflow_state <> 'deleted' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND (m.id IS NOT NULL OR o.only_visible_to_overrides = 'true') AND ao.unassign_item = FALSE /* remove students with unassigned ADHOC overrides */ EXCEPT SELECT DISTINCT o.id as assignment_id, e.user_id as user_id, e.course_id as course_id FROM "public"."assignments" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON o.id = ao.assignment_id AND ao.set_type = 'ADHOC' AND ao.workflow_state = 'active' INNER JOIN "public"."assignment_override_students" aos ON ao.id = aos.assignment_override_id AND aos.user_id = e.user_id AND aos.workflow_state <> 'deleted' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND ao.unassign_item = TRUE /* course overrides */ UNION SELECT DISTINCT o.id as assignment_id, e.user_id as user_id, e.course_id as course_id FROM "public"."assignments" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON e.course_id = ao.set_id AND ao.set_type = 'Course' AND o.id = ao.assignment_id WHERE o.workflow_state NOT IN ('deleted','unpublished') AND ao.workflow_state = 'active'[0m [production:1 deploy] [- -] [1m[36mSQL (24.2ms)[0m [1m[35mCREATE OR REPLACE VIEW "public"."quiz_student_visibilities_v2" AS /* if only_visible_to_overrides is false, or there's related modules with no overrides, then everyone can see it */ SELECT DISTINCT o.id as quiz_id, e.user_id as user_id, e.course_id as course_id FROM "public"."quizzes" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') LEFT JOIN "public"."content_tags" t ON t.content_id = o.id AND t.content_type = 'Quizzes::Quiz' AND t.tag_type='context_module' AND t.workflow_state<>'deleted' LEFT JOIN "public"."context_modules" m ON m.id = t.context_module_id AND m.workflow_state<>'deleted' LEFT JOIN "public"."assignment_overrides" ao ON m.id = ao.context_module_id AND ao.workflow_state = 'active' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND COALESCE(o.only_visible_to_overrides, 'false') = 'false' AND (m.id IS NULL OR (ao.context_module_id IS NULL AND m.workflow_state = 'active')) /* only assignments can have group overrides */ UNION /* section overrides and related module section overrides */ SELECT DISTINCT o.id as quiz_id, e.user_id as user_id, e.course_id as course_id FROM "public"."quizzes" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') LEFT JOIN "public"."content_tags" t ON t.content_id = o.id AND t.content_type = 'Quizzes::Quiz' AND t.tag_type='context_module' AND t.workflow_state<>'deleted' LEFT JOIN "public"."context_modules" m ON m.id = t.context_module_id AND m.workflow_state = 'active' INNER JOIN "public"."assignment_overrides" ao ON e.course_section_id = ao.set_id AND ao.set_type = 'CourseSection' AND (ao.quiz_id = o.id OR m.id = ao.context_module_id) AND ao.workflow_state = 'active' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND (m.id IS NOT NULL OR o.only_visible_to_overrides = 'true') AND ao.unassign_item = FALSE /* remove students with unassigned section overrides */ EXCEPT SELECT DISTINCT o.id as quiz_id, e.user_id as user_id, e.course_id as course_id FROM "public"."quizzes" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON e.course_section_id = ao.set_id AND ao.set_type = 'CourseSection' AND ao.quiz_id = o.id AND ao.workflow_state = 'active' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND ao.unassign_item = TRUE UNION /* ADHOC overrides and related module ADHOC overrides */ SELECT DISTINCT o.id as quiz_id, e.user_id as user_id, e.course_id as course_id FROM "public"."quizzes" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') LEFT JOIN "public"."content_tags" t ON t.content_id = o.id AND t.content_type = 'Quizzes::Quiz' AND t.tag_type='context_module' AND t.workflow_state<>'deleted' LEFT JOIN "public"."context_modules" m ON m.id = t.context_module_id AND m.workflow_state = 'active' INNER JOIN "public"."assignment_overrides" ao ON (ao.quiz_id = o.id OR m.id = ao.context_module_id) AND ao.set_type = 'ADHOC' AND ao.workflow_state = 'active' INNER JOIN "public"."assignment_override_students" aos ON ao.id = aos.assignment_override_id AND aos.user_id = e.user_id AND aos.workflow_state <> 'deleted' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND (m.id IS NOT NULL OR o.only_visible_to_overrides = 'true') AND ao.unassign_item = FALSE /* remove students with unassigned ADHOC overrides */ EXCEPT SELECT DISTINCT o.id as quiz_id, e.user_id as user_id, e.course_id as course_id FROM "public"."quizzes" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON o.id = ao.quiz_id AND ao.set_type = 'ADHOC' AND ao.workflow_state = 'active' INNER JOIN "public"."assignment_override_students" aos ON ao.id = aos.assignment_override_id AND aos.user_id = e.user_id AND aos.workflow_state <> 'deleted' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND ao.unassign_item = TRUE /* course overrides */ UNION SELECT DISTINCT o.id as quiz_id, e.user_id as user_id, e.course_id as course_id FROM "public"."quizzes" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON e.course_id = ao.set_id AND ao.set_type = 'Course' AND o.id = ao.quiz_id WHERE o.workflow_state NOT IN ('deleted','unpublished') AND ao.workflow_state = 'active'[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240110105826') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to AddErrorReportsUserIdIndex (20240125213845) [- -] [1m[36mSQL (3.0ms)[0m [1m[35mCREATE INDEX CONCURRENTLY IF NOT EXISTS "index_error_reports_on_user_id" ON "public"."error_reports" ("user_id") WHERE user_id IS NOT NULL[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.7ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240125213845') RETURNING "version"[0m [production:1 deploy] [- -] Migrating to AddContentParticipationCountsUserIdIndex (20240126154129) [- -] [1m[36mSQL (2.9ms)[0m [1m[35mCREATE INDEX CONCURRENTLY IF NOT EXISTS "index_content_participation_counts_on_user_id" ON "public"."content_participation_counts" ("user_id") WHERE user_id IS NOT NULL[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.7ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240126154129') RETURNING "version"[0m [production:1 deploy] [- -] Migrating to DeleteOrphanedAccountUsers (20240127030819) [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.7ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240127030819') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.5ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] [1m[36mSQL Delayed::Backend::ActiveRecord::Job Create (2.5ms)[0m [1m[34mSELECT pg_advisory_xact_lock("public"."half_md5_as_bigint"('long_datafixups')); INSERT INTO "public"."delayed_jobs" ("priority", "handler", "queue", "run_at", "created_at", "updated_at", "tag", "max_attempts", "strand", "shard_id") VALUES (50, '--- !ruby/struct:Delayed::PerformableMethod object: !ruby/module ''DataFixup::DeleteOrphanedAccountUsers'' method: :run args: [] kwargs: {} fail_cb: permanent_fail_cb: sender: sender_is_object: true sender_is_class: false ', 'canvas_queue', '2024-08-27 17:23:29.805848', '2024-08-27 17:23:29.805885', '2024-08-27 17:23:29.805885', 'DataFixup::DeleteOrphanedAccountUsers.run', 1, 'long_datafixups', 1) RETURNING id, (xmax = 0) AS inserted[0m [production:1 primary] [- -] Migrating to RestoreMigratedLineItems (20240130230259) [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (1.1ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240130230259') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] [1m[36mSQL Delayed::Backend::ActiveRecord::Job Create (1.0ms)[0m [1m[32mINSERT INTO "public"."delayed_jobs" ("priority", "handler", "queue", "run_at", "created_at", "updated_at", "tag", "max_attempts", "shard_id") VALUES (50, '--- !ruby/struct:Delayed::PerformableMethod object: !ruby/module ''DataFixup::Lti::RestoreMigratedLineItems'' method: :run args: [] kwargs: {} fail_cb: permanent_fail_cb: sender: sender_is_object: true sender_is_class: false ', 'canvas_queue', '2024-08-27 17:23:29.816572', '2024-08-27 17:23:29.816610', '2024-08-27 17:23:29.816610', 'DataFixup::Lti::RestoreMigratedLineItems.run', 1, 1) RETURNING id, (xmax = 0) AS inserted[0m [production:1 primary] [- -] Migrating to RemoveLtiResourceLinkUniqueLti11IdConstraint (20240205215654) [- -] [1m[36mSQL (2.4ms)[0m [1m[35mDROP INDEX CONCURRENTLY "public"."index_lti_resource_links_on_lti_1_1_id"[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.6ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240205215654') RETURNING "version"[0m [production:1 deploy] [- -] Migrating to AddGradingStandardUsedLocationsIndexes (20240207152106) [- -] [1m[36mSQL (4.0ms)[0m [1m[35mCREATE INDEX CONCURRENTLY IF NOT EXISTS "index_courses_on_grading_standard" ON "public"."courses" ("grading_standard_id")[0m [production:1 deploy] [- -] [1m[36mSQL (3.4ms)[0m [1m[35mCREATE INDEX CONCURRENTLY IF NOT EXISTS "index_assignments_on_context_grading_standard_grading_type" ON "public"."assignments" ("context_id", "grading_standard_id", "grading_type")[0m [production:1 deploy] [- -] [1m[36mSQL (3.4ms)[0m [1m[35mCREATE INDEX CONCURRENTLY IF NOT EXISTS "index_graded_submissions_on_assignments" ON "public"."submissions" ("assignment_id") WHERE workflow_state='graded'[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (1.0ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240207152106') RETURNING "version"[0m [production:1 deploy] [- -] Migrating to UpdateStudentVisibilitiesV6 (20240226152508) [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (6.9ms)[0m [1m[35mCREATE OR REPLACE VIEW "public"."module_student_visibilities" AS /* assignments utilize a CTE which gathers associated content tags since their tags can come directly from the assignment or from the assignment's quiz */ /* if only_visible_to_overrides is false, or there's related modules with no overrides, then everyone can see it */ SELECT DISTINCT o.id as context_module_id, e.user_id as user_id, e.course_id as course_id FROM "public"."context_modules" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') LEFT JOIN "public"."assignment_overrides" ao ON o.id = ao.context_module_id AND ao.workflow_state = 'active' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND (o.id IS NULL OR (ao.context_module_id IS NULL AND o.workflow_state <> 'deleted')) /* only assignments can have group overrides */ UNION /* section overrides and related module section overrides */ SELECT DISTINCT o.id as context_module_id, e.user_id as user_id, e.course_id as course_id FROM "public"."context_modules" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON e.course_section_id = ao.set_id AND ao.set_type = 'CourseSection' AND (ao.context_module_id = o.id ) AND ao.workflow_state = 'active' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND ao.unassign_item = FALSE /* remove students with unassigned section overrides */ UNION /* ADHOC overrides and related module ADHOC overrides */ SELECT DISTINCT o.id as context_module_id, e.user_id as user_id, e.course_id as course_id FROM "public"."context_modules" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON (ao.context_module_id = o.id ) AND ao.set_type = 'ADHOC' AND ao.workflow_state = 'active' INNER JOIN "public"."assignment_override_students" aos ON ao.id = aos.assignment_override_id AND aos.user_id = e.user_id AND aos.workflow_state <> 'deleted' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND ao.unassign_item = FALSE /* remove students with unassigned ADHOC overrides */ /* course overrides */[0m [production:1 deploy] [- -] [1m[36mSQL (33.0ms)[0m [1m[35mCREATE OR REPLACE VIEW "public"."assignment_student_visibilities_v2" AS /* assignments utilize a CTE which gathers associated content tags since their tags can come directly from the assignment or from the assignment's quiz */ WITH all_tags AS ( SELECT a.id as assignment_id, COALESCE(t.context_module_id, qt.context_module_id) as context_module_id FROM "public"."assignments" a LEFT JOIN "public"."content_tags" t ON t.content_id = a.id AND t.content_type = 'Assignment' LEFT JOIN "public"."quizzes" q ON q.assignment_id = a.id LEFT JOIN "public"."content_tags" qt ON qt.content_id = q.id AND qt.content_type = 'Quizzes::Quiz' WHERE COALESCE(t.tag_type, qt.tag_type) = 'context_module' AND COALESCE(t.workflow_state, qt.workflow_state) <> 'deleted' ) /* if only_visible_to_overrides is false, or there's related modules with no overrides, then everyone can see it */ SELECT DISTINCT o.id as assignment_id, e.user_id as user_id, e.course_id as course_id FROM "public"."assignments" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') LEFT JOIN all_tags t ON o.id = t.assignment_id LEFT JOIN "public"."context_modules" m ON m.id = t.context_module_id AND m.workflow_state<>'deleted' LEFT JOIN "public"."assignment_overrides" ao ON m.id = ao.context_module_id AND ao.workflow_state = 'active' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND COALESCE(o.only_visible_to_overrides, 'false') = 'false' AND (m.id IS NULL OR (ao.context_module_id IS NULL AND m.workflow_state <> 'deleted')) /* only assignments can have group overrides */ UNION SELECT DISTINCT a.id as assignment_id, e.user_id as user_id, e.course_id as course_id FROM "public"."assignments" a JOIN "public"."enrollments" e ON e.course_id = a.context_id AND a.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON a.id = ao.assignment_id AND ao.set_type = 'Group' INNER JOIN "public"."groups" g ON g.id = ao.set_id INNER JOIN "public"."group_memberships" gm ON gm.group_id = g.id AND gm.user_id = e.user_id WHERE gm.workflow_state <> 'deleted' AND g.workflow_state <> 'deleted' AND ao.workflow_state = 'active' AND a.workflow_state NOT IN ('deleted','unpublished') AND a.only_visible_to_overrides = 'true' UNION /* section overrides and related module section overrides */ SELECT DISTINCT o.id as assignment_id, e.user_id as user_id, e.course_id as course_id FROM "public"."assignments" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') LEFT JOIN all_tags t ON o.id = t.assignment_id LEFT JOIN "public"."context_modules" m ON m.id = t.context_module_id AND m.workflow_state<>'deleted' INNER JOIN "public"."assignment_overrides" ao ON e.course_section_id = ao.set_id AND ao.set_type = 'CourseSection' AND (ao.assignment_id = o.id OR m.id = ao.context_module_id) AND ao.workflow_state = 'active' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND (m.id IS NOT NULL OR o.only_visible_to_overrides = 'true') AND ao.unassign_item = FALSE /* remove students with unassigned section overrides */ EXCEPT SELECT DISTINCT o.id as assignment_id, e.user_id as user_id, e.course_id as course_id FROM "public"."assignments" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON e.course_section_id = ao.set_id AND ao.set_type = 'CourseSection' AND ao.assignment_id = o.id AND ao.workflow_state = 'active' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND ao.unassign_item = TRUE UNION /* ADHOC overrides and related module ADHOC overrides */ SELECT DISTINCT o.id as assignment_id, e.user_id as user_id, e.course_id as course_id FROM "public"."assignments" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') LEFT JOIN all_tags t ON o.id = t.assignment_id LEFT JOIN "public"."context_modules" m ON m.id = t.context_module_id AND m.workflow_state<>'deleted' INNER JOIN "public"."assignment_overrides" ao ON (ao.assignment_id = o.id OR m.id = ao.context_module_id) AND ao.set_type = 'ADHOC' AND ao.workflow_state = 'active' INNER JOIN "public"."assignment_override_students" aos ON ao.id = aos.assignment_override_id AND aos.user_id = e.user_id AND aos.workflow_state <> 'deleted' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND (m.id IS NOT NULL OR o.only_visible_to_overrides = 'true') AND ao.unassign_item = FALSE /* remove students with unassigned ADHOC overrides */ EXCEPT SELECT DISTINCT o.id as assignment_id, e.user_id as user_id, e.course_id as course_id FROM "public"."assignments" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON o.id = ao.assignment_id AND ao.set_type = 'ADHOC' AND ao.workflow_state = 'active' INNER JOIN "public"."assignment_override_students" aos ON ao.id = aos.assignment_override_id AND aos.user_id = e.user_id AND aos.workflow_state <> 'deleted' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND ao.unassign_item = TRUE /* course overrides */ UNION SELECT DISTINCT o.id as assignment_id, e.user_id as user_id, e.course_id as course_id FROM "public"."assignments" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON e.course_id = ao.set_id AND ao.set_type = 'Course' AND o.id = ao.assignment_id WHERE o.workflow_state NOT IN ('deleted','unpublished') AND ao.workflow_state = 'active'[0m [production:1 deploy] [- -] [1m[36mSQL (21.5ms)[0m [1m[35mCREATE OR REPLACE VIEW "public"."quiz_student_visibilities_v2" AS /* assignments utilize a CTE which gathers associated content tags since their tags can come directly from the assignment or from the assignment's quiz */ /* if only_visible_to_overrides is false, or there's related modules with no overrides, then everyone can see it */ SELECT DISTINCT o.id as quiz_id, e.user_id as user_id, e.course_id as course_id FROM "public"."quizzes" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') LEFT JOIN "public"."content_tags" t ON t.content_id = o.id AND t.content_type = 'Quizzes::Quiz' AND t.tag_type='context_module' AND t.workflow_state<>'deleted' LEFT JOIN "public"."context_modules" m ON m.id = t.context_module_id AND m.workflow_state<>'deleted' LEFT JOIN "public"."assignment_overrides" ao ON m.id = ao.context_module_id AND ao.workflow_state = 'active' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND COALESCE(o.only_visible_to_overrides, 'false') = 'false' AND (m.id IS NULL OR (ao.context_module_id IS NULL AND m.workflow_state <> 'deleted')) /* only assignments can have group overrides */ UNION /* section overrides and related module section overrides */ SELECT DISTINCT o.id as quiz_id, e.user_id as user_id, e.course_id as course_id FROM "public"."quizzes" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') LEFT JOIN "public"."content_tags" t ON t.content_id = o.id AND t.content_type = 'Quizzes::Quiz' AND t.tag_type='context_module' AND t.workflow_state<>'deleted' LEFT JOIN "public"."context_modules" m ON m.id = t.context_module_id AND m.workflow_state<>'deleted' INNER JOIN "public"."assignment_overrides" ao ON e.course_section_id = ao.set_id AND ao.set_type = 'CourseSection' AND (ao.quiz_id = o.id OR m.id = ao.context_module_id) AND ao.workflow_state = 'active' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND (m.id IS NOT NULL OR o.only_visible_to_overrides = 'true') AND ao.unassign_item = FALSE /* remove students with unassigned section overrides */ EXCEPT SELECT DISTINCT o.id as quiz_id, e.user_id as user_id, e.course_id as course_id FROM "public"."quizzes" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON e.course_section_id = ao.set_id AND ao.set_type = 'CourseSection' AND ao.quiz_id = o.id AND ao.workflow_state = 'active' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND ao.unassign_item = TRUE UNION /* ADHOC overrides and related module ADHOC overrides */ SELECT DISTINCT o.id as quiz_id, e.user_id as user_id, e.course_id as course_id FROM "public"."quizzes" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') LEFT JOIN "public"."content_tags" t ON t.content_id = o.id AND t.content_type = 'Quizzes::Quiz' AND t.tag_type='context_module' AND t.workflow_state<>'deleted' LEFT JOIN "public"."context_modules" m ON m.id = t.context_module_id AND m.workflow_state<>'deleted' INNER JOIN "public"."assignment_overrides" ao ON (ao.quiz_id = o.id OR m.id = ao.context_module_id) AND ao.set_type = 'ADHOC' AND ao.workflow_state = 'active' INNER JOIN "public"."assignment_override_students" aos ON ao.id = aos.assignment_override_id AND aos.user_id = e.user_id AND aos.workflow_state <> 'deleted' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND (m.id IS NOT NULL OR o.only_visible_to_overrides = 'true') AND ao.unassign_item = FALSE /* remove students with unassigned ADHOC overrides */ EXCEPT SELECT DISTINCT o.id as quiz_id, e.user_id as user_id, e.course_id as course_id FROM "public"."quizzes" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON o.id = ao.quiz_id AND ao.set_type = 'ADHOC' AND ao.workflow_state = 'active' INNER JOIN "public"."assignment_override_students" aos ON ao.id = aos.assignment_override_id AND aos.user_id = e.user_id AND aos.workflow_state <> 'deleted' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND ao.unassign_item = TRUE /* course overrides */ UNION SELECT DISTINCT o.id as quiz_id, e.user_id as user_id, e.course_id as course_id FROM "public"."quizzes" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON e.course_id = ao.set_id AND ao.set_type = 'Course' AND o.id = ao.quiz_id WHERE o.workflow_state NOT IN ('deleted','unpublished') AND ao.workflow_state = 'active'[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.6ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240226152508') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (1.0ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to RemoveDanglingResourceLinks (20240229160528) [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.9ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240229160528') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.5ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] [1m[36mSQL Delayed::Backend::ActiveRecord::Job Create (1.0ms)[0m [1m[32mINSERT INTO "public"."delayed_jobs" ("priority", "handler", "queue", "run_at", "created_at", "updated_at", "tag", "max_attempts", "shard_id") VALUES (50, '--- !ruby/struct:Delayed::PerformableMethod object: !ruby/module ''DataFixup::Lti::RemoveDanglingResourceLinks'' method: :run args: [] kwargs: {} fail_cb: permanent_fail_cb: sender: sender_is_object: true sender_is_class: false ', 'canvas_queue', '2024-08-27 17:23:29.941590', '2024-08-27 17:23:29.941654', '2024-08-27 17:23:29.941654', 'DataFixup::Lti::RemoveDanglingResourceLinks.run', 1, 1) RETURNING id, (xmax = 0) AS inserted[0m [production:1 primary] [- -] Migrating to AddPg12CollationIndexes (20240306205029) [- -] [1m[36mSQL (5.2ms)[0m [1m[35mCREATE INDEX CONCURRENTLY IF NOT EXISTS "index_attachments_on_folder_id_and_file_state_and_display_name" ON "public"."attachments" (folder_id, file_state, (display_name COLLATE public."und-u-kn-true")) WHERE folder_id IS NOT NULL[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.9ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240306205029') RETURNING "version"[0m [production:1 deploy] [- -] Migrating to DropCollkeyIndexes (20240306205030) [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (1.3ms)[0m [1m[35mDROP EXTENSION IF EXISTS pg_collkey[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.4ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (1.2ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240306205030') RETURNING "version"[0m [production:1 deploy] [- -] Migrating to RemoveExtraCommentBankItemsRootAccountIdIndex (20240307201034) [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (0.6ms)[0m [1m[35mDROP INDEX "public"."index_comment_bank_items_on_root_account_id"[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.5ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240307201034') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (1.4ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to FixUniquePseudonymIndexes (20240307214953) [- -] [1m[36mSQL TRANSACTION (0.4ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (1.4ms)[0m [1m[35mDROP INDEX IF EXISTS "public"."index_pseudonyms_on_unique_id_and_account_id_and_authentication_provider_id"[0m [production:1 deploy] [- -] [1m[36mSQL (0.6ms)[0m [1m[35mDROP INDEX IF EXISTS "public"."index_pseudonyms_on_unique_id_and_account_id_no_authentication_provider_id"[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.5ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240307214953') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (1.5ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to RemoveExtraneousIndexes (20240313152338) [- -] [1m[36mSQL (2.4ms)[0m [1m[35mDROP INDEX CONCURRENTLY "public"."index_on_aqb_on_context_id_and_context_type"[0m [production:1 deploy] [- -] [1m[36mSQL (2.4ms)[0m [1m[35mDROP INDEX CONCURRENTLY "public"."index_content_migrations_on_context_id"[0m [production:1 deploy] [- -] [1m[36mSQL (2.2ms)[0m [1m[35mDROP INDEX CONCURRENTLY "public"."index_favorites_on_user_id"[0m [production:1 deploy] [- -] [1m[36mSQL (2.3ms)[0m [1m[35mDROP INDEX CONCURRENTLY "public"."index_user_services_on_id_and_type"[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.8ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240313152338') RETURNING "version"[0m [production:1 deploy] [- -] Migrating to RemoveGuardTriggersFromInternalMetadataTables (20240313153539) [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (0.8ms)[0m [1m[35mDROP TRIGGER IF EXISTS guard_excessive_updates ON "public"."ar_internal_metadata"[0m [production:1 deploy] [- -] [1m[36mSQL (0.3ms)[0m [1m[35mDROP TRIGGER IF EXISTS guard_excessive_deletes ON "public"."ar_internal_metadata"[0m [production:1 deploy] [- -] [1m[36mSQL (0.3ms)[0m [1m[35mDROP TRIGGER IF EXISTS guard_excessive_updates ON "public"."schema_migrations"[0m [production:1 deploy] [- -] [1m[36mSQL (0.4ms)[0m [1m[35mDROP TRIGGER IF EXISTS guard_excessive_deletes ON "public"."schema_migrations"[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.5ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240313153539') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to MakeUserProfilesUserIdNotNull (20240313154717) [- -] [1m[36mSQL MakeUserProfilesUserIdNotNull::UserProfile Delete All (1.7ms)[0m [1m[31mDELETE FROM "public"."user_profiles" WHERE "user_profiles"."user_id" IS NULL AND "user_profiles"."bio" IS NULL AND "user_profiles"."title" IS NULL[0m [production:1 deploy] [- -] [1m[36mSQL (1.3ms)[0m [1m[35mALTER TABLE "public"."user_profiles" ADD CONSTRAINT chk_rails_user_profiles_user_id_not_null CHECK ("user_id" IS NOT NULL) NOT VALID[0m [production:1 deploy] [- -] [1m[36mSQL (1.0ms)[0m [1m[35mALTER TABLE "public"."user_profiles" VALIDATE CONSTRAINT "chk_rails_user_profiles_user_id_not_null"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.6ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (1.3ms)[0m [1m[35mALTER TABLE "public"."user_profiles" ALTER COLUMN "user_id" SET NOT NULL[0m [production:1 deploy] [- -] [1m[36mSQL (0.6ms)[0m [1m[35mALTER TABLE "public"."user_profiles" DROP CONSTRAINT "chk_rails_user_profiles_user_id_not_null"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.8ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240313154717') RETURNING "version"[0m [production:1 deploy] [- -] Migrating to DropExternalFeedEntriesUnusedAuthorColumns (20240401130400) [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (1.4ms)[0m [1m[35mALTER TABLE "public"."external_feed_entries" DROP COLUMN "author_email", DROP COLUMN "author_name", DROP COLUMN "author_url"[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240401130400') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to CreateObjectStudentVisibilities (20240402185343) [- -] [1m[36mSQL TRANSACTION (0.4ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (28.0ms)[0m [1m[35mCREATE OR REPLACE VIEW "public"."ungraded_discussion_student_visibilities" AS /* assignments utilize a CTE which gathers associated content tags since their tags can come directly from the assignment or from the assignment's associated objects */ /* if only_visible_to_overrides is false, or there's related modules with no overrides, then everyone can see it */ SELECT DISTINCT o.id as discussion_topic_id, e.user_id as user_id, e.course_id as course_id FROM "public"."discussion_topics" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') LEFT JOIN "public"."content_tags" t ON t.content_id = o.id AND t.content_type = 'DiscussionTopic' AND t.tag_type='context_module' AND t.workflow_state<>'deleted' LEFT JOIN "public"."context_modules" m ON m.id = t.context_module_id AND m.workflow_state<>'deleted' LEFT JOIN "public"."assignment_overrides" ao ON m.id = ao.context_module_id AND ao.workflow_state = 'active' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND COALESCE(o.only_visible_to_overrides, 'false') = 'false' AND (m.id IS NULL OR (ao.context_module_id IS NULL AND m.workflow_state <> 'deleted')) /* only assignments can have group overrides */ UNION /* section overrides and related module section overrides */ SELECT DISTINCT o.id as discussion_topic_id, e.user_id as user_id, e.course_id as course_id FROM "public"."discussion_topics" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') LEFT JOIN "public"."content_tags" t ON t.content_id = o.id AND t.content_type = 'DiscussionTopic' AND t.tag_type='context_module' AND t.workflow_state<>'deleted' LEFT JOIN "public"."context_modules" m ON m.id = t.context_module_id AND m.workflow_state<>'deleted' INNER JOIN "public"."assignment_overrides" ao ON e.course_section_id = ao.set_id AND ao.set_type = 'CourseSection' AND (ao.discussion_topic_id = o.id OR m.id = ao.context_module_id) AND ao.workflow_state = 'active' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND (m.id IS NOT NULL OR o.only_visible_to_overrides = 'true') AND ao.unassign_item = FALSE /* remove students with unassigned section overrides */ EXCEPT SELECT DISTINCT o.id as discussion_topic_id, e.user_id as user_id, e.course_id as course_id FROM "public"."discussion_topics" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON e.course_section_id = ao.set_id AND ao.set_type = 'CourseSection' AND ao.discussion_topic_id = o.id AND ao.workflow_state = 'active' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND ao.unassign_item = TRUE UNION /* ADHOC overrides and related module ADHOC overrides */ SELECT DISTINCT o.id as discussion_topic_id, e.user_id as user_id, e.course_id as course_id FROM "public"."discussion_topics" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') LEFT JOIN "public"."content_tags" t ON t.content_id = o.id AND t.content_type = 'DiscussionTopic' AND t.tag_type='context_module' AND t.workflow_state<>'deleted' LEFT JOIN "public"."context_modules" m ON m.id = t.context_module_id AND m.workflow_state<>'deleted' INNER JOIN "public"."assignment_overrides" ao ON (ao.discussion_topic_id = o.id OR m.id = ao.context_module_id) AND ao.set_type = 'ADHOC' AND ao.workflow_state = 'active' INNER JOIN "public"."assignment_override_students" aos ON ao.id = aos.assignment_override_id AND aos.user_id = e.user_id AND aos.workflow_state <> 'deleted' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND (m.id IS NOT NULL OR o.only_visible_to_overrides = 'true') AND ao.unassign_item = FALSE /* remove students with unassigned ADHOC overrides */ EXCEPT SELECT DISTINCT o.id as discussion_topic_id, e.user_id as user_id, e.course_id as course_id FROM "public"."discussion_topics" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON o.id = ao.discussion_topic_id AND ao.set_type = 'ADHOC' AND ao.workflow_state = 'active' INNER JOIN "public"."assignment_override_students" aos ON ao.id = aos.assignment_override_id AND aos.user_id = e.user_id AND aos.workflow_state <> 'deleted' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND ao.unassign_item = TRUE /* course overrides */ UNION SELECT DISTINCT o.id as discussion_topic_id, e.user_id as user_id, e.course_id as course_id FROM "public"."discussion_topics" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON e.course_id = ao.set_id AND ao.set_type = 'Course' AND o.id = ao.discussion_topic_id WHERE o.workflow_state NOT IN ('deleted','unpublished') AND ao.workflow_state = 'active'[0m [production:1 deploy] [- -] [1m[36mSQL (13.9ms)[0m [1m[35mCREATE OR REPLACE VIEW "public"."wiki_page_student_visibilities" AS /* assignments utilize a CTE which gathers associated content tags since their tags can come directly from the assignment or from the assignment's associated objects */ /* if only_visible_to_overrides is false, or there's related modules with no overrides, then everyone can see it */ SELECT DISTINCT o.id as wiki_page_id, e.user_id as user_id, e.course_id as course_id FROM "public"."wiki_pages" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') LEFT JOIN "public"."content_tags" t ON t.content_id = o.id AND t.content_type = 'WikiPage' AND t.tag_type='context_module' AND t.workflow_state<>'deleted' LEFT JOIN "public"."context_modules" m ON m.id = t.context_module_id AND m.workflow_state<>'deleted' LEFT JOIN "public"."assignment_overrides" ao ON m.id = ao.context_module_id AND ao.workflow_state = 'active' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND COALESCE(o.only_visible_to_overrides, 'false') = 'false' AND (m.id IS NULL OR (ao.context_module_id IS NULL AND m.workflow_state <> 'deleted')) /* only assignments can have group overrides */ UNION /* section overrides and related module section overrides */ SELECT DISTINCT o.id as wiki_page_id, e.user_id as user_id, e.course_id as course_id FROM "public"."wiki_pages" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') LEFT JOIN "public"."content_tags" t ON t.content_id = o.id AND t.content_type = 'WikiPage' AND t.tag_type='context_module' AND t.workflow_state<>'deleted' LEFT JOIN "public"."context_modules" m ON m.id = t.context_module_id AND m.workflow_state<>'deleted' INNER JOIN "public"."assignment_overrides" ao ON e.course_section_id = ao.set_id AND ao.set_type = 'CourseSection' AND (ao.wiki_page_id = o.id OR m.id = ao.context_module_id) AND ao.workflow_state = 'active' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND (m.id IS NOT NULL OR o.only_visible_to_overrides = 'true') AND ao.unassign_item = FALSE /* remove students with unassigned section overrides */ EXCEPT SELECT DISTINCT o.id as wiki_page_id, e.user_id as user_id, e.course_id as course_id FROM "public"."wiki_pages" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON e.course_section_id = ao.set_id AND ao.set_type = 'CourseSection' AND ao.wiki_page_id = o.id AND ao.workflow_state = 'active' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND ao.unassign_item = TRUE UNION /* ADHOC overrides and related module ADHOC overrides */ SELECT DISTINCT o.id as wiki_page_id, e.user_id as user_id, e.course_id as course_id FROM "public"."wiki_pages" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') LEFT JOIN "public"."content_tags" t ON t.content_id = o.id AND t.content_type = 'WikiPage' AND t.tag_type='context_module' AND t.workflow_state<>'deleted' LEFT JOIN "public"."context_modules" m ON m.id = t.context_module_id AND m.workflow_state<>'deleted' INNER JOIN "public"."assignment_overrides" ao ON (ao.wiki_page_id = o.id OR m.id = ao.context_module_id) AND ao.set_type = 'ADHOC' AND ao.workflow_state = 'active' INNER JOIN "public"."assignment_override_students" aos ON ao.id = aos.assignment_override_id AND aos.user_id = e.user_id AND aos.workflow_state <> 'deleted' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND (m.id IS NOT NULL OR o.only_visible_to_overrides = 'true') AND ao.unassign_item = FALSE /* remove students with unassigned ADHOC overrides */ EXCEPT SELECT DISTINCT o.id as wiki_page_id, e.user_id as user_id, e.course_id as course_id FROM "public"."wiki_pages" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON o.id = ao.wiki_page_id AND ao.set_type = 'ADHOC' AND ao.workflow_state = 'active' INNER JOIN "public"."assignment_override_students" aos ON ao.id = aos.assignment_override_id AND aos.user_id = e.user_id AND aos.workflow_state <> 'deleted' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND ao.unassign_item = TRUE /* course overrides */ UNION SELECT DISTINCT o.id as wiki_page_id, e.user_id as user_id, e.course_id as course_id FROM "public"."wiki_pages" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON e.course_id = ao.set_id AND ao.set_type = 'Course' AND o.id = ao.wiki_page_id WHERE o.workflow_state NOT IN ('deleted','unpublished') AND ao.workflow_state = 'active'[0m [production:1 deploy] [- -] [1m[36mSQL (6.3ms)[0m [1m[35mCREATE OR REPLACE VIEW "public"."module_student_visibilities" AS /* assignments utilize a CTE which gathers associated content tags since their tags can come directly from the assignment or from the assignment's associated objects */ /* if only_visible_to_overrides is false, or there's related modules with no overrides, then everyone can see it */ SELECT DISTINCT o.id as context_module_id, e.user_id as user_id, e.course_id as course_id FROM "public"."context_modules" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') LEFT JOIN "public"."assignment_overrides" ao ON o.id = ao.context_module_id AND ao.workflow_state = 'active' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND (o.id IS NULL OR (ao.context_module_id IS NULL AND o.workflow_state <> 'deleted')) /* only assignments can have group overrides */ UNION /* section overrides and related module section overrides */ SELECT DISTINCT o.id as context_module_id, e.user_id as user_id, e.course_id as course_id FROM "public"."context_modules" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON e.course_section_id = ao.set_id AND ao.set_type = 'CourseSection' AND (ao.context_module_id = o.id ) AND ao.workflow_state = 'active' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND ao.unassign_item = FALSE /* remove students with unassigned section overrides */ UNION /* ADHOC overrides and related module ADHOC overrides */ SELECT DISTINCT o.id as context_module_id, e.user_id as user_id, e.course_id as course_id FROM "public"."context_modules" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON (ao.context_module_id = o.id ) AND ao.set_type = 'ADHOC' AND ao.workflow_state = 'active' INNER JOIN "public"."assignment_override_students" aos ON ao.id = aos.assignment_override_id AND aos.user_id = e.user_id AND aos.workflow_state <> 'deleted' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND ao.unassign_item = FALSE /* remove students with unassigned ADHOC overrides */ /* course overrides */[0m [production:1 deploy] [- -] [1m[36mSQL (42.4ms)[0m [1m[35mCREATE OR REPLACE VIEW "public"."assignment_student_visibilities_v2" AS /* assignments utilize a CTE which gathers associated content tags since their tags can come directly from the assignment or from the assignment's associated objects */ WITH all_tags AS ( SELECT a.id as assignment_id, COALESCE(t.context_module_id, qt.context_module_id, dt.context_module_id, pt.context_module_id) as context_module_id FROM "public"."assignments" a LEFT JOIN "public"."content_tags" t ON t.content_id = a.id AND t.content_type = 'Assignment' LEFT JOIN "public"."quizzes" q ON q.assignment_id = a.id LEFT JOIN "public"."content_tags" qt ON qt.content_id = q.id AND qt.content_type = 'Quizzes::Quiz' LEFT JOIN "public"."discussion_topics" d ON d.assignment_id = a.id LEFT JOIN "public"."content_tags" dt ON dt.content_id = d.id AND dt.content_type = 'DiscussionTopic' LEFT JOIN "public"."wiki_pages" p ON p.assignment_id = a.id LEFT JOIN "public"."content_tags" pt ON pt.content_id = p.id AND pt.content_type = 'WikiPage' WHERE COALESCE(t.tag_type, qt.tag_type, dt.tag_type, pt.tag_type) = 'context_module' AND COALESCE(t.workflow_state, qt.workflow_state, dt.workflow_state, pt.workflow_state) <> 'deleted' ) /* if only_visible_to_overrides is false, or there's related modules with no overrides, then everyone can see it */ SELECT DISTINCT o.id as assignment_id, e.user_id as user_id, e.course_id as course_id FROM "public"."assignments" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') LEFT JOIN all_tags t ON o.id = t.assignment_id LEFT JOIN "public"."context_modules" m ON m.id = t.context_module_id AND m.workflow_state<>'deleted' LEFT JOIN "public"."assignment_overrides" ao ON m.id = ao.context_module_id AND ao.workflow_state = 'active' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND COALESCE(o.only_visible_to_overrides, 'false') = 'false' AND (m.id IS NULL OR (ao.context_module_id IS NULL AND m.workflow_state <> 'deleted')) /* only assignments can have group overrides */ UNION SELECT DISTINCT a.id as assignment_id, e.user_id as user_id, e.course_id as course_id FROM "public"."assignments" a JOIN "public"."enrollments" e ON e.course_id = a.context_id AND a.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON a.id = ao.assignment_id AND ao.set_type = 'Group' INNER JOIN "public"."groups" g ON g.id = ao.set_id INNER JOIN "public"."group_memberships" gm ON gm.group_id = g.id AND gm.user_id = e.user_id WHERE gm.workflow_state <> 'deleted' AND g.workflow_state <> 'deleted' AND ao.workflow_state = 'active' AND a.workflow_state NOT IN ('deleted','unpublished') AND a.only_visible_to_overrides = 'true' UNION /* section overrides and related module section overrides */ SELECT DISTINCT o.id as assignment_id, e.user_id as user_id, e.course_id as course_id FROM "public"."assignments" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') LEFT JOIN all_tags t ON o.id = t.assignment_id LEFT JOIN "public"."context_modules" m ON m.id = t.context_module_id AND m.workflow_state<>'deleted' INNER JOIN "public"."assignment_overrides" ao ON e.course_section_id = ao.set_id AND ao.set_type = 'CourseSection' AND (ao.assignment_id = o.id OR m.id = ao.context_module_id) AND ao.workflow_state = 'active' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND (m.id IS NOT NULL OR o.only_visible_to_overrides = 'true') AND ao.unassign_item = FALSE /* remove students with unassigned section overrides */ EXCEPT SELECT DISTINCT o.id as assignment_id, e.user_id as user_id, e.course_id as course_id FROM "public"."assignments" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON e.course_section_id = ao.set_id AND ao.set_type = 'CourseSection' AND ao.assignment_id = o.id AND ao.workflow_state = 'active' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND ao.unassign_item = TRUE UNION /* ADHOC overrides and related module ADHOC overrides */ SELECT DISTINCT o.id as assignment_id, e.user_id as user_id, e.course_id as course_id FROM "public"."assignments" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') LEFT JOIN all_tags t ON o.id = t.assignment_id LEFT JOIN "public"."context_modules" m ON m.id = t.context_module_id AND m.workflow_state<>'deleted' INNER JOIN "public"."assignment_overrides" ao ON (ao.assignment_id = o.id OR m.id = ao.context_module_id) AND ao.set_type = 'ADHOC' AND ao.workflow_state = 'active' INNER JOIN "public"."assignment_override_students" aos ON ao.id = aos.assignment_override_id AND aos.user_id = e.user_id AND aos.workflow_state <> 'deleted' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND (m.id IS NOT NULL OR o.only_visible_to_overrides = 'true') AND ao.unassign_item = FALSE /* remove students with unassigned ADHOC overrides */ EXCEPT SELECT DISTINCT o.id as assignment_id, e.user_id as user_id, e.course_id as course_id FROM "public"."assignments" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON o.id = ao.assignment_id AND ao.set_type = 'ADHOC' AND ao.workflow_state = 'active' INNER JOIN "public"."assignment_override_students" aos ON ao.id = aos.assignment_override_id AND aos.user_id = e.user_id AND aos.workflow_state <> 'deleted' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND ao.unassign_item = TRUE /* course overrides */ UNION SELECT DISTINCT o.id as assignment_id, e.user_id as user_id, e.course_id as course_id FROM "public"."assignments" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON e.course_id = ao.set_id AND ao.set_type = 'Course' AND o.id = ao.assignment_id WHERE o.workflow_state NOT IN ('deleted','unpublished') AND ao.workflow_state = 'active'[0m [production:1 deploy] [- -] [1m[36mSQL (29.5ms)[0m [1m[35mCREATE OR REPLACE VIEW "public"."quiz_student_visibilities_v2" AS /* assignments utilize a CTE which gathers associated content tags since their tags can come directly from the assignment or from the assignment's associated objects */ /* if only_visible_to_overrides is false, or there's related modules with no overrides, then everyone can see it */ SELECT DISTINCT o.id as quiz_id, e.user_id as user_id, e.course_id as course_id FROM "public"."quizzes" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') LEFT JOIN "public"."content_tags" t ON t.content_id = o.id AND t.content_type = 'Quizzes::Quiz' AND t.tag_type='context_module' AND t.workflow_state<>'deleted' LEFT JOIN "public"."context_modules" m ON m.id = t.context_module_id AND m.workflow_state<>'deleted' LEFT JOIN "public"."assignment_overrides" ao ON m.id = ao.context_module_id AND ao.workflow_state = 'active' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND COALESCE(o.only_visible_to_overrides, 'false') = 'false' AND (m.id IS NULL OR (ao.context_module_id IS NULL AND m.workflow_state <> 'deleted')) /* only assignments can have group overrides */ UNION /* section overrides and related module section overrides */ SELECT DISTINCT o.id as quiz_id, e.user_id as user_id, e.course_id as course_id FROM "public"."quizzes" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') LEFT JOIN "public"."content_tags" t ON t.content_id = o.id AND t.content_type = 'Quizzes::Quiz' AND t.tag_type='context_module' AND t.workflow_state<>'deleted' LEFT JOIN "public"."context_modules" m ON m.id = t.context_module_id AND m.workflow_state<>'deleted' INNER JOIN "public"."assignment_overrides" ao ON e.course_section_id = ao.set_id AND ao.set_type = 'CourseSection' AND (ao.quiz_id = o.id OR m.id = ao.context_module_id) AND ao.workflow_state = 'active' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND (m.id IS NOT NULL OR o.only_visible_to_overrides = 'true') AND ao.unassign_item = FALSE /* remove students with unassigned section overrides */ EXCEPT SELECT DISTINCT o.id as quiz_id, e.user_id as user_id, e.course_id as course_id FROM "public"."quizzes" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON e.course_section_id = ao.set_id AND ao.set_type = 'CourseSection' AND ao.quiz_id = o.id AND ao.workflow_state = 'active' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND ao.unassign_item = TRUE UNION /* ADHOC overrides and related module ADHOC overrides */ SELECT DISTINCT o.id as quiz_id, e.user_id as user_id, e.course_id as course_id FROM "public"."quizzes" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') LEFT JOIN "public"."content_tags" t ON t.content_id = o.id AND t.content_type = 'Quizzes::Quiz' AND t.tag_type='context_module' AND t.workflow_state<>'deleted' LEFT JOIN "public"."context_modules" m ON m.id = t.context_module_id AND m.workflow_state<>'deleted' INNER JOIN "public"."assignment_overrides" ao ON (ao.quiz_id = o.id OR m.id = ao.context_module_id) AND ao.set_type = 'ADHOC' AND ao.workflow_state = 'active' INNER JOIN "public"."assignment_override_students" aos ON ao.id = aos.assignment_override_id AND aos.user_id = e.user_id AND aos.workflow_state <> 'deleted' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND (m.id IS NOT NULL OR o.only_visible_to_overrides = 'true') AND ao.unassign_item = FALSE /* remove students with unassigned ADHOC overrides */ EXCEPT SELECT DISTINCT o.id as quiz_id, e.user_id as user_id, e.course_id as course_id FROM "public"."quizzes" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON o.id = ao.quiz_id AND ao.set_type = 'ADHOC' AND ao.workflow_state = 'active' INNER JOIN "public"."assignment_override_students" aos ON ao.id = aos.assignment_override_id AND aos.user_id = e.user_id AND aos.workflow_state <> 'deleted' WHERE o.workflow_state NOT IN ('deleted','unpublished') AND ao.unassign_item = TRUE /* course overrides */ UNION SELECT DISTINCT o.id as quiz_id, e.user_id as user_id, e.course_id as course_id FROM "public"."quizzes" o JOIN "public"."enrollments" e ON e.course_id = o.context_id AND o.context_type = 'Course' AND e.type IN ('StudentEnrollment', 'StudentViewEnrollment') AND e.workflow_state NOT IN ('deleted', 'rejected', 'inactive') INNER JOIN "public"."assignment_overrides" ao ON e.course_id = ao.set_id AND ao.set_type = 'Course' AND o.id = ao.quiz_id WHERE o.workflow_state NOT IN ('deleted','unpublished') AND ao.workflow_state = 'active'[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.6ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240402185343') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (1.2ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to DropDeprecatedGroupCategoryColumns (20240403144501) [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (1.0ms)[0m [1m[35mALTER TABLE "public"."assignments" DROP COLUMN "group_category"[0m [production:1 deploy] [- -] [1m[36mSQL (0.4ms)[0m [1m[35mALTER TABLE "public"."groups" DROP COLUMN "category"[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240403144501') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to DropGradedAtFromEnrollments (20240403161630) [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (0.8ms)[0m [1m[35mALTER TABLE "public"."enrollments" DROP COLUMN "graded_at"[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240403161630') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.6ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to ContextExternalToolsNotSelectableNotNull (20240405190851) [- -] [1m[36mSQL (1.6ms)[0m [1m[34mSELECT MIN(id) FROM (SELECT "context_external_tools"."id" FROM "public"."context_external_tools" ORDER BY "context_external_tools"."id" ASC LIMIT 1) AS subquery[0m [production:1 deploy] [- -] [1m[36mSQL (1.1ms)[0m [1m[35mALTER TABLE "public"."context_external_tools" ADD CONSTRAINT chk_rails_context_external_tools_not_selectable_not_null CHECK ("not_selectable" IS NOT NULL) NOT VALID[0m [production:1 deploy] [- -] [1m[36mSQL (0.9ms)[0m [1m[35mALTER TABLE "public"."context_external_tools" VALIDATE CONSTRAINT "chk_rails_context_external_tools_not_selectable_not_null"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (0.8ms)[0m [1m[35mALTER TABLE "public"."context_external_tools" ALTER COLUMN "not_selectable" SET NOT NULL[0m [production:1 deploy] [- -] [1m[36mSQL (0.4ms)[0m [1m[35mALTER TABLE "public"."context_external_tools" DROP CONSTRAINT "chk_rails_context_external_tools_not_selectable_not_null"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.8ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240405190851') RETURNING "version"[0m [production:1 deploy] [- -] Migrating to FixupInvalidDevKeyPlacementConfigurations (20240412200754) [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (1.0ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240412200754') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.5ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] [1m[36mSQL Delayed::Backend::ActiveRecord::Job Create (1.1ms)[0m [1m[32mINSERT INTO "public"."delayed_jobs" ("priority", "handler", "queue", "run_at", "created_at", "updated_at", "tag", "max_attempts", "shard_id") VALUES (50, '--- !ruby/struct:Delayed::PerformableMethod object: !ruby/module ''DataFixup::Lti::FixInvalidPlacementConfigurations'' method: :run args: [] kwargs: {} fail_cb: permanent_fail_cb: sender: sender_is_object: true sender_is_class: false ', 'canvas_queue', '2024-08-27 17:23:30.345018', '2024-08-27 17:23:30.345091', '2024-08-27 17:23:30.345091', 'DataFixup::Lti::FixInvalidPlacementConfigurations.run', 1, 1) RETURNING id, (xmax = 0) AS inserted[0m [production:1 primary] [- -] Migrating to RemoveExtraneousIMSRegistrationFields (20240429194501) [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (1.4ms)[0m [1m[35mALTER TABLE "public"."lti_ims_registrations" DROP COLUMN "application_type", DROP COLUMN "grant_types", DROP COLUMN "response_types", DROP COLUMN "token_endpoint_auth_method"[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240429194501') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to BackfillPseudonymsLoginAttribute (20240430151233) [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.8ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240430151233') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (1.1ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] [1m[36mSQL Delayed::Backend::ActiveRecord::Job Create (1.6ms)[0m [1m[34mSELECT pg_advisory_xact_lock("public"."half_md5_as_bigint"('long_datafixups')); INSERT INTO "public"."delayed_jobs" ("priority", "handler", "queue", "run_at", "created_at", "updated_at", "tag", "max_attempts", "strand", "shard_id") VALUES (50, '--- !ruby/struct:Delayed::PerformableMethod object: !ruby/module ''DataFixup::BackfillPseudonymsLoginAttribute'' method: :run args: - microsoft kwargs: {} fail_cb: permanent_fail_cb: sender: sender_is_object: true sender_is_class: false ', 'canvas_queue', '2024-08-27 17:23:30.358575', '2024-08-27 17:23:30.358614', '2024-08-27 17:23:30.358614', 'DataFixup::BackfillPseudonymsLoginAttribute.run', 1, 'long_datafixups', 1) RETURNING id, (xmax = 0) AS inserted[0m [production:1 primary] [- -] Migrating to UpdateIndexesOnAssignmentOverrideStudents (20240503114543) [- -] [1m[36mSQL (3.6ms)[0m [1m[35mCREATE INDEX CONCURRENTLY IF NOT EXISTS "index_assignment_override_students_on_wiki_page_id" ON "public"."assignment_override_students" ("wiki_page_id") WHERE wiki_page_id IS NOT NULL[0m [production:1 deploy] [- -] [1m[36mSQL (3.0ms)[0m [1m[35mCREATE INDEX CONCURRENTLY IF NOT EXISTS "index_assignment_override_students_on_discussion_topic_id" ON "public"."assignment_override_students" ("discussion_topic_id") WHERE discussion_topic_id IS NOT NULL[0m [production:1 deploy] [- -] [1m[36mSQL (3.0ms)[0m [1m[35mCREATE INDEX CONCURRENTLY IF NOT EXISTS "index_assignment_override_students_on_attachment_id" ON "public"."assignment_override_students" ("attachment_id") WHERE attachment_id IS NOT NULL[0m [production:1 deploy] [- -] [1m[36mSQL (5.2ms)[0m [1m[35mCREATE UNIQUE INDEX CONCURRENTLY IF NOT EXISTS "index_aos_on_active_wiki_page_and_user" ON "public"."assignment_override_students" ("wiki_page_id", "user_id") WHERE wiki_page_id IS NOT NULL AND workflow_state = 'active'[0m [production:1 deploy] [- -] [1m[36mSQL (3.1ms)[0m [1m[35mCREATE UNIQUE INDEX CONCURRENTLY IF NOT EXISTS "index_aos_on_active_discussion_topic_and_user" ON "public"."assignment_override_students" ("discussion_topic_id", "user_id") WHERE discussion_topic_id IS NOT NULL AND workflow_state = 'active'[0m [production:1 deploy] [- -] [1m[36mSQL (2.9ms)[0m [1m[35mCREATE UNIQUE INDEX CONCURRENTLY IF NOT EXISTS "index_aos_on_active_attachment_and_user" ON "public"."assignment_override_students" ("attachment_id", "user_id") WHERE attachment_id IS NOT NULL AND workflow_state = 'active'[0m [production:1 deploy] [- -] [1m[36mSQL (2.7ms)[0m [1m[35mDROP INDEX CONCURRENTLY "public"."index_assignment_override_students_on_wiki_page_id_and_user_id"[0m [production:1 deploy] [- -] [1m[36mSQL (2.4ms)[0m [1m[35mDROP INDEX CONCURRENTLY "public"."index_assignment_override_students_on_discussion_topic_and_user"[0m [production:1 deploy] [- -] [1m[36mSQL (1.7ms)[0m [1m[35mDROP INDEX CONCURRENTLY "public"."index_assignment_override_students_on_attachment_id_and_user_id"[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.6ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240503114543') RETURNING "version"[0m [production:1 deploy] [- -] Migrating to AddIndexToAssetUserAccesses (20240514092440) [- -] [1m[36mSQL (2.8ms)[0m [1m[35mCREATE INDEX CONCURRENTLY IF NOT EXISTS "index_on_updated_at_for_group_context" ON "public"."asset_user_accesses" ("updated_at") WHERE context_type = 'Group'[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.5ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240514092440') RETURNING "version"[0m [production:1 deploy] [- -] Migrating to AddIndexToEnrollments (20240524142000) [- -] [1m[36mSQL (3.7ms)[0m [1m[35mCREATE INDEX CONCURRENTLY IF NOT EXISTS "index_on_user_id_and_course_section_id" ON "public"."enrollments" ("user_id", "course_section_id")[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.8ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240524142000') RETURNING "version"[0m [production:1 deploy] [- -] Migrating to PopulateRootAccountIdForCollaborations (20240617124759) [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (1.0ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240617124759') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.6ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] [1m[36mSQL Delayed::Backend::ActiveRecord::Job Create (2.0ms)[0m [1m[34mSELECT pg_advisory_xact_lock("public"."half_md5_as_bigint"('root_account_ids_backfill_collab_strand/production')); INSERT INTO "public"."delayed_jobs" ("priority", "handler", "queue", "run_at", "created_at", "updated_at", "tag", "max_attempts", "strand", "shard_id") VALUES (50, '--- !ruby/struct:Delayed::PerformableMethod object: !ruby/module ''DataFixup::PopulateRootAccountIdOnModels'' method: :run args: [] kwargs: {} fail_cb: permanent_fail_cb: sender: sender_is_object: true sender_is_class: false ', 'canvas_queue', '2024-08-27 17:23:30.539243', '2024-08-27 17:23:30.539302', '2024-08-27 17:23:30.539302', 'DataFixup::PopulateRootAccountIdOnModels.run', 1, 'root_account_ids_backfill_collab_strand/production', 1) RETURNING id, (xmax = 0) AS inserted[0m [production:1 primary] [- -] Migrating to RemoveInboxSettingsOooSnapshot (20240626170449) [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (1.3ms)[0m [1m[35mALTER TABLE "public"."conversation_messages" DROP COLUMN "inbox_settings_ooo_snapshot"[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240626170449') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (1.0ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to BackfillLtiRegistrationsAndAccountBindings (20240713195640) [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (1.0ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240713195640') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.6ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] [1m[36mSQL Delayed::Backend::ActiveRecord::Job Create (1.3ms)[0m [1m[34mSELECT pg_advisory_xact_lock("public"."half_md5_as_bigint"('backfill_lti_registrations_and_account_bindings/shard_1')); INSERT INTO "public"."delayed_jobs" ("priority", "handler", "queue", "run_at", "created_at", "updated_at", "tag", "max_attempts", "strand", "shard_id") VALUES (50, '--- !ruby/struct:Delayed::PerformableMethod object: !ruby/module ''DataFixup::CreateLtiRegistrationsFromDeveloperKeys'' method: :run args: [] kwargs: {} fail_cb: permanent_fail_cb: sender: sender_is_object: true sender_is_class: false ', 'canvas_queue', '2024-08-27 17:23:30.555150', '2024-08-27 17:23:30.555203', '2024-08-27 17:23:30.555203', 'DataFixup::CreateLtiRegistrationsFromDeveloperKeys.run', 1, 'backfill_lti_registrations_and_account_bindings/shard_1', 1) RETURNING id, (xmax = 0) AS inserted[0m [production:1 primary] [- -] [1m[36mSQL Delayed::Backend::ActiveRecord::Job Create (1.2ms)[0m [1m[34mSELECT pg_advisory_xact_lock("public"."half_md5_as_bigint"('backfill_lti_registrations_and_account_bindings/shard_1')); INSERT INTO "public"."delayed_jobs" ("priority", "handler", "queue", "run_at", "created_at", "updated_at", "tag", "max_attempts", "strand", "shard_id") VALUES (50, '--- !ruby/struct:Delayed::PerformableMethod object: !ruby/module ''DataFixup::Lti::BackfillLtiRegistrationAccountBindings'' method: :run args: [] kwargs: {} fail_cb: permanent_fail_cb: sender: sender_is_object: true sender_is_class: false ', 'canvas_queue', '2024-08-27 17:23:30.559198', '2024-08-27 17:23:30.559231', '2024-08-27 17:23:30.559231', 'DataFixup::Lti::BackfillLtiRegistrationAccountBindings.run', 1, 'backfill_lti_registrations_and_account_bindings/shard_1', 1) RETURNING id, (xmax = 0) AS inserted[0m [production:1 primary] [- -] Migrating to ReSubscribeConversationParticipant (20240716122630) [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.9ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240716122630') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.6ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] [1m[36mSQL Delayed::Backend::ActiveRecord::Job Create (1.3ms)[0m [1m[34mSELECT pg_advisory_xact_lock("public"."half_md5_as_bigint"('long_datafixups')); INSERT INTO "public"."delayed_jobs" ("priority", "handler", "queue", "run_at", "created_at", "updated_at", "tag", "max_attempts", "strand", "shard_id") VALUES (50, '--- !ruby/struct:Delayed::PerformableMethod object: !ruby/module ''DataFixup::ResubscribeParticipants'' method: :run args: [] kwargs: {} fail_cb: permanent_fail_cb: sender: sender_is_object: true sender_is_class: false ', 'canvas_queue', '2024-08-27 17:23:30.567121', '2024-08-27 17:23:30.567157', '2024-08-27 17:23:30.567157', 'DataFixup::ResubscribeParticipants.run', 1, 'long_datafixups', 1) RETURNING id, (xmax = 0) AS inserted[0m [production:1 primary] [- -] Migrating to RenameGetPageContentScope (20240717133836) [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.9ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240717133836') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.5ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] [1m[36mSQL Delayed::Backend::ActiveRecord::Job Create (1.1ms)[0m [1m[34mSELECT pg_advisory_xact_lock("public"."half_md5_as_bigint"('long_datafixups')); INSERT INTO "public"."delayed_jobs" ("priority", "handler", "queue", "run_at", "created_at", "updated_at", "tag", "max_attempts", "strand", "shard_id") VALUES (20, '--- !ruby/struct:Delayed::PerformableMethod object: !ruby/module ''DataFixup::RenameLtiScope'' method: :run args: - http://canvas.instructure.com/lti/page_content/show - https://canvas.instructure.com/lti/page_content/show kwargs: {} fail_cb: permanent_fail_cb: sender: sender_is_object: true sender_is_class: false ', 'canvas_queue', '2024-08-27 17:23:30.575894', '2024-08-27 17:23:30.575947', '2024-08-27 17:23:30.575947', 'DataFixup::RenameLtiScope.run', 1, 'long_datafixups', 1) RETURNING id, (xmax = 0) AS inserted[0m [production:1 primary] [- -] Migrating to RegradePointsBasedSchemeAssignments (20240717212952) [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.8ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240717212952') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.5ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] [1m[36mSQL Delayed::Backend::ActiveRecord::Job Create (1.2ms)[0m [1m[34mSELECT pg_advisory_xact_lock("public"."half_md5_as_bigint"('long_datafixups')); INSERT INTO "public"."delayed_jobs" ("priority", "handler", "queue", "run_at", "created_at", "updated_at", "tag", "max_attempts", "strand", "shard_id") VALUES (50, '--- !ruby/struct:Delayed::PerformableMethod object: !ruby/class ''DataFixup::RegradePointsBasedSchemeAssignments'' method: :run args: [] kwargs: {} fail_cb: permanent_fail_cb: sender: sender_is_object: true sender_is_class: false ', 'canvas_queue', '2024-08-27 17:23:30.583996', '2024-08-27 17:23:30.584049', '2024-08-27 17:23:30.584049', 'DataFixup::RegradePointsBasedSchemeAssignments.run', 1, 'long_datafixups', 1) RETURNING id, (xmax = 0) AS inserted[0m [production:1 primary] [- -] Migrating to MakeUserIdNullableInWebConferences (20240718231322) [- -] [1m[36mSQL (0.7ms)[0m [1m[35mALTER TABLE "public"."web_conferences" ALTER COLUMN "user_id" DROP NOT NULL[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.7ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240718231322') RETURNING "version"[0m [production:1 deploy] [- -] Migrating to UpdatePagesDateDetailsApi (20240724171311) [- -] [1m[36mSQL (0.6ms)[0m [1m[34mSELECT MIN(id) FROM (SELECT "developer_keys"."id" FROM "public"."developer_keys" ORDER BY "developer_keys"."id" ASC LIMIT 1) AS subquery[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.8ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240724171311') RETURNING "version"[0m [production:1 deploy] [- -] Migrating to DiscussionTypeUpdater (20240729132352) [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.9ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('20240729132352') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.6ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] [1m[36mSQL Delayed::Backend::ActiveRecord::Job Create (1.3ms)[0m [1m[34mSELECT pg_advisory_xact_lock("public"."half_md5_as_bigint"('long_datafixups')); INSERT INTO "public"."delayed_jobs" ("priority", "handler", "queue", "run_at", "created_at", "updated_at", "tag", "max_attempts", "strand", "shard_id") VALUES (50, '--- !ruby/struct:Delayed::PerformableMethod object: !ruby/module ''DataFixup::DiscussionTypeUpdater'' method: :run args: [] kwargs: {} fail_cb: permanent_fail_cb: sender: sender_is_object: true sender_is_class: false ', 'canvas_queue', '2024-08-27 17:23:30.683075', '2024-08-27 17:23:30.683113', '2024-08-27 17:23:30.683113', 'DataFixup::DiscussionTypeUpdater.run', 1, 'long_datafixups', 1) RETURNING id, (xmax = 0) AS inserted[0m [production:1 primary] [- -] Migrating to DeleteRegeneratedFromDiscussionSummaryFeedback (202406011134108) [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL (1.0ms)[0m [1m[35mALTER TABLE "public"."discussion_topic_summary_feedback" DROP COLUMN "regenerated"[0m [production:1 deploy] [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('202406011134108') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.5ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] Migrating to RegenerateBrandFilesBasedOnNewDefaultsPostdeploy (748091800218022945874) [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [production:1 deploy] [- -] [1m[36mSQL BrandConfig Load (0.9ms)[0m [1m[34mSELECT "brand_configs".* FROM "public"."brand_configs" ORDER BY "brand_configs"."md5" ASC LIMIT 1000[0m [production:1 deploy] [- -] saving brand variables json file: public/dist/brandable_css/3f38c01c65835e7de842d709a89ec3e8/variables-7dd4b80918af0e0218ec0229e4bd5873.json [- -] saving brand variables js file: public/dist/brandable_css/3f38c01c65835e7de842d709a89ec3e8/variables-7dd4b80918af0e0218ec0229e4bd5873.js [- -] saving brand variables css file: public/dist/brandable_css/3f38c01c65835e7de842d709a89ec3e8/variables-7dd4b80918af0e0218ec0229e4bd5873.css [- -] saving brand variables json file: public/dist/brandable_css/7845907c6e76db998e5f24d63aca97b5/variables-7dd4b80918af0e0218ec0229e4bd5873.json [- -] saving brand variables js file: public/dist/brandable_css/7845907c6e76db998e5f24d63aca97b5/variables-7dd4b80918af0e0218ec0229e4bd5873.js [- -] saving brand variables css file: public/dist/brandable_css/7845907c6e76db998e5f24d63aca97b5/variables-7dd4b80918af0e0218ec0229e4bd5873.css [- -] saving brand variables json file: public/dist/brandable_css/a1f113321fa024e7a14cb0948597a2a4/variables-7dd4b80918af0e0218ec0229e4bd5873.json [- -] saving brand variables js file: public/dist/brandable_css/a1f113321fa024e7a14cb0948597a2a4/variables-7dd4b80918af0e0218ec0229e4bd5873.js [- -] saving brand variables css file: public/dist/brandable_css/a1f113321fa024e7a14cb0948597a2a4/variables-7dd4b80918af0e0218ec0229e4bd5873.css [- -] [1m[36mSQL ActiveRecord::SchemaMigration Create (0.5ms)[0m [1m[32mINSERT INTO "public"."schema_migrations" ("version") VALUES ('748091800218022945874') RETURNING "version"[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.5ms)[0m [1m[35mCOMMIT[0m [production:1 deploy] [- -] [1m[36mSQL (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(2056879866724502505)[0m [production:1 deploy] [- -] [1m[36mSQL TRANSACTION (0.4ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Account Create (4.1ms)[0m [1m[32mINSERT INTO "public"."accounts" ("name", "created_at", "updated_at", "root_account_id", "allow_sis_import", "uuid", "stuck_sis_fields", "lti_guid") VALUES ('Default Account', '2024-08-27 17:23:30.772735', '2024-08-27 17:23:30.772735', 0, TRUE, 'J5NVyxGWkgmqf3ngIxly2UarIaDTT0B2WRM2fDy7', 'name', 'J5NVyxGWkgmqf3ngIxly2UarIaDTT0B2WRM2fDy7:canvas-lms') RETURNING "id"[0m [- -] [1m[36mSQL LearningOutcomeGroup Load (1.9ms)[0m [1m[34mSELECT "learning_outcome_groups".* FROM "public"."learning_outcome_groups" WHERE "learning_outcome_groups"."context_id" = 1 AND "learning_outcome_groups"."context_type" = 'Account' AND (learning_outcome_groups.workflow_state NOT IN ('deleted', 'archived')) AND "learning_outcome_groups"."learning_outcome_group_id" IS NULL LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.9ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL EnrollmentTerm Load (1.3ms)[0m [1m[34mSELECT "enrollment_terms".* FROM "public"."enrollment_terms" WHERE "enrollment_terms"."root_account_id" = 1 AND (enrollment_terms.workflow_state<>'deleted') AND "enrollment_terms"."name" = 'Default Term' ORDER BY "enrollment_terms"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL EnrollmentTerm Create (1.7ms)[0m [1m[32mINSERT INTO "public"."enrollment_terms" ("root_account_id", "name", "created_at", "updated_at", "stuck_sis_fields") VALUES (1, 'Default Term', '2024-08-27 17:23:30.819211', '2024-08-27 17:23:30.819211', 'name') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.6ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL AuthenticationProvider Exists? (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "public"."authentication_providers" WHERE "authentication_providers"."account_id" = 1 AND "authentication_providers"."workflow_state" != 'deleted' AND "authentication_providers"."auth_type" = 'canvas' LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.4ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL AuthenticationProvider Maximum (1.7ms)[0m [1m[34mSELECT MAX("authentication_providers"."position") FROM "public"."authentication_providers" WHERE "authentication_providers"."account_id" = 1 AND ("authentication_providers"."workflow_state" = 'active' OR "authentication_providers"."workflow_state" IS NULL)[0m [- -] [1m[36mSQL AuthenticationProvider::Canvas Create (1.2ms)[0m [1m[32mINSERT INTO "public"."authentication_providers" ("account_id", "auth_type", "created_at", "updated_at", "position", "settings") VALUES (1, 'canvas', '2024-08-27 17:23:30.895547', '2024-08-27 17:23:30.895547', 1, '{"federated_attributes":{}}') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.6ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL TermsOfService Load (0.7ms)[0m [1m[34mSELECT "terms_of_services".* FROM "public"."terms_of_services" WHERE "terms_of_services"."account_id" = 1 LIMIT 1[0m [- -] [1m[36mSQL TermsOfService Create (1.4ms)[0m [1m[32mINSERT INTO "public"."terms_of_services" ("account_id", "created_at", "updated_at", "workflow_state") VALUES (1, '2024-08-27 17:23:30.950903', '2024-08-27 17:23:30.950903', 'active') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL TRANSACTION (0.4ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Role Create (2.5ms)[0m [1m[32mINSERT INTO "public"."roles" ("name", "base_role_type", "workflow_state", "created_at", "updated_at", "root_account_id") VALUES ('AccountAdmin', 'AccountAdmin', 'built_in', '2024-08-27 17:23:30.978852', '2024-08-27 17:23:30.978852', 1) RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Role Create (1.0ms)[0m [1m[32mINSERT INTO "public"."roles" ("name", "base_role_type", "workflow_state", "created_at", "updated_at", "root_account_id") VALUES ('AccountMembership', 'AccountMembership', 'built_in', '2024-08-27 17:23:30.985245', '2024-08-27 17:23:30.985245', 1) RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.9ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL TRANSACTION (0.4ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Role Create (1.3ms)[0m [1m[32mINSERT INTO "public"."roles" ("name", "base_role_type", "workflow_state", "created_at", "updated_at", "root_account_id") VALUES ('StudentEnrollment', 'StudentEnrollment', 'built_in', '2024-08-27 17:23:30.989325', '2024-08-27 17:23:30.989325', 1) RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Role Create (1.4ms)[0m [1m[32mINSERT INTO "public"."roles" ("name", "base_role_type", "workflow_state", "created_at", "updated_at", "root_account_id") VALUES ('TeacherEnrollment', 'TeacherEnrollment', 'built_in', '2024-08-27 17:23:30.994955', '2024-08-27 17:23:30.994955', 1) RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Role Create (1.5ms)[0m [1m[32mINSERT INTO "public"."roles" ("name", "base_role_type", "workflow_state", "created_at", "updated_at", "root_account_id") VALUES ('TaEnrollment', 'TaEnrollment', 'built_in', '2024-08-27 17:23:31.000340', '2024-08-27 17:23:31.000340', 1) RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.9ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Role Create (1.4ms)[0m [1m[32mINSERT INTO "public"."roles" ("name", "base_role_type", "workflow_state", "created_at", "updated_at", "root_account_id") VALUES ('DesignerEnrollment', 'DesignerEnrollment', 'built_in', '2024-08-27 17:23:31.006203', '2024-08-27 17:23:31.006203', 1) RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Role Create (1.0ms)[0m [1m[32mINSERT INTO "public"."roles" ("name", "base_role_type", "workflow_state", "created_at", "updated_at", "root_account_id") VALUES ('ObserverEnrollment', 'ObserverEnrollment', 'built_in', '2024-08-27 17:23:31.011314', '2024-08-27 17:23:31.011314', 1) RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Role Create (1.1ms)[0m [1m[32mINSERT INTO "public"."roles" ("name", "base_role_type", "workflow_state", "created_at", "updated_at", "root_account_id") VALUES ('NoPermissions', 'NoPermissions', 'built_in', '2024-08-27 17:23:31.016068', '2024-08-27 17:23:31.016068', 1) RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL (0.7ms)[0m [1m[34mSELECT true FROM pg_proc WHERE proname='pg_current_wal_lsn' LIMIT 1[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[34mSELECT pg_current_wal_lsn()[0m [- -] [1m[36mSQL Delayed::Backend::ActiveRecord::Job Create (1.9ms)[0m [1m[32mINSERT INTO "public"."delayed_jobs" ("priority", "handler", "queue", "run_at", "created_at", "updated_at", "tag", "max_attempts", "shard_id", "singleton") VALUES (10, '--- !ruby/struct:Delayed::PerformableMethod object: !ruby/ActiveRecord:Account 1 method: :clear_downstream_caches args: - :account_chain kwargs: :xlog_location: 0/2545660 fail_cb: permanent_fail_cb: sender: sender_is_object: true sender_is_class: false ', 'canvas_queue', '2024-08-27 17:23:31.047416', '2024-08-27 17:23:31.047454', '2024-08-27 17:23:31.047454', 'Account#clear_downstream_caches', 1, 1, 'Account#clear_downstream_caches/10000000000001:account_chain') ON CONFLICT (singleton) WHERE singleton IS NOT NULL AND locked_by IS NULL DO UPDATE SET run_at=EXCLUDED.run_at WHERE EXCLUDED.run_at<delayed_jobs.run_at RETURNING id, (xmax = 0) AS inserted[0m [- -] [1m[36mSQL Setting Load (1.1ms)[0m [1m[34mSELECT "settings".* FROM "public"."settings" WHERE "settings"."name" = 'default_account_id' ORDER BY "settings"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Setting Create (1.4ms)[0m [1m[32mINSERT INTO "public"."settings" ("name", "value", "created_at", "updated_at") VALUES ('default_account_id', '1', '2024-08-27 17:23:31.066545', '2024-08-27 17:23:31.066545') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Setting Pluck (0.3ms)[0m [1m[34mSELECT "settings"."name", "settings"."value" FROM "public"."settings"[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Account Create (1.3ms)[0m [1m[32mINSERT INTO "public"."accounts" ("name", "created_at", "updated_at", "root_account_id", "allow_sis_import", "uuid", "stuck_sis_fields", "lti_guid") VALUES ('Site Admin', '2024-08-27 17:23:31.075292', '2024-08-27 17:23:31.075292', 0, TRUE, '5r4TdfBcJgfqGcOiavoMajBMNhI8BZ2Btu2LvqKD', 'name', '5r4TdfBcJgfqGcOiavoMajBMNhI8BZ2Btu2LvqKD:canvas-lms') RETURNING "id"[0m [- -] [1m[36mSQL LearningOutcomeGroup Load (0.6ms)[0m [1m[34mSELECT "learning_outcome_groups".* FROM "public"."learning_outcome_groups" WHERE "learning_outcome_groups"."context_id" = 2 AND "learning_outcome_groups"."context_type" = 'Account' AND (learning_outcome_groups.workflow_state NOT IN ('deleted', 'archived')) AND "learning_outcome_groups"."learning_outcome_group_id" IS NULL LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL EnrollmentTerm Load (0.6ms)[0m [1m[34mSELECT "enrollment_terms".* FROM "public"."enrollment_terms" WHERE "enrollment_terms"."root_account_id" = 2 AND (enrollment_terms.workflow_state<>'deleted') AND "enrollment_terms"."name" = 'Default Term' ORDER BY "enrollment_terms"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL EnrollmentTerm Create (1.2ms)[0m [1m[32mINSERT INTO "public"."enrollment_terms" ("root_account_id", "name", "created_at", "updated_at", "stuck_sis_fields") VALUES (2, 'Default Term', '2024-08-27 17:23:31.087471', '2024-08-27 17:23:31.087471', 'name') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (1.0ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL AuthenticationProvider Exists? (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "public"."authentication_providers" WHERE "authentication_providers"."account_id" = 2 AND "authentication_providers"."workflow_state" != 'deleted' AND "authentication_providers"."auth_type" = 'canvas' LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL AuthenticationProvider Maximum (1.0ms)[0m [1m[34mSELECT MAX("authentication_providers"."position") FROM "public"."authentication_providers" WHERE "authentication_providers"."account_id" = 2 AND ("authentication_providers"."workflow_state" = 'active' OR "authentication_providers"."workflow_state" IS NULL)[0m [- -] [1m[36mSQL AuthenticationProvider::Canvas Create (0.7ms)[0m [1m[32mINSERT INTO "public"."authentication_providers" ("account_id", "auth_type", "created_at", "updated_at", "position", "settings") VALUES (2, 'canvas', '2024-08-27 17:23:31.098380', '2024-08-27 17:23:31.098380', 1, '{"federated_attributes":{}}') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL TermsOfService Load (0.9ms)[0m [1m[34mSELECT "terms_of_services".* FROM "public"."terms_of_services" WHERE "terms_of_services"."account_id" = 2 LIMIT 1[0m [- -] [1m[36mSQL TermsOfService Create (0.7ms)[0m [1m[32mINSERT INTO "public"."terms_of_services" ("account_id", "created_at", "updated_at", "workflow_state") VALUES (2, '2024-08-27 17:23:31.108336', '2024-08-27 17:23:31.108336', 'active') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.5ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Role Create (0.9ms)[0m [1m[32mINSERT INTO "public"."roles" ("name", "base_role_type", "workflow_state", "created_at", "updated_at", "root_account_id") VALUES ('AccountAdmin', 'AccountAdmin', 'built_in', '2024-08-27 17:23:31.112105', '2024-08-27 17:23:31.112105', 2) RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.5ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Role Create (0.7ms)[0m [1m[32mINSERT INTO "public"."roles" ("name", "base_role_type", "workflow_state", "created_at", "updated_at", "root_account_id") VALUES ('AccountMembership', 'AccountMembership', 'built_in', '2024-08-27 17:23:31.115658', '2024-08-27 17:23:31.115658', 2) RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.5ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Role Create (0.8ms)[0m [1m[32mINSERT INTO "public"."roles" ("name", "base_role_type", "workflow_state", "created_at", "updated_at", "root_account_id") VALUES ('StudentEnrollment', 'StudentEnrollment', 'built_in', '2024-08-27 17:23:31.118826', '2024-08-27 17:23:31.118826', 2) RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.5ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Role Create (0.8ms)[0m [1m[32mINSERT INTO "public"."roles" ("name", "base_role_type", "workflow_state", "created_at", "updated_at", "root_account_id") VALUES ('TeacherEnrollment', 'TeacherEnrollment', 'built_in', '2024-08-27 17:23:31.122167', '2024-08-27 17:23:31.122167', 2) RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Role Create (0.8ms)[0m [1m[32mINSERT INTO "public"."roles" ("name", "base_role_type", "workflow_state", "created_at", "updated_at", "root_account_id") VALUES ('TaEnrollment', 'TaEnrollment', 'built_in', '2024-08-27 17:23:31.125689', '2024-08-27 17:23:31.125689', 2) RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.5ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Role Create (0.9ms)[0m [1m[32mINSERT INTO "public"."roles" ("name", "base_role_type", "workflow_state", "created_at", "updated_at", "root_account_id") VALUES ('DesignerEnrollment', 'DesignerEnrollment', 'built_in', '2024-08-27 17:23:31.129070', '2024-08-27 17:23:31.129070', 2) RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.5ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Role Create (0.8ms)[0m [1m[32mINSERT INTO "public"."roles" ("name", "base_role_type", "workflow_state", "created_at", "updated_at", "root_account_id") VALUES ('ObserverEnrollment', 'ObserverEnrollment', 'built_in', '2024-08-27 17:23:31.132646', '2024-08-27 17:23:31.132646', 2) RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.5ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Role Create (0.8ms)[0m [1m[32mINSERT INTO "public"."roles" ("name", "base_role_type", "workflow_state", "created_at", "updated_at", "root_account_id") VALUES ('NoPermissions', 'NoPermissions', 'built_in', '2024-08-27 17:23:31.136098', '2024-08-27 17:23:31.136098', 2) RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.5ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL (0.3ms)[0m [1m[34mSELECT pg_current_wal_lsn()[0m [- -] [1m[36mSQL Delayed::Backend::ActiveRecord::Job Create (1.5ms)[0m [1m[32mINSERT INTO "public"."delayed_jobs" ("priority", "handler", "queue", "run_at", "created_at", "updated_at", "tag", "max_attempts", "shard_id", "singleton") VALUES (10, '--- !ruby/struct:Delayed::PerformableMethod object: !ruby/ActiveRecord:Account 2 method: :clear_downstream_caches args: - :account_chain kwargs: :xlog_location: 0/2547540 fail_cb: permanent_fail_cb: sender: sender_is_object: true sender_is_class: false ', 'canvas_queue', '2024-08-27 17:23:31.140710', '2024-08-27 17:23:31.140763', '2024-08-27 17:23:31.140763', 'Account#clear_downstream_caches', 1, 1, 'Account#clear_downstream_caches/10000000000002:account_chain') ON CONFLICT (singleton) WHERE singleton IS NOT NULL AND locked_by IS NULL DO UPDATE SET run_at=EXCLUDED.run_at WHERE EXCLUDED.run_at<delayed_jobs.run_at RETURNING id, (xmax = 0) AS inserted[0m [- -] [1m[36mSQL Setting Load (0.5ms)[0m [1m[34mSELECT "settings".* FROM "public"."settings" WHERE "settings"."name" = 'site_admin_account_id' ORDER BY "settings"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Setting Create (0.7ms)[0m [1m[32mINSERT INTO "public"."settings" ("name", "value", "created_at", "updated_at") VALUES ('site_admin_account_id', '2', '2024-08-27 17:23:31.146268', '2024-08-27 17:23:31.146268') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.6ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL AuthenticationProvider Exists? (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "public"."authentication_providers" WHERE "authentication_providers"."account_id" = 1 AND "authentication_providers"."workflow_state" != 'deleted' AND "authentication_providers"."auth_type" = 'canvas' LIMIT 1[0m [- -] [1m[36mSQL AuthenticationProvider Exists? (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "public"."authentication_providers" WHERE "authentication_providers"."account_id" = 2 AND "authentication_providers"."workflow_state" != 'deleted' AND "authentication_providers"."auth_type" = 'canvas' LIMIT 1[0m [- -] [1m[36mSQL Pseudonym Load (4.3ms)[0m [1m[34mSELECT "pseudonyms".* FROM "public"."pseudonyms" WHERE "pseudonyms"."account_id" = 2 AND "pseudonyms"."workflow_state" != 'deleted' AND (LOWER(unique_id)=LOWER('info@managedclass.com')) ORDER BY "pseudonyms"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Pseudonym Load (1.2ms)[0m [1m[34mSELECT "pseudonyms".* FROM "public"."pseudonyms" WHERE "pseudonyms"."account_id" = 1 AND "pseudonyms"."workflow_state" != 'deleted' AND (LOWER(unique_id)=LOWER('info@managedclass.com')) ORDER BY "pseudonyms"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.4ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL User Create (2.7ms)[0m [1m[32mINSERT INTO "public"."users" ("name", "sortable_name", "workflow_state", "uuid", "created_at", "updated_at", "stuck_sis_fields", "lti_id") VALUES ('User', 'User', 'pre_registered', 'r506OnkDDzB6HweEjy8xrdlU2IN4Hn81q1kD6jSW', '2024-08-27 17:23:55.146141', '2024-08-27 17:23:55.146141', 'name,sortable_name', 'f9365806-b7e9-4b15-81cf-447dfd31c536') RETURNING "id"[0m [- -] [1m[36mSQL FeatureFlag Load (0.9ms)[0m [1m[34mSELECT "feature_flags".* FROM "public"."feature_flags" WHERE "feature_flags"."context_id" = 1 AND "feature_flags"."context_type" = 'User' AND "feature_flags"."feature" = 'new_user_tutorial_on_off' LIMIT 1[0m [- -] [1m[36mSQL FeatureFlag Create (0.9ms)[0m [1m[32mINSERT INTO "public"."feature_flags" ("context_id", "context_type", "feature", "state", "created_at", "updated_at") VALUES (1, 'User', 'new_user_tutorial_on_off', 'on', '2024-08-27 17:23:55.227269', '2024-08-27 17:23:55.227269') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.9ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Pseudonym Load (1.0ms)[0m [1m[34mSELECT "pseudonyms".* FROM "public"."pseudonyms" WHERE "pseudonyms"."user_id" = 1 AND "pseudonyms"."workflow_state" != 'deleted' ORDER BY "pseudonyms"."position" ASC, "pseudonyms"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Pseudonym Load (0.8ms)[0m [1m[34mSELECT "pseudonyms".* FROM "public"."pseudonyms" WHERE "pseudonyms"."user_id" = 1 AND "pseudonyms"."workflow_state" != 'deleted' ORDER BY "pseudonyms"."position" ASC, "pseudonyms"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.4ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL CommunicationChannel Load (2.1ms)[0m [1m[34mSELECT "communication_channels".* FROM "public"."communication_channels" WHERE "communication_channels"."user_id" = 1 AND "communication_channels"."path_type" IN ('email', 'personal_email') AND "communication_channels"."workflow_state" != 'retired' ORDER BY communication_channels.position ASC LIMIT 1[0m [- -] [1m[36mSQL User Update (23.0ms)[0m [1m[33mUPDATE "public"."users" SET "workflow_state" = 'registered', "updated_at" = '2024-08-27 17:23:55.247720' WHERE "users"."id" = 1[0m [- -] [1m[36mSQL (7.7ms)[0m [1m[34mSELECT DISTINCT "enrollments"."user_id", "courses"."account_id" FROM "public"."courses" INNER JOIN "public"."course_sections" ON "course_sections"."course_id" = "courses"."id" INNER JOIN "public"."enrollments" ON "enrollments"."course_section_id" = "course_sections"."id" AND (enrollments.workflow_state<>'deleted') WHERE "enrollments"."user_id" = 1 AND "enrollments"."workflow_state" NOT IN ('deleted', 'rejected') AND "enrollments"."type" != 'StudentViewEnrollment' UNION SELECT DISTINCT "enrollments"."user_id", "courses"."account_id" FROM "public"."courses" INNER JOIN "public"."course_sections" on course_sections.nonxlist_course_id=courses.id INNER JOIN "public"."enrollments" on enrollments.course_section_id=course_sections.id WHERE "enrollments"."user_id" = 1 AND "enrollments"."workflow_state" NOT IN ('deleted', 'rejected') AND "enrollments"."type" != 'StudentViewEnrollment' UNION SELECT DISTINCT "pseudonyms"."user_id", "pseudonyms"."account_id" FROM "public"."pseudonyms" WHERE "pseudonyms"."workflow_state" != 'deleted' AND "pseudonyms"."user_id" = 1 UNION SELECT DISTINCT "account_users"."user_id", "account_users"."account_id" FROM "public"."account_users" WHERE "account_users"."workflow_state" != 'deleted' AND "account_users"."user_id" = 1[0m [- -] [1m[36mSQL UserAccountAssociation Load (1.2ms)[0m [1m[34mSELECT "user_account_associations".* FROM "public"."user_account_associations" WHERE "user_account_associations"."user_id" = 1[0m [- -] [1m[36mSQL Account Pluck (0.7ms)[0m [1m[34mSELECT "accounts"."id", COALESCE(NULLIF("accounts".root_account_id, 0), "accounts"."id") FROM "public"."accounts" WHERE "accounts"."id" IS NULL[0m [- -] [1m[36mSQL TRANSACTION (0.9ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Pseudonym Load (0.8ms)[0m [1m[34mSELECT "pseudonyms".* FROM "public"."pseudonyms" WHERE "pseudonyms"."user_id" = 1 AND "pseudonyms"."workflow_state" != 'deleted' ORDER BY "pseudonyms"."position" ASC, "pseudonyms"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Pseudonym Load (0.6ms)[0m [1m[34mSELECT "pseudonyms".* FROM "public"."pseudonyms" WHERE "pseudonyms"."user_id" = 1 AND "pseudonyms"."workflow_state" != 'deleted' ORDER BY "pseudonyms"."position" ASC, "pseudonyms"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.4ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Pseudonym Exists? (1.4ms)[0m [1m[34mSELECT 1 AS one FROM "public"."pseudonyms" WHERE "pseudonyms"."workflow_state" != 'deleted' AND (LOWER(unique_id)=LOWER('info@managedclass.com')) AND "pseudonyms"."account_id" = 2 AND "pseudonyms"."authentication_provider_id" IS NULL AND "pseudonyms"."login_attribute" IS NULL AND "pseudonyms"."id" IS NOT NULL LIMIT 1[0m [- -] [1m[36mSQL Pseudonym Exists? (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "public"."pseudonyms" WHERE LOWER("pseudonyms"."unique_id") = LOWER('info@managedclass.com') AND "pseudonyms"."account_id" = 2 AND "pseudonyms"."workflow_state" = 'active' AND "pseudonyms"."authentication_provider_id" IS NULL AND "pseudonyms"."login_attribute" IS NULL LIMIT 1[0m [- -] [1m[36mSQL Pseudonym Exists? (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "public"."pseudonyms" WHERE "pseudonyms"."persistence_token" = '503c2253b5f84c6828a45f79862061cff75c5ab2e35fb2295bafd1d3a48f9a53288f308bb2018496b7bc52ed3b1f520f0c594b1f1791147f18ded56fd51efb15' LIMIT 1[0m [- -] [1m[36mSQL Pseudonym Exists? (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "public"."pseudonyms" WHERE "pseudonyms"."single_access_token" = '8KVaYjFRVCcgw2f9BUgF' LIMIT 1[0m [- -] [1m[36mSQL Pseudonym Maximum (1.1ms)[0m [1m[34mSELECT MAX("pseudonyms"."position") FROM "public"."pseudonyms" WHERE "pseudonyms"."user_id" = 1[0m [- -] [1m[36mSQL Pseudonym Create (2.5ms)[0m [1m[32mINSERT INTO "public"."pseudonyms" ("user_id", "account_id", "workflow_state", "unique_id", "crypted_password", "password_salt", "persistence_token", "single_access_token", "perishable_token", "position", "created_at", "updated_at", "password_auto_generated", "stuck_sis_fields") VALUES (1, 2, 'active', 'info@managedclass.com', '4000$8$1$7bb095fa6908aff2ed8200fe70695a9b95d60c8e0c328bdef756394cf6ac4966$c706560ef51b7dfee48853d8983a5809bda2e34602d07c1850db4f676863d73e', 'uUpY34NDflRy68hhNx35', '503c2253b5f84c6828a45f79862061cff75c5ab2e35fb2295bafd1d3a48f9a53288f308bb2018496b7bc52ed3b1f520f0c594b1f1791147f18ded56fd51efb15', '8KVaYjFRVCcgw2f9BUgF', 'oYLqrF6_ly_cO7XvHlvb', 1, '2024-08-27 17:23:55.536940', '2024-08-27 17:23:55.536940', FALSE, 'unique_id,workflow_state') RETURNING "id"[0m [- -] [1m[36mSQL User Load (0.8ms)[0m [1m[34mSELECT "users".* FROM "public"."users" WHERE "users"."id" = 1 LIMIT 1[0m [- -] [1m[36mSQL UserAccountAssociation Load (0.6ms)[0m [1m[34mSELECT "user_account_associations".* FROM "public"."user_account_associations" WHERE "user_account_associations"."user_id" = 1[0m [- -] [1m[36mSQL Account Pluck (0.6ms)[0m [1m[34mSELECT "accounts"."id", COALESCE(NULLIF("accounts".root_account_id, 0), "accounts"."id") FROM "public"."accounts" WHERE "accounts"."id" = 2[0m [- -] [1m[36mSQL TRANSACTION (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [- -] [1m[36mSQL UserAccountAssociation Create (2.2ms)[0m [1m[32mINSERT INTO "public"."user_account_associations" ("user_id", "account_id", "depth", "created_at", "updated_at", "root_account_id") VALUES (1, 2, 0, '2024-08-27 17:23:55.561157', '2024-08-27 17:23:55.561157', 2) RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m [- -] [1m[36mSQL TRANSACTION (0.9ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Setting Pluck (0.6ms)[0m [1m[34mSELECT "settings"."name", "settings"."value" FROM "public"."settings"[0m [- -] [1m[36mSQL User Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "public"."users" WHERE "users"."id" = 1 LIMIT 1[0m [- -] [1m[36mSQL Delayed::Backend::ActiveRecord::Job Create (1.1ms)[0m [1m[32mINSERT INTO "public"."delayed_jobs" ("priority", "handler", "queue", "run_at", "created_at", "updated_at", "tag", "max_attempts", "shard_id") VALUES (10, '--- !ruby/struct:Delayed::PerformableMethod object: !ruby/ActiveRecord:User 1 method: :update_root_account_ids args: [] kwargs: {} fail_cb: permanent_fail_cb: sender: sender_is_object: true sender_is_class: false ', 'canvas_queue', '2024-08-27 17:23:55.574562', '2024-08-27 17:23:55.574596', '2024-08-27 17:23:55.574596', 'User#update_root_account_ids', 5, 1) RETURNING id, (xmax = 0) AS inserted[0m [- -] [1m[36mSQL Account Load (0.7ms)[0m [1m[34mSELECT "accounts".* FROM "public"."accounts" WHERE "accounts"."id" = 2 LIMIT 1[0m [- -] [1m[36mSQL FeatureFlag Load (0.5ms)[0m [1m[34mSELECT "feature_flags".* FROM "public"."feature_flags" WHERE "feature_flags"."context_id" = 2 AND "feature_flags"."context_type" = 'Account'[0m [- -] [1m[36mSQL SQL (1.7ms)[0m [1m[34mSELECT "account_users"."id" AS t0_r0, "account_users"."account_id" AS t0_r1, "account_users"."user_id" AS t0_r2, "account_users"."created_at" AS t0_r3, "account_users"."updated_at" AS t0_r4, "account_users"."role_id" AS t0_r5, "account_users"."workflow_state" AS t0_r6, "account_users"."sis_batch_id" AS t0_r7, "account_users"."root_account_id" AS t0_r8, "accounts"."id" AS t1_r0, "accounts"."name" AS t1_r1, "accounts"."created_at" AS t1_r2, "accounts"."updated_at" AS t1_r3, "accounts"."workflow_state" AS t1_r4, "accounts"."deleted_at" AS t1_r5, "accounts"."parent_account_id" AS t1_r6, "accounts"."sis_source_id" AS t1_r7, "accounts"."sis_batch_id" AS t1_r8, "accounts"."current_sis_batch_id" AS t1_r9, "accounts"."root_account_id" AS t1_r10, "accounts"."last_successful_sis_batch_id" AS t1_r11, "accounts"."membership_types" AS t1_r12, "accounts"."default_time_zone" AS t1_r13, "accounts"."external_status" AS t1_r14, "accounts"."storage_quota" AS t1_r15, "accounts"."default_storage_quota" AS t1_r16, "accounts"."enable_user_notes" AS t1_r17, "accounts"."allowed_services" AS t1_r18, "accounts"."turnitin_pledge" AS t1_r19, "accounts"."turnitin_comments" AS t1_r20, "accounts"."turnitin_account_id" AS t1_r21, "accounts"."turnitin_salt" AS t1_r22, "accounts"."turnitin_crypted_secret" AS t1_r23, "accounts"."show_section_name_as_course_name" AS t1_r24, "accounts"."allow_sis_import" AS t1_r25, "accounts"."equella_endpoint" AS t1_r26, "accounts"."settings" AS t1_r27, "accounts"."uuid" AS t1_r28, "accounts"."default_locale" AS t1_r29, "accounts"."stuck_sis_fields" AS t1_r30, "accounts"."default_user_storage_quota" AS t1_r31, "accounts"."lti_guid" AS t1_r32, "accounts"."default_group_storage_quota" AS t1_r33, "accounts"."turnitin_host" AS t1_r34, "accounts"."integration_id" AS t1_r35, "accounts"."lti_context_id" AS t1_r36, "accounts"."brand_config_md5" AS t1_r37, "accounts"."turnitin_originality" AS t1_r38, "accounts"."account_calendar_subscription_type" AS t1_r39, "accounts"."latest_outcome_import_id" AS t1_r40, "accounts"."course_template_id" AS t1_r41, "accounts"."account_calendar_visible" AS t1_r42, "accounts"."grading_standard_id" AS t1_r43 FROM "public"."account_users" LEFT OUTER JOIN "public"."accounts" ON "accounts"."id" = "account_users"."account_id" WHERE "account_users"."workflow_state" != 'deleted' AND (user_id=1 AND (accounts.root_account_id IN (2) OR account_id IN (2)))[0m [- -] [1m[36mSQL TRANSACTION (0.4ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL CommunicationChannel Count (1.2ms)[0m [1m[34mSELECT COUNT(*) FROM (SELECT 1 AS one FROM "public"."communication_channels" WHERE "communication_channels"."user_id" = 1 ORDER BY communication_channels.position ASC LIMIT 101) subquery_for_count[0m [- -] [1m[36mSQL CommunicationChannel Exists? (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "public"."communication_channels" WHERE lower("communication_channels"."path") = lower('info@managedclass.com') AND "communication_channels"."user_id" = 1 AND "communication_channels"."path_type" = 'email' AND "communication_channels"."workflow_state" IN ('unconfirmed', 'active') LIMIT 1[0m [- -] [1m[36mSQL Account Load (1.4ms)[0m [1m[34mSELECT "accounts".* FROM "public"."accounts" INNER JOIN "public"."user_account_associations" ON "accounts"."id" = "user_account_associations"."account_id" WHERE "user_account_associations"."user_id" = 1 AND ((accounts.root_account_id = 0 OR accounts.root_account_id IS NULL) AND accounts.id != 0) AND (accounts.workflow_state<>'deleted')[0m [- -] [1m[36mSQL CommunicationChannel Maximum (0.7ms)[0m [1m[34mSELECT MAX("communication_channels"."position") FROM "public"."communication_channels" WHERE "communication_channels"."user_id" = 1[0m [- -] [1m[36mSQL CommunicationChannel Create (1.5ms)[0m [1m[32mINSERT INTO "public"."communication_channels" ("path", "position", "user_id", "workflow_state", "confirmation_code", "created_at", "updated_at", "root_account_ids") VALUES ('info@managedclass.com', 1, 1, 'active', 'EMyPHDNWyfcBCrkHrC7WGc2RC', '2024-08-27 17:23:55.895754', '2024-08-27 17:23:55.895754', '{}') RETURNING "id"[0m [- -] [1m[36mSQL NotificationPolicy Exists? (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notification_policies" WHERE "notification_policies"."communication_channel_id" = 1 LIMIT 1[0m [- -] [1m[36mSQL NotificationPolicy Exists? (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notification_policies" WHERE "notification_policies"."communication_channel_id" = 1 LIMIT 1[0m [- -] [1m[36mSQL Notification Load (1.0ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications"[0m [- -] [1m[36mSQL TRANSACTION (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m [- -] [1m[36mSQL NotificationPolicy Create (1.8ms)[0m [1m[32mINSERT INTO "public"."notification_policies" ("notification_id", "communication_channel_id", "frequency", "created_at", "updated_at") VALUES (1, 1, 'weekly', '2024-08-27 17:23:55.967323', '2024-08-27 17:23:55.967323') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m [- -] [1m[36mSQL NotificationPolicy Create (0.9ms)[0m [1m[32mINSERT INTO "public"."notification_policies" ("notification_id", "communication_channel_id", "created_at", "updated_at") VALUES (2, 1, '2024-08-27 17:23:55.972611', '2024-08-27 17:23:55.972611') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m [- -] [1m[36mSQL TRANSACTION (0.9ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Delayed::Backend::ActiveRecord::Job Create (1.2ms)[0m [1m[32mINSERT INTO "public"."delayed_jobs" ("priority", "handler", "queue", "run_at", "created_at", "updated_at", "tag", "max_attempts", "shard_id") VALUES (10, '--- !ruby/struct:Delayed::PerformableMethod object: !ruby/class ''MicrosoftSync::UserMapping'' method: :flag_as_needs_updating_if_using_email args: - !ruby/ActiveRecord:User 1 kwargs: {} fail_cb: permanent_fail_cb: sender: sender_is_object: true sender_is_class: false ', 'canvas_queue', '2024-08-27 17:23:55.978444', '2024-08-27 17:23:55.978480', '2024-08-27 17:23:55.978480', 'MicrosoftSync::UserMapping.flag_as_needs_updating_if_using_email', 1, 1) RETURNING id, (xmax = 0) AS inserted[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Pseudonym Exists? (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "public"."pseudonyms" WHERE "pseudonyms"."workflow_state" != 'deleted' AND (LOWER(unique_id)=LOWER('info@managedclass.com')) AND "pseudonyms"."account_id" = 2 AND "pseudonyms"."authentication_provider_id" IS NULL AND "pseudonyms"."login_attribute" IS NULL AND "pseudonyms"."id" != 1 LIMIT 1[0m [- -] [1m[36mSQL Pseudonym Exists? (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "public"."pseudonyms" WHERE "pseudonyms"."persistence_token" = '9189c5d322b5b44ab0c0c44c0994095b6f25316ffe6756c14f0e384e45959ac8363b40f2ceab30f41652c7bc2f547666760cf8c02a60b35e098c556bdcc05e30' AND "pseudonyms"."id" != 1 LIMIT 1[0m [- -] [1m[36mSQL Pseudonym Update (1.1ms)[0m [1m[33mUPDATE "public"."pseudonyms" SET "crypted_password" = '4000$8$1$4440d704a5d3ded29672fedacf8be3ad950e2a2bc0e6b49dc936272ced4ad05d$90515d1138dcceac1f4b28dd21eae7ad1161a362c6e469a62b9a559b8997245a', "password_salt" = '5PKYaiDnL5nt2IuyoyrM', "persistence_token" = '9189c5d322b5b44ab0c0c44c0994095b6f25316ffe6756c14f0e384e45959ac8363b40f2ceab30f41652c7bc2f547666760cf8c02a60b35e098c556bdcc05e30', "perishable_token" = '2odzliPJeLB1yyJq2m5S', "updated_at" = '2024-08-27 17:23:56.070850' WHERE "pseudonyms"."id" = 1[0m [- -] [1m[36mSQL TRANSACTION (0.9ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Role Load (0.7ms)[0m [1m[34mSELECT "roles".* FROM "public"."roles" WHERE "roles"."workflow_state" = 'built_in' AND "roles"."root_account_id" = 2 ORDER BY "roles"."id" ASC[0m [- -] [1m[36mSQL AccountUser Load (0.7ms)[0m [1m[34mSELECT "account_users".* FROM "public"."account_users" WHERE "account_users"."account_id" = 2 AND "account_users"."user_id" = 1 AND "account_users"."role_id" = 9 ORDER BY "account_users"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Role Load (1.3ms)[0m [1m[34mSELECT "roles".* FROM "public"."roles" WHERE "roles"."id" = 9 LIMIT 1[0m [- -] [1m[36mSQL AccountUser Create (2.0ms)[0m [1m[32mINSERT INTO "public"."account_users" ("account_id", "user_id", "created_at", "updated_at", "role_id", "root_account_id") VALUES (2, 1, '2024-08-27 17:23:56.101174', '2024-08-27 17:23:56.101174', 9, 2) RETURNING "id"[0m [- -] [1m[36mSQL User Load (0.7ms)[0m [1m[34mSELECT "users".* FROM "public"."users" WHERE "users"."id" = 1 LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL User Update (1.3ms)[0m [1m[33mUPDATE "public"."users" SET "updated_at" = '2024-08-27 17:23:56.112081' WHERE "users"."id" = 1[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Delayed::Backend::ActiveRecord::Job Create (1.1ms)[0m [1m[32mINSERT INTO "public"."delayed_jobs" ("priority", "handler", "queue", "run_at", "created_at", "updated_at", "tag", "max_attempts", "shard_id") VALUES (10, '--- !ruby/struct:Delayed::PerformableMethod object: !ruby/ActiveRecord:User 1 method: :update_account_associations args: [] kwargs: {} fail_cb: permanent_fail_cb: sender: sender_is_object: true sender_is_class: false ', 'canvas_queue', '2024-08-27 17:23:56.118115', '2024-08-27 17:23:56.118150', '2024-08-27 17:23:56.118150', 'User#update_account_associations', 1, 1) RETURNING id, (xmax = 0) AS inserted[0m [- -] [1m[36mSQL (0.4ms)[0m [1m[34mSELECT pg_current_wal_lsn()[0m [- -] [1m[36mSQL (36.5ms)[0m [1m[34mSELECT pg_is_in_recovery()[0m [- -] [1m[36mSQL Role Load (0.7ms)[0m [1m[34mSELECT "roles".* FROM "public"."roles" WHERE "roles"."workflow_state" = 'built_in' AND "roles"."root_account_id" = 1 ORDER BY "roles"."id" ASC[0m [- -] [1m[36mSQL AccountUser Load (0.9ms)[0m [1m[34mSELECT "account_users".* FROM "public"."account_users" WHERE "account_users"."account_id" = 1 AND "account_users"."user_id" = 1 AND "account_users"."role_id" = 1 ORDER BY "account_users"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Role Load (1.3ms)[0m [1m[34mSELECT "roles".* FROM "public"."roles" WHERE "roles"."id" = 1 LIMIT 1[0m [- -] [1m[36mSQL AccountUser Create (1.4ms)[0m [1m[32mINSERT INTO "public"."account_users" ("account_id", "user_id", "created_at", "updated_at", "role_id", "root_account_id") VALUES (1, 1, '2024-08-27 17:23:56.174198', '2024-08-27 17:23:56.174198', 1, 1) RETURNING "id"[0m [- -] [1m[36mSQL User Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "public"."users" WHERE "users"."id" = 1 LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.9ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL User Update (1.3ms)[0m [1m[33mUPDATE "public"."users" SET "updated_at" = '2024-08-27 17:23:56.182765' WHERE "users"."id" = 1[0m [- -] [1m[36mSQL TRANSACTION (0.6ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Delayed::Backend::ActiveRecord::Job Create (1.3ms)[0m [1m[32mINSERT INTO "public"."delayed_jobs" ("priority", "handler", "queue", "run_at", "created_at", "updated_at", "tag", "max_attempts", "shard_id") VALUES (10, '--- !ruby/struct:Delayed::PerformableMethod object: !ruby/ActiveRecord:User 1 method: :update_account_associations args: [] kwargs: {} fail_cb: permanent_fail_cb: sender: sender_is_object: true sender_is_class: false ', 'canvas_queue', '2024-08-27 17:23:56.188066', '2024-08-27 17:23:56.188103', '2024-08-27 17:23:56.188103', 'User#update_account_associations', 1, 1) RETURNING id, (xmax = 0) AS inserted[0m [- -] [1m[36mSQL Account Load (1.6ms)[0m [1m[34mSELECT "accounts".* FROM "public"."accounts" WHERE "accounts"."id" = 1 LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.6ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Account Update (4.4ms)[0m [1m[33mUPDATE "public"."accounts" SET "name" = 'Managedclass', "updated_at" = '2024-08-27 17:24:02.130466' WHERE "accounts"."id" = 1[0m [- -] [1m[36mSQL LearningOutcomeGroup Load (0.8ms)[0m [1m[34mSELECT "learning_outcome_groups".* FROM "public"."learning_outcome_groups" WHERE "learning_outcome_groups"."context_id" = 1 AND "learning_outcome_groups"."context_type" = 'Account' AND (learning_outcome_groups.workflow_state NOT IN ('deleted', 'archived')) AND "learning_outcome_groups"."learning_outcome_group_id" IS NULL LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (1.4ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Setting Load (0.9ms)[0m [1m[34mSELECT "settings".* FROM "public"."settings" WHERE "settings"."name" = 'usage_statistics_collection' ORDER BY "settings"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.6ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Setting Create (1.7ms)[0m [1m[32mINSERT INTO "public"."settings" ("name", "value", "created_at", "updated_at") VALUES ('usage_statistics_collection', 'opt_out', '2024-08-27 17:24:05.213094', '2024-08-27 17:24:05.213094') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.9ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Account Load (1.5ms)[0m [1m[34mSELECT "accounts".* FROM "public"."accounts" WHERE ((accounts.root_account_id = 0 OR accounts.root_account_id IS NULL) AND accounts.id != 0) AND (accounts.workflow_state<>'deleted') AND "accounts"."id" BETWEEN 0 AND 10000000000000[0m [- -] [1m[36mSQL Course Load (5.4ms)[0m [1m[35mCOPY (SELECT "courses"."id", "courses"."updated_at" FROM "public"."courses" WHERE "courses"."root_account_id" = 1 AND "courses"."workflow_state" = 'available') TO STDOUT[0m [- -] [1m[36mSQL TRANSACTION (0.4ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL ReportSnapshot Create (3.4ms)[0m [1m[32mINSERT INTO "public"."report_snapshots" ("report_type", "data", "created_at", "updated_at", "account_id") VALUES ('counts_detailed', '{"generated_at":1724716740000,"id":1,"name":"Managedclass","external_status":"active","courses":0,"teachers":0,"students":0,"users":0,"files":0,"files_size":0,"media_files":0,"media_files_size":0}', '2024-08-26 23:59:00', '2024-08-27 17:24:05.273666', 1) RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.9ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL ReportSnapshot Load (0.7ms)[0m [1m[34mSELECT "report_snapshots".* FROM "public"."report_snapshots" WHERE "report_snapshots"."account_id" = 1 AND "report_snapshots"."report_type" = 'counts_progressive_detailed' ORDER BY "report_snapshots"."id" DESC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL ReportSnapshot Create (1.1ms)[0m [1m[32mINSERT INTO "public"."report_snapshots" ("report_type", "data", "created_at", "updated_at", "account_id") VALUES ('counts_progressive_detailed', '{"yearly":[{"year":2024,"institutions":null,"courses":0,"teachers":0,"students":0,"users":0,"files":0,"files_size":0,"media_files":0,"media_files_size":0}],"monthly":[{"year":2024,"month":8,"institutions":null,"courses":0,"teachers":0,"students":0,"users":0,"files":0,"files_size":0,"media_files":0,"media_files_size":0}],"weekly":[{"year":2024,"month":8,"week":35,"institutions":null,"courses":0,"teachers":0,"students":0,"users":0,"files":0,"files_size":0,"media_files":0,"media_files_size":0}],"generated_at":1724716740000}', '2024-08-26 23:59:00', '2024-08-27 17:24:05.285488', 1) RETURNING "id"[0m [- -] [1m[36mSQL Account Load (0.5ms)[0m [1m[34mSELECT "accounts".* FROM "public"."accounts" WHERE "accounts"."id" = 1 LIMIT 1[0m [- -] [1m[36mSQL FeatureFlag Load (0.4ms)[0m [1m[34mSELECT "feature_flags".* FROM "public"."feature_flags" WHERE "feature_flags"."context_id" = 1 AND "feature_flags"."context_type" = 'Account'[0m [- -] [1m[36mSQL Setting Pluck (0.4ms)[0m [1m[34mSELECT "settings"."name", "settings"."value" FROM "public"."settings"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Course Load (2.1ms)[0m [1m[35mCOPY (SELECT "courses"."id", "courses"."updated_at" FROM "public"."courses" WHERE "courses"."root_account_id" = 2 AND "courses"."workflow_state" = 'available') TO STDOUT[0m [- -] [1m[36mSQL TRANSACTION (0.6ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL ReportSnapshot Create (2.2ms)[0m [1m[32mINSERT INTO "public"."report_snapshots" ("report_type", "data", "created_at", "updated_at", "account_id") VALUES ('counts_detailed', '{"generated_at":1724716740000,"id":2,"name":"Site Admin","external_status":"active","courses":0,"teachers":0,"students":0,"users":0,"files":0,"files_size":0,"media_files":0,"media_files_size":0}', '2024-08-26 23:59:00', '2024-08-27 17:24:05.304999', 2) RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (1.2ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL ReportSnapshot Load (0.6ms)[0m [1m[34mSELECT "report_snapshots".* FROM "public"."report_snapshots" WHERE "report_snapshots"."account_id" = 2 AND "report_snapshots"."report_type" = 'counts_progressive_detailed' ORDER BY "report_snapshots"."id" DESC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL ReportSnapshot Create (1.0ms)[0m [1m[32mINSERT INTO "public"."report_snapshots" ("report_type", "data", "created_at", "updated_at", "account_id") VALUES ('counts_progressive_detailed', '{"yearly":[{"year":2024,"institutions":null,"courses":0,"teachers":0,"students":0,"users":0,"files":0,"files_size":0,"media_files":0,"media_files_size":0}],"monthly":[{"year":2024,"month":8,"institutions":null,"courses":0,"teachers":0,"students":0,"users":0,"files":0,"files_size":0,"media_files":0,"media_files_size":0}],"weekly":[{"year":2024,"month":8,"week":35,"institutions":null,"courses":0,"teachers":0,"students":0,"users":0,"files":0,"files_size":0,"media_files":0,"media_files_size":0}],"generated_at":1724716740000}', '2024-08-26 23:59:00', '2024-08-27 17:24:05.315771', 2) RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Setting Load (0.6ms)[0m [1m[34mSELECT "settings".* FROM "public"."settings" WHERE "settings"."name" = 'support_multiple_account_types' ORDER BY "settings"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Setting Create (0.8ms)[0m [1m[32mINSERT INTO "public"."settings" ("name", "value", "created_at", "updated_at") VALUES ('support_multiple_account_types', 'false', '2024-08-27 17:24:05.321524', '2024-08-27 17:24:05.321524') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.6ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Setting Load (0.4ms)[0m [1m[34mSELECT "settings".* FROM "public"."settings" WHERE "settings"."name" = 'show_opensource_linkback' ORDER BY "settings"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Setting Create (0.7ms)[0m [1m[32mINSERT INTO "public"."settings" ("name", "value", "created_at", "updated_at") VALUES ('show_opensource_linkback', 'true', '2024-08-27 17:24:05.326766', '2024-08-27 17:24:05.326766') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (1.0ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Account Notification' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Account Notification' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.6ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Account Notification', 'No Subject', 'Account Notification', NULL, '2024-08-27 17:24:05.340837', '2024-08-27 17:24:05.340837') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Added To Conversation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Added To Conversation' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.4ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Added To Conversation', 'No Subject', 'Added To Conversation', 0, '2024-08-27 17:24:05.348473', '2024-08-27 17:24:05.348473') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.8ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Alert' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Alert' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.6ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Alert', 'No Subject', 'Alert', 0, '2024-08-27 17:24:05.357609', '2024-08-27 17:24:05.357609') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (1.0ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Submitted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Submitted' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.5ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Assignment Submitted', 'No Subject', 'All Submissions', 0, '2024-08-27 17:24:05.367317', '2024-08-27 17:24:05.367317') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Resubmitted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Resubmitted' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.4ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Assignment Resubmitted', 'No Subject', 'All Submissions', 0, '2024-08-27 17:24:05.374783', '2024-08-27 17:24:05.374783') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.6ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Needs Grading' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Needs Grading' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.4ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Submission Needs Grading', 'No Subject', 'All Submissions', 0, '2024-08-27 17:24:05.381146', '2024-08-27 17:24:05.381146') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (1.0ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Announcement' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'New Announcement' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.6ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('New Announcement', 'No Subject', 'Announcement', 0, '2024-08-27 17:24:05.388050', '2024-08-27 17:24:05.388050') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Announcement Created By You' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.4ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Announcement Created By You' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.7ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Announcement Created By You', 'No Subject', 'Announcement Created By You', 0, '2024-08-27 17:24:05.398356', '2024-08-27 17:24:05.398356') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Announcement Reply' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.5ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.4ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Announcement Reply' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.6ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Announcement Reply', 'No Subject', 'Announcement Created By You', 0, '2024-08-27 17:24:05.409154', '2024-08-27 17:24:05.409154') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Group Published' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Group Published' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.4ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Appointment Group Published', 'No Subject', 'Appointment Availability', 0, '2024-08-27 17:24:05.417679', '2024-08-27 17:24:05.417679') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.6ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Group Updated' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Group Updated' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.4ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Appointment Group Updated', 'No Subject', 'Appointment Availability', 0, '2024-08-27 17:24:05.424973', '2024-08-27 17:24:05.424973') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.6ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Deleted For User' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Deleted For User' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.5ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Appointment Deleted For User', 'No Subject', 'Appointment Cancelations', 0, '2024-08-27 17:24:05.431504', '2024-08-27 17:24:05.431504') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Group Deleted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Group Deleted' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.4ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Appointment Group Deleted', 'No Subject', 'Appointment Cancelations', 0, '2024-08-27 17:24:05.440166', '2024-08-27 17:24:05.440166') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.6ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Reserved For User' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.4ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Reserved For User' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.5ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Appointment Reserved For User', 'No Subject', 'Appointment Signups', 0, '2024-08-27 17:24:05.447553', '2024-08-27 17:24:05.447553') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.6ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Blueprint Content Added' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Blueprint Content Added' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.6ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Blueprint Content Added', 'No Subject', 'Blueprint', 0, '2024-08-27 17:24:05.455213', '2024-08-27 17:24:05.455213') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Blueprint Sync Complete' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Blueprint Sync Complete' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.5ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Blueprint Sync Complete', 'No Subject', 'Blueprint', 0, '2024-08-27 17:24:05.463221', '2024-08-27 17:24:05.463221') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Event Created' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'New Event Created' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.4ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('New Event Created', 'No Subject', 'Calendar', 0, '2024-08-27 17:24:05.470478', '2024-08-27 17:24:05.470478') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Event Date Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Event Date Changed' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.4ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Event Date Changed', 'No Subject', 'Calendar', 900, '2024-08-27 17:24:05.477561', '2024-08-27 17:24:05.477561') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.6ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Content Link Error' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Content Link Error' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.4ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Content Link Error', 'No Subject', 'Content Link Error', NULL, '2024-08-27 17:24:05.483829', '2024-08-27 17:24:05.483829') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Conversation Created' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Conversation Created' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.4ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Conversation Created', 'No Subject', 'Conversation Created', 0, '2024-08-27 17:24:05.490767', '2024-08-27 17:24:05.490767') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Conversation Message' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Conversation Message' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.4ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Conversation Message', 'No Subject', 'Conversation Message', 0, '2024-08-27 17:24:05.498549', '2024-08-27 17:24:05.498549') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.1ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Changed' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.6ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Assignment Changed', 'No Subject', 'Course Content', 1800, '2024-08-27 17:24:05.506923', '2024-08-27 17:24:05.506923') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Updated Wiki Page' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Updated Wiki Page' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.4ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Updated Wiki Page', 'No Subject', 'Course Content', 900, '2024-08-27 17:24:05.514358', '2024-08-27 17:24:05.514358') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Publishing Reminder' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Publishing Reminder' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.5ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Assignment Publishing Reminder', 'No Subject', 'DEPRECATED - Reminder', 0, '2024-08-27 17:24:05.521076', '2024-08-27 17:24:05.521076') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Grading Reminder' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Grading Reminder' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.6ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Assignment Grading Reminder', 'No Subject', 'DEPRECATED - Reminder', 0, '2024-08-27 17:24:05.529784', '2024-08-27 17:24:05.529784') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Due Date Reminder' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.1ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Due Date Reminder' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.6ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Assignment Due Date Reminder', 'No Subject', 'DEPRECATED - Reminder', 0, '2024-08-27 17:24:05.539524', '2024-08-27 17:24:05.539524') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.9ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Discussion Topic' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.4ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'New Discussion Topic' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.7ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('New Discussion Topic', 'No Subject', 'Discussion', 0, '2024-08-27 17:24:05.549815', '2024-08-27 17:24:05.549815') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.9ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Discussion Entry' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'New Discussion Entry' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.7ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('New Discussion Entry', 'No Subject', 'DiscussionEntry', 0, '2024-08-27 17:24:05.560086', '2024-08-27 17:24:05.560086') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.9ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.9ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Discussion Mention' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.5ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.4ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Discussion Mention' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.8ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "created_at", "updated_at") VALUES ('Discussion Mention', 'No Subject', 'DiscussionMention', '2024-08-27 17:24:05.571513', '2024-08-27 17:24:05.571513') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.9ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.9ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Reported Reply' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.4ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Reported Reply' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.7ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "created_at", "updated_at") VALUES ('Reported Reply', 'No Subject', 'ReportedReply', '2024-08-27 17:24:05.583251', '2024-08-27 17:24:05.583251') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Due Date Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.4ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Due Date Changed' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.8ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Assignment Due Date Changed', 'No Subject', 'Due Date', 300, '2024-08-27 17:24:05.593984', '2024-08-27 17:24:05.593984') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.8ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Created' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.4ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Created' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.7ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Assignment Created', 'No Subject', 'Due Date', 0, '2024-08-27 17:24:05.604860', '2024-08-27 17:24:05.604860') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Checkpoints Created' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Due Date Override Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Due Date Override Changed' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.4ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "created_at", "updated_at") VALUES ('Assignment Due Date Override Changed', 'No Subject', 'Due Date', '2024-08-27 17:24:05.621872', '2024-08-27 17:24:05.621872') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.9ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Upcoming Assignment Alert' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Upcoming Assignment Alert' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.4ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Upcoming Assignment Alert', 'No Subject', 'Due Date', 0, '2024-08-27 17:24:05.628977', '2024-08-27 17:24:05.628977') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New File Added' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'New File Added' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.6ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "created_at", "updated_at") VALUES ('New File Added', 'No Subject', 'Files', '2024-08-27 17:24:05.636494', '2024-08-27 17:24:05.636494') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Files Added' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'New Files Added' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.5ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "created_at", "updated_at") VALUES ('New Files Added', 'No Subject', 'Files', '2024-08-27 17:24:05.644802', '2024-08-27 17:24:05.644802') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Graded' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Graded' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.6ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Assignment Graded', 'No Subject', 'Grading', 900, '2024-08-27 17:24:05.652154', '2024-08-27 17:24:05.652154') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Graded' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Graded' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.4ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Submission Graded', 'No Subject', 'Grading', 3600, '2024-08-27 17:24:05.660005', '2024-08-27 17:24:05.660005') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (1.0ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Grade Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Grade Changed' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.6ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Submission Grade Changed', 'No Subject', 'Grading', 300, '2024-08-27 17:24:05.667175', '2024-08-27 17:24:05.667175') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Posted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Posted' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.4ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Submission Posted', 'No Subject', 'Grading', 0, '2024-08-27 17:24:05.674371', '2024-08-27 17:24:05.674371') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.9ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submissions Posted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Submissions Posted' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.4ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Submissions Posted', 'No Subject', 'Grading', 0, '2024-08-27 17:24:05.681172', '2024-08-27 17:24:05.681172') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Quiz Regrade Finished' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.4ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Quiz Regrade Finished' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.6ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Quiz Regrade Finished', 'No Subject', 'Grading', 0, '2024-08-27 17:24:05.689758', '2024-08-27 17:24:05.689758') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.9ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.8ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Grade Weight Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Grade Weight Changed' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.4ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Grade Weight Changed', 'No Subject', 'Grading Policies', 300, '2024-08-27 17:24:05.697993', '2024-08-27 17:24:05.697993') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Collaboration Invitation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Collaboration Invitation' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.4ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Collaboration Invitation', 'No Subject', 'Invitation', 0, '2024-08-27 17:24:05.704382', '2024-08-27 17:24:05.704382') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Web Conference Invitation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Web Conference Invitation' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.4ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Web Conference Invitation', 'No Subject', 'Invitation', 0, '2024-08-27 17:24:05.711812', '2024-08-27 17:24:05.711812') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Context Group Membership Invitation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'New Context Group Membership Invitation' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.5ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('New Context Group Membership Invitation', 'No Subject', 'Invitation', 0, '2024-08-27 17:24:05.718242', '2024-08-27 17:24:05.718242') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (1.4ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Rubric Assessment Submission Reminder' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Rubric Assessment Submission Reminder' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.4ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Rubric Assessment Submission Reminder', 'No Subject', 'Invitation', 0, '2024-08-27 17:24:05.726927', '2024-08-27 17:24:05.726927') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.6ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Rubric Assessment Invitation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Rubric Assessment Invitation' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.6ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Rubric Assessment Invitation', 'No Subject', 'Invitation', 0, '2024-08-27 17:24:05.733499', '2024-08-27 17:24:05.733499') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Rubric Association Created' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Rubric Association Created' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.4ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Rubric Association Created', 'No Subject', 'Invitation', 0, '2024-08-27 17:24:05.740655', '2024-08-27 17:24:05.740655') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Peer Review Invitation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Peer Review Invitation' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.5ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Peer Review Invitation', 'No Subject', 'Invitation', 0, '2024-08-27 17:24:05.747716', '2024-08-27 17:24:05.747716') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Submitted Late' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Submitted Late' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.4ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Assignment Submitted Late', 'No Subject', 'Late Grading', 0, '2024-08-27 17:24:05.755913', '2024-08-27 17:24:05.755913') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Group Assignment Submitted Late' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Group Assignment Submitted Late' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.6ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Group Assignment Submitted Late', 'No Subject', 'Late Grading', 0, '2024-08-27 17:24:05.764624', '2024-08-27 17:24:05.764624') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.9ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Context Group Membership' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'New Context Group Membership' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.4ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('New Context Group Membership', 'No Subject', 'Membership Update', 0, '2024-08-27 17:24:05.773811', '2024-08-27 17:24:05.773811') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Group Membership Accepted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Group Membership Accepted' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.6ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Group Membership Accepted', 'No Subject', 'Membership Update', 0, '2024-08-27 17:24:05.780837', '2024-08-27 17:24:05.780837') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Group Membership Rejected' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Group Membership Rejected' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.6ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Group Membership Rejected', 'No Subject', 'Membership Update', 0, '2024-08-27 17:24:05.789976', '2024-08-27 17:24:05.789976') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Migration Export Ready' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Migration Export Ready' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.6ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Migration Export Ready', 'No Subject', 'Migration', 0, '2024-08-27 17:24:05.799898', '2024-08-27 17:24:05.799898') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Migration Import Finished' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Migration Import Finished' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.6ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Migration Import Finished', 'No Subject', 'Migration', 0, '2024-08-27 17:24:05.808715', '2024-08-27 17:24:05.808715') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Migration Import Failed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Migration Import Failed' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.5ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Migration Import Failed', 'No Subject', 'Migration', 0, '2024-08-27 17:24:05.816675', '2024-08-27 17:24:05.816675') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Content Export Finished' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Content Export Finished' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.6ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Content Export Finished', 'No Subject', 'Migration', 0, '2024-08-27 17:24:05.824297', '2024-08-27 17:24:05.824297') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Content Export Failed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.7ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Content Export Failed' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.7ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Content Export Failed', 'No Subject', 'Migration', 0, '2024-08-27 17:24:05.833293', '2024-08-27 17:24:05.833293') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (1.4ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Account User' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.1ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'New Account User' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.8ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('New Account User', 'No Subject', 'Other', 0, '2024-08-27 17:24:05.843090', '2024-08-27 17:24:05.843090') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Course' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.4ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'New Course' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.8ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('New Course', 'No Subject', 'Other', 0, '2024-08-27 17:24:05.852217', '2024-08-27 17:24:05.852217') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Report Generated' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.1ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Report Generated' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.6ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Report Generated', 'No Subject', 'Other', 0, '2024-08-27 17:24:05.861163', '2024-08-27 17:24:05.861163') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (1.0ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Report Generation Failed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.5ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.4ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Report Generation Failed' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (1.0ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Report Generation Failed', 'No Subject', 'Other', 0, '2024-08-27 17:24:05.871958', '2024-08-27 17:24:05.871958') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New User' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.5ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.4ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'New User' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.7ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('New User', 'No Subject', 'Other', 0, '2024-08-27 17:24:05.882172', '2024-08-27 17:24:05.882172') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Student Organized Group' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'New Student Organized Group' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.7ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('New Student Organized Group', 'No Subject', 'Other', 0, '2024-08-27 17:24:05.891007', '2024-08-27 17:24:05.891007') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Enrollment Accepted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Enrollment Accepted' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.7ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Enrollment Accepted', 'No Subject', 'Other', 0, '2024-08-27 17:24:05.899047', '2024-08-27 17:24:05.899047') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Web Conference Recording Ready' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Web Conference Recording Ready' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.6ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Web Conference Recording Ready', 'No Subject', 'Recording Ready', 0, '2024-08-27 17:24:05.906498', '2024-08-27 17:24:05.906498') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.6ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Confirm Email Communication Channel' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Confirm Email Communication Channel' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.6ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Confirm Email Communication Channel', 'No Subject', 'Registration', 0, '2024-08-27 17:24:05.914512', '2024-08-27 17:24:05.914512') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Merge Email Communication Channel' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.4ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Merge Email Communication Channel' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.7ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Merge Email Communication Channel', 'No Subject', 'Registration', 0, '2024-08-27 17:24:05.923139', '2024-08-27 17:24:05.923139') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Confirm SMS Communication Channel' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.1ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Confirm SMS Communication Channel' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.7ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Confirm SMS Communication Channel', 'No Subject', 'Registration', 0, '2024-08-27 17:24:05.931424', '2024-08-27 17:24:05.931424') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Pseudonym Registration' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Pseudonym Registration' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.6ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Pseudonym Registration', 'No Subject', 'Registration', 0, '2024-08-27 17:24:05.940020', '2024-08-27 17:24:05.940020') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.6ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Pseudonym Registration Done' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Pseudonym Registration Done' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.6ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Pseudonym Registration Done', 'No Subject', 'Registration', 0, '2024-08-27 17:24:05.948281', '2024-08-27 17:24:05.948281') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Confirm Registration' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.3ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Confirm Registration' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (1.3ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Confirm Registration', 'No Subject', 'Registration', 0, '2024-08-27 17:24:05.957641', '2024-08-27 17:24:05.957641') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Forgot Password' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.5ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.4ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Forgot Password' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.8ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Forgot Password', 'No Subject', 'Registration', 0, '2024-08-27 17:24:05.970389', '2024-08-27 17:24:05.970389') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (1.0ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.9ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Account User Registration' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Account User Registration' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.5ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Account User Registration', 'No Subject', 'Registration', 0, '2024-08-27 17:24:05.980879', '2024-08-27 17:24:05.980879') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.6ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Account User Notification' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Account User Notification' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.5ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Account User Notification', 'No Subject', 'Registration', 0, '2024-08-27 17:24:05.987792', '2024-08-27 17:24:05.987792') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Enrollment Invitation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Enrollment Invitation' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.6ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Enrollment Invitation', 'No Subject', 'Registration', 0, '2024-08-27 17:24:05.995364', '2024-08-27 17:24:05.995364') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Enrollment Registration' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Enrollment Registration' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.5ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Enrollment Registration', 'No Subject', 'Registration', 0, '2024-08-27 17:24:06.003004', '2024-08-27 17:24:06.003004') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Enrollment Notification' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Enrollment Notification' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.5ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Enrollment Notification', 'No Subject', 'Registration', 0, '2024-08-27 17:24:06.009856', '2024-08-27 17:24:06.009856') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Manually Created Access Token Created' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.8ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Manually Created Access Token Created' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.5ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Manually Created Access Token Created', 'No Subject', 'Registration', 0, '2024-08-27 17:24:06.016618', '2024-08-27 17:24:06.016618') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.6ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.8ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Account Verification' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Update (4.2ms)[0m [1m[33mUPDATE "public"."notifications" SET "updated_at" = '2024-08-27 17:24:06.021806', "priority" = FALSE WHERE "notifications"."id" = 2[0m [- -] [1m[36mSQL TRANSACTION (0.9ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.8ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Canceled By User' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Canceled By User' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.6ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Appointment Canceled By User', 'No Subject', 'Student Appointment Signups', 0, '2024-08-27 17:24:06.034197', '2024-08-27 17:24:06.034197') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Reserved By User' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.1ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Reserved By User' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.7ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Appointment Reserved By User', 'No Subject', 'Student Appointment Signups', 0, '2024-08-27 17:24:06.042881', '2024-08-27 17:24:06.042881') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (3.7ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (1.1ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Comment' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.5ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.5ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Comment' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.8ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Submission Comment', 'No Subject', 'Submission Comment', 0, '2024-08-27 17:24:06.056883', '2024-08-27 17:24:06.056883') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.9ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.9ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Comment For Teacher' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.5ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.5ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Comment For Teacher' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.8ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Submission Comment For Teacher', 'No Subject', 'Submission Comment', 0, '2024-08-27 17:24:06.067505', '2024-08-27 17:24:06.067505') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.9ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Annotation Notification' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.5ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.5ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Annotation Notification' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.7ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Annotation Notification', 'No Subject', 'Submission Comment', 0, '2024-08-27 17:24:06.079350', '2024-08-27 17:24:06.079350') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Annotation Teacher Notification' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.2ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Annotation Teacher Notification' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.5ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Annotation Teacher Notification', 'No Subject', 'Submission Comment', 0, '2024-08-27 17:24:06.089516', '2024-08-27 17:24:06.089516') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.9ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Summaries' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL TRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m [- -] [1m[36mSQL Notification Exists? (1.0ms)[0m [1m[34mSELECT 1 AS one FROM "public"."notifications" WHERE "notifications"."name" = 'Summaries' LIMIT 1[0m [- -] [1m[36mSQL Notification Create (0.6ms)[0m [1m[32mINSERT INTO "public"."notifications" ("name", "subject", "category", "delay_for", "created_at", "updated_at") VALUES ('Summaries', 'No Subject', 'Summaries', 0, '2024-08-27 17:24:06.098990', '2024-08-27 17:24:06.098990') RETURNING "id"[0m [- -] [1m[36mSQL TRANSACTION (0.8ms)[0m [1m[35mCOMMIT[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = '2fa' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = '2fa' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Account Notification' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.8ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Account Notification' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Account User Notification' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Account User Notification' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.8ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Account User Registration' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Account User Registration' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Account Verification' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Account Verification' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.8ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Added To Conversation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Added To Conversation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Added To Conversation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.9ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Added To Conversation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.8ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Added To Conversation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Alert' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Alert' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Alert' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Alert' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Alert' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Annotation Notification' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Annotation Notification' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Annotation Notification' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Annotation Teacher Notification' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Annotation Teacher Notification' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Annotation Teacher Notification' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Announcement Created By You' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Announcement Created By You' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Announcement Created By You' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Announcement Created By You' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Announcement Created By You' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Announcement Reply' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Announcement Reply' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Announcement Reply' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Announcement Reply' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Announcement Reply' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Canceled By User' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Canceled By User' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Canceled By User' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Canceled By User' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Deleted For User' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Deleted For User' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Deleted For User' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Deleted For User' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Group Deleted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Group Deleted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Group Deleted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Group Deleted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Group Published' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Group Published' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Group Published' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Group Published' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Group Published' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Group Updated' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Group Updated' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Group Updated' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Group Updated' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Group Updated' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.8ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Reserved By User' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Reserved By User' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Reserved By User' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Reserved By User' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Reserved For User' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Reserved For User' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Reserved For User' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Reserved For User' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Appointment Reserved For User' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Created' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Created' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Created' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Created' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Created' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Due Date Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Due Date Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Due Date Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Due Date Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Due Date Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Due Date Override Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Due Date Override Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Due Date Override Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Due Date Override Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Due Date Override Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Graded' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Graded' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Graded' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Graded' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Graded' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Resubmitted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Resubmitted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Resubmitted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Resubmitted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Resubmitted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Submitted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Submitted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Submitted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Submitted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Submitted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Submitted Late' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Submitted Late' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Submitted Late' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Submitted Late' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Assignment Submitted Late' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Blueprint Content Added' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Blueprint Content Added' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Blueprint Content Added' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Blueprint Content Added' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Blueprint Content Added' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Blueprint Sync Complete' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Blueprint Sync Complete' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Blueprint Sync Complete' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Blueprint Sync Complete' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Blueprint Sync Complete' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Checkpoints Created' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Checkpoints Created' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Collaboration Invitation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Collaboration Invitation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Collaboration Invitation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Collaboration Invitation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Collaboration Invitation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Confirm Email Communication Channel' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Confirm Email Communication Channel' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Confirm Registration' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Confirm Registration' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Confirm SMS Communication Channel' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Content Export Failed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Content Export Failed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Content Export Finished' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Content Export Finished' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Content Link Error' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Content Link Error' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Content Link Error' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Content Link Error' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Content Link Error' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Conversation Created' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Conversation Created' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Conversation Created' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Conversation Created' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Conversation Created' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Conversation Message' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Conversation Message' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Conversation Message' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Conversation Message' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Conversation Message' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Discussion Mention' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Discussion Mention' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Discussion Mention' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Discussion Mention' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Discussion Mention' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Enrollment Accepted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Enrollment Accepted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Enrollment Accepted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Enrollment Accepted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.8ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Enrollment Accepted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.8ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Enrollment Invitation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Enrollment Invitation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Enrollment Invitation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Enrollment Invitation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Enrollment Invitation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Enrollment Notification' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Enrollment Notification' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Enrollment Notification' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Enrollment Notification' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Enrollment Notification' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Enrollment Registration' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Enrollment Registration' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Enrollment Registration' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Enrollment Registration' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Enrollment Registration' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Event Date Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Event Date Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Event Date Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Event Date Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Event Date Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Forgot Password' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Forgot Password' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Grade Weight Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Grade Weight Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.3ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Grade Weight Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Grade Weight Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Grade Weight Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Group Assignment Submitted Late' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Group Assignment Submitted Late' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Group Assignment Submitted Late' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Group Assignment Submitted Late' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Group Assignment Submitted Late' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Group Membership Accepted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Group Membership Accepted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Group Membership Accepted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Group Membership Accepted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Group Membership Accepted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Group Membership Rejected' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Group Membership Rejected' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Group Membership Rejected' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Group Membership Rejected' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Group Membership Rejected' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Manually Created Access Token Created' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Manually Created Access Token Created' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Manually Created Access Token Created' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Manually Created Access Token Created' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Manually Created Access Token Created' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Merge Email Communication Channel' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Merge Email Communication Channel' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Account User' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Account User' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Account User' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Account User' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Account User' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Announcement' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Announcement' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Announcement' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Announcement' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Announcement' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Context Group Membership' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Context Group Membership' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Context Group Membership' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Context Group Membership' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Context Group Membership' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Context Group Membership Invitation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Context Group Membership Invitation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Context Group Membership Invitation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Context Group Membership Invitation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Context Group Membership Invitation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Course' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Course' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Course' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Course' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Course' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Discussion Entry' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Discussion Entry' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Discussion Entry' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Discussion Entry' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Discussion Entry' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Discussion Topic' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Discussion Topic' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Discussion Topic' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Discussion Topic' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Discussion Topic' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Event Created' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Event Created' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Event Created' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Event Created' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Event Created' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New File Added' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New File Added' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New File Added' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New File Added' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New File Added' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Files Added' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Files Added' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Files Added' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Files Added' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Files Added' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Student Organized Group' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Student Organized Group' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Student Organized Group' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Student Organized Group' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New Student Organized Group' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New User' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New User' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New User' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New User' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'New User' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Peer Review Invitation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Peer Review Invitation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Peer Review Invitation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Peer Review Invitation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Peer Review Invitation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Pseudonym Registration' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Pseudonym Registration' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Pseudonym Registration' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Pseudonym Registration' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Pseudonym Registration' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Pseudonym Registration Done' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Pseudonym Registration Done' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Pseudonym Registration Done' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Pseudonym Registration Done' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Pseudonym Registration Done' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Quiz Regrade Finished' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Quiz Regrade Finished' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Quiz Regrade Finished' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Quiz Regrade Finished' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Quiz Regrade Finished' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Report Generated' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Report Generated' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Report Generation Failed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Report Generation Failed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Reported Reply' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Reported Reply' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Reported Reply' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Rubric Assessment Submission Reminder' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Rubric Assessment Submission Reminder' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Rubric Assessment Submission Reminder' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Rubric Assessment Submission Reminder' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Rubric Assessment Submission Reminder' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Rubric Association Created' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Rubric Association Created' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Rubric Association Created' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Rubric Association Created' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Rubric Association Created' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Comment' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Comment' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Comment' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Comment' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Comment' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Comment For Teacher' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Comment For Teacher' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Comment For Teacher' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Comment For Teacher' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Comment For Teacher' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Grade Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Grade Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Grade Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Grade Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Grade Changed' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Graded' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Graded' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Graded' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Graded' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Graded' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Needs Grading' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Needs Grading' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Needs Grading' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Needs Grading' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Needs Grading' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Posted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Posted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Posted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submission Posted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submissions Posted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submissions Posted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submissions Posted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Submissions Posted' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Summaries' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Summaries' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Summaries' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Summaries' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Upcoming Assignment Alert' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Upcoming Assignment Alert' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Upcoming Assignment Alert' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Updated Wiki Page' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Updated Wiki Page' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Updated Wiki Page' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Updated Wiki Page' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Updated Wiki Page' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.6ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Web Conference Invitation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Web Conference Invitation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Web Conference Invitation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.8ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Web Conference Invitation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.7ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Web Conference Invitation' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Web Conference Recording Ready' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Web Conference Recording Ready' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Web Conference Recording Ready' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Web Conference Recording Ready' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.4ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications" WHERE "notifications"."name" = 'Web Conference Recording Ready' ORDER BY "notifications"."id" ASC LIMIT 1[0m [- -] [1m[36mSQL Notification Load (0.5ms)[0m [1m[34mSELECT "notifications".* FROM "public"."notifications"[0m [- -] [Sentry::SessionFlusher] thread killed [- -] Shutting down background worker [- -] Reading app-canvas/data/secrets from vault [- -] [1m[35m (48.4ms)[0m [1m[34mSELECT * FROM unnest(current_schemas(false))[0m [- -] [1m[36mSwitchman::Shard Load (2.8ms)[0m [1m[34mSELECT "switchman_shards".* FROM "public"."switchman_shards" WHERE "switchman_shards"."default" = TRUE LIMIT 1[0m [- -] [1m[36mSQL (1.0ms)[0m [1m[34mSELECT * FROM unnest(current_schemas(false))[0m [production:1 primary] [- -] [1m[36mSQL Setting Pluck (1.0ms)[0m [1m[34mSELECT "settings"."name", "settings"."value" FROM "public"."settings"[0m [production:1 primary] [- -] [1m[36mSQL Setting Load (1.5ms)[0m [1m[34mSELECT "settings".* FROM "public"."settings" WHERE "settings"."name" = 'session_secret_key' ORDER BY "settings"."id" ASC LIMIT 1[0m [production:1 primary] [- -] [1m[36mSQL TRANSACTION (0.5ms)[0m [1m[35mBEGIN[0m [production:1 primary] [- -] [1m[36mSQL Setting Create (1.8ms)[0m [1m[32mINSERT INTO "public"."settings" ("name", "value", "created_at", "updated_at") VALUES ('session_secret_key', '81aaf7b006e6cc9c2c8dad9e928ec5d6209d6e4fa7dd92c38e9ab46c5cafa161bce57a3c4e3e12a0f37b267216b27c30f58136eca8a19b70f5229a5d199dd6d2', '2024-08-27 17:25:11.325859', '2024-08-27 17:25:11.325859') RETURNING "id"[0m [production:1 primary] [- -] [1m[36mSQL TRANSACTION (0.9ms)[0m [1m[35mCOMMIT[0m [production:1 primary] [- -] [1m[36mSQL Setting Pluck (0.9ms)[0m [1m[34mSELECT "settings"."name", "settings"."value" FROM "public"."settings"[0m [production:1 primary] [- -] [1m[36mSQL Setting Load (0.8ms)[0m [1m[34mSELECT "settings".* FROM "public"."settings" WHERE "settings"."name" = 'encryption_key_hash' ORDER BY "settings"."id" ASC LIMIT 1[0m [production:1 primary] [- -] [1m[36mSQL TRANSACTION (0.4ms)[0m [1m[35mBEGIN[0m [production:1 primary] [- -] [1m[36mSQL Setting Create (1.6ms)[0m [1m[32mINSERT INTO "public"."settings" ("name", "value", "created_at", "updated_at") VALUES ('encryption_key_hash', '411a487f3ae223c06de1e8c275f4fbc0091705f7', '2024-08-27 17:25:12.522350', '2024-08-27 17:25:12.522350') RETURNING "id"[0m [production:1 primary] [- -] [1m[36mSQL TRANSACTION (0.9ms)[0m [1m[35mCOMMIT[0m [production:1 primary] [- -] [1m[36mSQL Setting Pluck (0.7ms)[0m [1m[34mSELECT "settings"."name", "settings"."value" FROM "public"."settings"[0m [production:1 primary] [- -] Initializing the Sentry background worker with 5 threads [- -] [1m[36mSQL Switchman::Shard Exists? (1.5ms)[0m [1m[34mSELECT 1 AS one FROM "public"."switchman_shards" WHERE "switchman_shards"."id" IN (SELECT DISTINCT "switchman_shards"."delayed_jobs_shard_id" FROM "public"."switchman_shards" WHERE "switchman_shards"."delayed_jobs_shard_id" IS NOT NULL) LIMIT 1[0m [production:1 primary] [- -] [1m[36mSQL Switchman::Shard Load (0.7ms)[0m [1m[34mSELECT "switchman_shards".* FROM "public"."switchman_shards" WHERE "switchman_shards"."id" = 1[0m [production:1 primary] [- -] [Sentry::SessionFlusher] thread killed [- -] Shutting down background worker [- -] [Sentry::SessionFlusher] thread killed [- -] Shutting down background worker [- -] [Sentry::SessionFlusher] thread killed [- -] Shutting down background worker [- -] [Sentry::SessionFlusher] thread killed [- -] Shutting down background worker [- -] [Sentry::SessionFlusher] thread killed [- -] Shutting down background worker [- -] [1m[36mSQL Switchman::Shard Load (73.2ms)[0m [1m[34mSELECT "switchman_shards".* FROM "public"."switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id[0m [production:1 deploy] [- -] [1m[36mSQL BrandConfig Delete All (11.2ms)[0m [1m[31mDELETE FROM "public"."brand_configs" WHERE "brand_configs"."created_at" < '2024-08-20 17:31:34.659593' AND NOT (EXISTS (SELECT "accounts".* FROM "public"."accounts" WHERE (brand_config_md5=brand_configs.md5))) AND NOT (EXISTS (SELECT "shared_brand_configs".* FROM "public"."shared_brand_configs" WHERE (brand_config_md5=brand_configs.md5)))[0m [production:1 deploy] [- -] [1m[36mSQL (1.9ms)[0m [1m[34mSELECT pg_is_in_recovery()[0m [production:1 deploy] [- -] saving brand variables json file: public/dist/brandable_css/a1f113321fa024e7a14cb0948597a2a4/variables-7dd4b80918af0e0218ec0229e4bd5873.json [- -] saving brand variables js file: public/dist/brandable_css/a1f113321fa024e7a14cb0948597a2a4/variables-7dd4b80918af0e0218ec0229e4bd5873.js [- -] saving brand variables css file: public/dist/brandable_css/a1f113321fa024e7a14cb0948597a2a4/variables-7dd4b80918af0e0218ec0229e4bd5873.css [- -] saving brand variables json file: public/dist/brandable_css/3f38c01c65835e7de842d709a89ec3e8/variables-7dd4b80918af0e0218ec0229e4bd5873.json [- -] saving brand variables js file: public/dist/brandable_css/3f38c01c65835e7de842d709a89ec3e8/variables-7dd4b80918af0e0218ec0229e4bd5873.js [- -] saving brand variables css file: public/dist/brandable_css/3f38c01c65835e7de842d709a89ec3e8/variables-7dd4b80918af0e0218ec0229e4bd5873.css [- -] saving brand variables json file: public/dist/brandable_css/7845907c6e76db998e5f24d63aca97b5/variables-7dd4b80918af0e0218ec0229e4bd5873.json [- -] saving brand variables js file: public/dist/brandable_css/7845907c6e76db998e5f24d63aca97b5/variables-7dd4b80918af0e0218ec0229e4bd5873.js [- -] saving brand variables css file: public/dist/brandable_css/7845907c6e76db998e5f24d63aca97b5/variables-7dd4b80918af0e0218ec0229e4bd5873.css [- -] [1m[36mSQL BrandConfig Load (127.3ms)[0m [1m[35mCOPY (SELECT "brand_configs".* FROM "public"."brand_configs") TO STDOUT[0m [production:1 deploy] [- -] [Sentry::SessionFlusher] thread killed [- -] Shutting down background worker [- -] [Sentry::SessionFlusher] thread killed [- -] Shutting down background worker [- -] [Sentry::SessionFlusher] thread killed [- -] Shutting down background worker [- -] [Sentry::SessionFlusher] thread killed [- -] Shutting down background worker [- -] [Sentry::SessionFlusher] thread killed [- -] Shutting down background worker