canvas_sync 0.3.18 → 0.3.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/canvas_sync/generators/templates/models/create_assignment_groups.rb +0 -2
- data/lib/canvas_sync/processors/model_mappings.yml +0 -6
- data/lib/canvas_sync/processors/provisioning_report_processor.rb +1 -1
- data/lib/canvas_sync/version.rb +1 -1
- data/spec/dummy/app/models/account.rb +0 -13
- data/spec/dummy/db/migrate/{20180215220605_create_assignment_groups.rb → 20180222163506_create_assignment_groups.rb} +0 -2
- data/spec/dummy/db/schema.rb +1 -3
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +1060 -794
- data/spec/dummy/log/test.log +38324 -13438
- data/spec/support/fixtures/reports/assignment_groups.csv +3 -3
- metadata +5 -7
- data/spec/dummy/db/development.sqlite3 +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 79cd93f7cc93449303e5429c85d0c870581494d6
|
4
|
+
data.tar.gz: 6da4f809084ca000ea0e0ae88677181946c72a80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92a89e72c5e83c8206cb2a6eb88dcb97bdabf7eef7182e786ec446d001c4b61c673f28710545160f945765a251b8071ad9f2cffd78d26c131e140e132e4451d9
|
7
|
+
data.tar.gz: bd9d6e00f13bb8e296d9ac8a0c803b74cd7a9a312b64d3546c4773e2cc6840fbb8ad67c12645e50e2742e9b52359b94493b8870166e629a9d191a9ffc2ea0d75
|
@@ -7,9 +7,7 @@ class CreateAssignmentGroups < ActiveRecord::Migration[5.1]
|
|
7
7
|
t.bigint :canvas_course_id
|
8
8
|
t.string :name
|
9
9
|
t.text :rules
|
10
|
-
t.string :default_assignment_name
|
11
10
|
t.integer :position
|
12
|
-
t.text :assignment_weighting_scheme
|
13
11
|
t.float :group_weight
|
14
12
|
t.string :workflow_state
|
15
13
|
t.datetime :canvas_created_at
|
@@ -258,15 +258,9 @@ assignment_groups:
|
|
258
258
|
rules:
|
259
259
|
database_column_name: :rules
|
260
260
|
type: string
|
261
|
-
default_assignment_name:
|
262
|
-
database_column_name: :default_assignment_name
|
263
|
-
type: string
|
264
261
|
position:
|
265
262
|
database_column_name: :position
|
266
263
|
type: integer
|
267
|
-
assignment_weighting_scheme:
|
268
|
-
database_column_name: :assignment_weighting_scheme
|
269
|
-
type: string
|
270
264
|
group_weight:
|
271
265
|
database_column_name: :group_weight
|
272
266
|
type: string
|
data/lib/canvas_sync/version.rb
CHANGED
@@ -8,17 +8,4 @@
|
|
8
8
|
|
9
9
|
class Account < ApplicationRecord
|
10
10
|
validates :canvas_account_id, uniqueness: true, presence: true
|
11
|
-
|
12
|
-
def self.create_or_update(account_params)
|
13
|
-
account = Account.find_or_initialize_by(canvas_account_id: account_params['id'])
|
14
|
-
|
15
|
-
account.assign_attributes(account_id: account_params['account_id'],
|
16
|
-
canvas_parent_id: account_params['canvas_parent_id'],
|
17
|
-
parent_account_id: account_params['parent_account_id'],
|
18
|
-
name: account_params['name'],
|
19
|
-
status: account_params['status'])
|
20
|
-
|
21
|
-
account.save! if account.changed?
|
22
|
-
account
|
23
|
-
end
|
24
11
|
end
|
@@ -13,9 +13,7 @@ class CreateAssignmentGroups < ActiveRecord::Migration[5.1]
|
|
13
13
|
t.bigint :canvas_course_id
|
14
14
|
t.string :name
|
15
15
|
t.text :rules
|
16
|
-
t.string :default_assignment_name
|
17
16
|
t.integer :position
|
18
|
-
t.text :assignment_weighting_scheme
|
19
17
|
t.float :group_weight
|
20
18
|
t.string :workflow_state
|
21
19
|
t.datetime :canvas_created_at
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
#
|
11
11
|
# It's strongly recommended that you check this file into your version control system.
|
12
12
|
|
13
|
-
ActiveRecord::Schema.define(version:
|
13
|
+
ActiveRecord::Schema.define(version: 20180222163506) do
|
14
14
|
|
15
15
|
# These are extensions that must be enabled in order to support this database
|
16
16
|
enable_extension "plpgsql"
|
@@ -44,9 +44,7 @@ ActiveRecord::Schema.define(version: 20180220172559) do
|
|
44
44
|
t.bigint "canvas_course_id"
|
45
45
|
t.string "name"
|
46
46
|
t.text "rules"
|
47
|
-
t.string "default_assignment_name"
|
48
47
|
t.integer "position"
|
49
|
-
t.text "assignment_weighting_scheme"
|
50
48
|
t.float "group_weight"
|
51
49
|
t.string "workflow_state"
|
52
50
|
t.datetime "canvas_created_at"
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -1,982 +1,1248 @@
|
|
1
|
-
[1m[35m (
|
2
|
-
[1m[35m (
|
3
|
-
[1m[35m (
|
4
|
-
[1m[35m (
|
1
|
+
[1m[35m (16.7ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
2
|
+
[1m[35m (19.8ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
4
|
+
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
5
5
|
Migrating to CreateEnrollments (20170905192509)
|
6
|
-
[1m[35m (0.
|
7
|
-
[1m[35m (
|
8
|
-
[1m[35m (
|
9
|
-
[1m[35m (
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
SELECT sql
|
14
|
-
FROM sqlite_temp_master
|
15
|
-
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
16
|
-
[0m
|
17
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
18
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
19
|
-
FROM sqlite_master
|
20
|
-
WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
|
21
|
-
UNION ALL
|
22
|
-
SELECT sql
|
23
|
-
FROM sqlite_temp_master
|
24
|
-
WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
|
25
|
-
[0m
|
26
|
-
[1m[35m (0.0ms)[0m [1m[34m SELECT sql
|
27
|
-
FROM sqlite_master
|
28
|
-
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
29
|
-
UNION ALL
|
30
|
-
SELECT sql
|
31
|
-
FROM sqlite_temp_master
|
32
|
-
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
33
|
-
[0m
|
34
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
35
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170905192509"]]
|
36
|
-
[1m[35m (0.9ms)[0m [1m[36mcommit transaction[0m
|
6
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
7
|
+
[1m[35m (25.6ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" bigserial primary key, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" character varying, "canvas_user_id" bigint, "user_sis_id" character varying, "role" character varying, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" character varying, "status" character varying, "base_role_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
8
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
9
|
+
[1m[35m (4.2ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
10
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
11
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
12
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
37
13
|
Migrating to CreateTerms (20170906193506)
|
38
|
-
[1m[35m (0.
|
39
|
-
[1m[35m (
|
40
|
-
[1m[35m (
|
41
|
-
[1m[35mSQL (0.
|
42
|
-
[1m[35m (
|
43
|
-
Migrating to CreateSections (20170906203438)
|
44
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
45
|
-
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_section_id" bigint NOT NULL, "sis_id" varchar, "canvas_course_id" bigint, "name" varchar, "status" varchar, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
46
|
-
[1m[35m (0.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
47
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
48
|
-
FROM sqlite_master
|
49
|
-
WHERE name='index_sections_on_canvas_section_id' AND type='index'
|
50
|
-
UNION ALL
|
51
|
-
SELECT sql
|
52
|
-
FROM sqlite_temp_master
|
53
|
-
WHERE name='index_sections_on_canvas_section_id' AND type='index'
|
54
|
-
[0m
|
55
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
56
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170906203438"]]
|
57
|
-
[1m[35m (1.2ms)[0m [1m[36mcommit transaction[0m
|
14
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
15
|
+
[1m[35m (4.3ms)[0m [1m[35mCREATE TABLE "terms" ("id" bigserial primary key, "canvas_term_id" integer NOT NULL, "name" character varying, "start_at" timestamp, "end_at" timestamp, "workflow_state" character varying, "grading_period_group_id" integer, "sis_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
16
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
17
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
18
|
+
[1m[35m (0.7ms)[0m [1m[35mCOMMIT[0m
|
58
19
|
Migrating to CreateCourses (20170914181345)
|
59
|
-
[1m[35m (0.
|
60
|
-
[1m[35m (
|
61
|
-
[1m[35m (
|
62
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (
|
63
|
-
[1m[35m (
|
20
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
21
|
+
[1m[35m (4.1ms)[0m [1m[35mCREATE TABLE "courses" ("id" bigserial primary key, "canvas_course_id" bigint NOT NULL, "sis_id" character varying, "short_name" character varying, "long_name" character varying, "status" character varying, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
22
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
23
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
24
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
25
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
26
|
+
[1m[35m (8.2ms)[0m [1m[35mBEGIN[0m
|
27
|
+
[1m[35m (41.4ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" bigserial primary key, "started_at" timestamp, "completed_at" timestamp, "exception" character varying, "backtrace" text, "job_class" character varying, "status" character varying, "metadata" text, "job_arguments" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
28
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
29
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
64
30
|
Migrating to CreateUsers (20170918221413)
|
65
|
-
[1m[35m (0.
|
66
|
-
[1m[35m (
|
67
|
-
[1m[35m (
|
68
|
-
[1m[35mSQL (0.
|
69
|
-
[1m[35m (1.
|
70
|
-
|
71
|
-
[1m[35m (0.
|
72
|
-
[1m[
|
73
|
-
[1m[35m (
|
74
|
-
[1m[35m (
|
75
|
-
[1m[
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
[0m
|
83
|
-
[1m[
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
[0m
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
[0m
|
99
|
-
[1m[35m (0.1ms)[0m [1m[
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
FROM sqlite_temp_master
|
105
|
-
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
106
|
-
[0m
|
107
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
108
|
-
FROM sqlite_master
|
109
|
-
WHERE name='index_sections_on_canvas_course_id' AND type='index'
|
110
|
-
UNION ALL
|
111
|
-
SELECT sql
|
112
|
-
FROM sqlite_temp_master
|
113
|
-
WHERE name='index_sections_on_canvas_course_id' AND type='index'
|
114
|
-
[0m
|
115
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
116
|
-
FROM sqlite_master
|
117
|
-
WHERE name='index_sections_on_canvas_section_id' AND type='index'
|
118
|
-
UNION ALL
|
119
|
-
SELECT sql
|
120
|
-
FROM sqlite_temp_master
|
121
|
-
WHERE name='index_sections_on_canvas_section_id' AND type='index'
|
122
|
-
[0m
|
123
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
124
|
-
FROM sqlite_master
|
125
|
-
WHERE name='index_terms_on_canvas_term_id' AND type='index'
|
126
|
-
UNION ALL
|
127
|
-
SELECT sql
|
128
|
-
FROM sqlite_temp_master
|
129
|
-
WHERE name='index_terms_on_canvas_term_id' AND type='index'
|
130
|
-
[0m
|
131
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
132
|
-
FROM sqlite_master
|
133
|
-
WHERE name='index_users_on_canvas_user_id' AND type='index'
|
134
|
-
UNION ALL
|
135
|
-
SELECT sql
|
136
|
-
FROM sqlite_temp_master
|
137
|
-
WHERE name='index_users_on_canvas_user_id' AND type='index'
|
138
|
-
[0m
|
139
|
-
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
140
|
-
[1m[35m (0.8ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
141
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
142
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
143
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
144
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
145
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
146
|
-
[1m[35m (4.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
147
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
31
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
32
|
+
[1m[35m (4.6ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_user_id" bigint NOT NULL, "sis_id" character varying, "email" character varying, "first_name" character varying, "last_name" character varying, "status" character varying, "login_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
33
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
34
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
35
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
36
|
+
Migrating to CreateSections (20171107213207)
|
37
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
38
|
+
[1m[35m (4.1ms)[0m [1m[35mCREATE TABLE "sections" ("id" bigserial primary key, "canvas_section_id" bigint NOT NULL, "sis_id" character varying, "canvas_course_id" bigint, "canvas_nonxlist_course_id" bigint, "name" character varying, "status" character varying, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
39
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
40
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
41
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
42
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
43
|
+
Migrating to CreateRoles (20180103162102)
|
44
|
+
[1m[35m (10.7ms)[0m [1m[35mBEGIN[0m
|
45
|
+
[1m[35m (16.2ms)[0m [1m[35mCREATE TABLE "roles" ("id" bigserial primary key, "canvas_role_id" integer NOT NULL, "label" character varying NOT NULL, "base_role_type" character varying NOT NULL, "account" json, "workflow_state" character varying NOT NULL, "permissions" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
46
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
47
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
48
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
49
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.9ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
50
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
51
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-01-03 16:29:37.282741"], ["updated_at", "2018-01-03 16:29:37.282741"]]
|
52
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
53
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
54
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
55
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
56
|
+
[1m[35m (11.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
57
|
+
Migrating to CreateAdmins (20180109210452)
|
58
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
59
|
+
[1m[35m (23.4ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_admin_id" bigint NOT NULL, "role" character varying, "canvas_role_id" bigint NOT NULL, "user" json, "canvas_user_id" bigint NOT NULL, "workflow_state" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
60
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
61
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
62
|
+
[1m[35m (1.7ms)[0m [1m[35mCOMMIT[0m
|
63
|
+
[1m[36mActiveRecord::InternalMetadata Load (2.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
64
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
65
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
66
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
67
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
68
|
+
[1m[35m (2.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
69
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
148
70
|
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
71
|
+
Migrating to CreateAdmins (20180109210452)
|
72
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
73
|
+
[1m[35m (3.1ms)[0m [1m[35mDROP INDEX "index_admins_on_canvas_admin_id"[0m
|
74
|
+
[1m[35m (3.3ms)[0m [1m[35mDROP TABLE "admins"[0m
|
75
|
+
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1[0m [["version", "20180109210452"]]
|
76
|
+
[1m[35m (6.0ms)[0m [1m[35mCOMMIT[0m
|
77
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
78
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
79
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
80
|
+
[1m[35m (0.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
81
|
+
Migrating to CreateAdmins (20180109210452)
|
82
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
83
|
+
[1m[35m (10.8ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_admin_id" bigint NOT NULL, "role" character varying, "canvas_role_id" bigint NOT NULL, "user" json, "canvas_user_id" bigint NOT NULL, "workflow_state" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
84
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
85
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
86
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
87
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.9ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
88
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
89
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
90
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
91
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
92
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
93
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
94
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
95
|
+
Migrating to CreateAdmins (20180109210452)
|
96
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97
|
+
[1m[35m (0.5ms)[0m [1m[35mDROP INDEX "index_admins_on_canvas_admin_id"[0m
|
98
|
+
[1m[35m (0.7ms)[0m [1m[35mDROP TABLE "admins"[0m
|
99
|
+
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1[0m [["version", "20180109210452"]]
|
100
|
+
[1m[35m (22.8ms)[0m [1m[35mCOMMIT[0m
|
101
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
102
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
103
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
104
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
105
|
+
Migrating to CreateAdmins (20180109210452)
|
106
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
107
|
+
[1m[35m (9.0ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_admin_id" bigint NOT NULL, "role_name" character varying, "canvas_role_id" bigint NOT NULL, "user_data" json, "canvas_user_id" bigint NOT NULL, "workflow_state" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
108
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
109
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
110
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
111
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
112
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
113
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
114
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
115
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
116
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
117
|
+
[1m[35m (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
118
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
119
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
120
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
121
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
122
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
123
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
124
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
125
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
126
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
127
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
128
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
129
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
130
|
+
[1m[35m (2.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
131
|
+
[1m[35m (8.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
132
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
133
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
134
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
135
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
136
|
+
[1m[35m (165.7ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
137
|
+
[1m[35m (127.0ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
138
|
+
[1m[35m (28.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
139
|
+
[1m[35m (5.9ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
140
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
141
|
+
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
149
142
|
Migrating to CreateEnrollments (20170905192509)
|
150
|
-
[1m[35m (0.1ms)[0m [1m[
|
151
|
-
[1m[35m (
|
152
|
-
[1m[35m (
|
153
|
-
[1m[35m (
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
SELECT sql
|
158
|
-
FROM sqlite_temp_master
|
159
|
-
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
160
|
-
[0m
|
161
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
162
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
163
|
-
FROM sqlite_master
|
164
|
-
WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
|
165
|
-
UNION ALL
|
166
|
-
SELECT sql
|
167
|
-
FROM sqlite_temp_master
|
168
|
-
WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
|
169
|
-
[0m
|
170
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
171
|
-
FROM sqlite_master
|
172
|
-
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
173
|
-
UNION ALL
|
174
|
-
SELECT sql
|
175
|
-
FROM sqlite_temp_master
|
176
|
-
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
177
|
-
[0m
|
178
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
179
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170905192509"]]
|
180
|
-
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
143
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
144
|
+
[1m[35m (5.3ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" bigserial primary key, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" character varying, "canvas_user_id" bigint, "user_sis_id" character varying, "role" character varying, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" character varying, "status" character varying, "base_role_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
145
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
146
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
147
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
148
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
149
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
181
150
|
Migrating to CreateTerms (20170906193506)
|
182
|
-
[1m[35m (0.
|
183
|
-
[1m[35m (
|
184
|
-
[1m[35m (
|
185
|
-
[1m[35mSQL (0.
|
186
|
-
[1m[35m (0.
|
187
|
-
Migrating to CreateSections (20170906203438)
|
188
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
189
|
-
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_section_id" bigint NOT NULL, "sis_id" varchar, "canvas_course_id" bigint, "name" varchar, "status" varchar, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
190
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
191
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
192
|
-
FROM sqlite_master
|
193
|
-
WHERE name='index_sections_on_canvas_section_id' AND type='index'
|
194
|
-
UNION ALL
|
195
|
-
SELECT sql
|
196
|
-
FROM sqlite_temp_master
|
197
|
-
WHERE name='index_sections_on_canvas_section_id' AND type='index'
|
198
|
-
[0m
|
199
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
200
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170906203438"]]
|
201
|
-
[1m[35m (1.3ms)[0m [1m[36mcommit transaction[0m
|
151
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
152
|
+
[1m[35m (3.9ms)[0m [1m[35mCREATE TABLE "terms" ("id" bigserial primary key, "canvas_term_id" integer NOT NULL, "name" character varying, "start_at" timestamp, "end_at" timestamp, "workflow_state" character varying, "grading_period_group_id" integer, "sis_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
153
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
154
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
155
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
202
156
|
Migrating to CreateCourses (20170914181345)
|
203
|
-
[1m[35m (0.1ms)[0m [1m[
|
204
|
-
[1m[35m (
|
205
|
-
[1m[35m (
|
206
|
-
[1m[35mSQL (0.
|
207
|
-
[1m[35m (
|
157
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
158
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE TABLE "courses" ("id" bigserial primary key, "canvas_course_id" bigint NOT NULL, "sis_id" character varying, "short_name" character varying, "long_name" character varying, "status" character varying, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
159
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
160
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
161
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
162
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
163
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
164
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" bigserial primary key, "started_at" timestamp, "completed_at" timestamp, "exception" character varying, "backtrace" text, "job_class" character varying, "status" character varying, "metadata" text, "job_arguments" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
165
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
166
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
208
167
|
Migrating to CreateUsers (20170918221413)
|
209
|
-
[1m[35m (0.
|
210
|
-
[1m[35m (
|
211
|
-
[1m[35m (
|
212
|
-
[1m[35mSQL (0.
|
213
|
-
[1m[35m (0.
|
214
|
-
|
215
|
-
[1m[35m (0.
|
216
|
-
[1m[
|
217
|
-
[1m[35m (
|
218
|
-
[1m[35m (
|
219
|
-
[1m[
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
[0m
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
[0m
|
235
|
-
[1m[35m (
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
[0m
|
243
|
-
[1m[35m (
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
[0m
|
251
|
-
[1m[
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
[0m
|
259
|
-
[1m[35m (0.
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
[0m
|
267
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
268
|
-
FROM sqlite_master
|
269
|
-
WHERE name='index_terms_on_canvas_term_id' AND type='index'
|
270
|
-
UNION ALL
|
271
|
-
SELECT sql
|
272
|
-
FROM sqlite_temp_master
|
273
|
-
WHERE name='index_terms_on_canvas_term_id' AND type='index'
|
274
|
-
[0m
|
275
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
276
|
-
FROM sqlite_master
|
277
|
-
WHERE name='index_users_on_canvas_user_id' AND type='index'
|
278
|
-
UNION ALL
|
279
|
-
SELECT sql
|
280
|
-
FROM sqlite_temp_master
|
281
|
-
WHERE name='index_users_on_canvas_user_id' AND type='index'
|
282
|
-
[0m
|
283
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
284
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
285
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
286
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
287
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
288
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
289
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
290
|
-
[1m[35m (6.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
291
|
-
[1m[35m (1.4ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
292
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
168
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
169
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_user_id" bigint NOT NULL, "sis_id" character varying, "email" character varying, "first_name" character varying, "last_name" character varying, "status" character varying, "login_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
170
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
171
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
172
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
173
|
+
Migrating to CreateSections (20171107213207)
|
174
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
175
|
+
[1m[35m (4.6ms)[0m [1m[35mCREATE TABLE "sections" ("id" bigserial primary key, "canvas_section_id" bigint NOT NULL, "sis_id" character varying, "canvas_course_id" bigint, "canvas_nonxlist_course_id" bigint, "name" character varying, "status" character varying, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
176
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
177
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
178
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
179
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
180
|
+
Migrating to CreateRoles (20180103162102)
|
181
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
182
|
+
[1m[35m (3.7ms)[0m [1m[35mCREATE TABLE "roles" ("id" bigserial primary key, "canvas_role_id" integer NOT NULL, "label" character varying NOT NULL, "base_role_type" character varying NOT NULL, "account" json, "workflow_state" character varying NOT NULL, "permissions" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
183
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
184
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
185
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
186
|
+
Migrating to CreateAdmins (20180109210452)
|
187
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
188
|
+
[1m[35m (3.7ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_admin_id" bigint NOT NULL, "role_name" character varying, "canvas_role_id" bigint NOT NULL, "user_data" json, "canvas_user_id" bigint NOT NULL, "workflow_state" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
189
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
190
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
191
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
192
|
+
Migrating to CreateAssignments (20180212204530)
|
193
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
194
|
+
[1m[35m (4.5ms)[0m [1m[35mCREATE TABLE "assignments" ("id" bigserial primary key, "canvas_assignment_id" bigint NOT NULL, "title" character varying, "description" text, "due_at" timestamp, "unlock_at" timestamp, "lock_at" timestamp, "points_possible" integer, "min_score" integer, "max_score" integer, "mastery_score" integer, "grading_type" character varying, "submission_types" character varying, "workflow_state" character varying, "context_id" integer, "context_type" character varying, "assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
195
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
196
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
197
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180212204530"]]
|
198
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
199
|
+
Migrating to CreateSubmissions (20180213232302)
|
200
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
201
|
+
[1m[35m (2.3ms)[0m [1m[35mCREATE TABLE "submissions" ("id" bigserial primary key, "canvas_submission_id" bigint NOT NULL, "canvas_course_id" bigint NOT NULL, "canvas_assignment_id" bigint NOT NULL, "canvas_user_id" bigint NOT NULL, "submission_date" timestamp, "graded_date" timestamp, "score" integer, "points_possible" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
202
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
203
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
204
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
205
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
206
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180213232302"]]
|
207
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
208
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
209
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
210
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-02-13 23:23:14.681205"], ["updated_at", "2018-02-13 23:23:14.681205"]]
|
211
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
212
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
213
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
214
|
+
[1m[35m (2.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
215
|
+
[1m[35m (15.9ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
216
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
217
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
218
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
219
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
220
|
+
[1m[35m (138.9ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
221
|
+
[1m[35m (126.9ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
222
|
+
[1m[35m (14.5ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
223
|
+
[1m[35m (4.4ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
224
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
225
|
+
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
293
226
|
Migrating to CreateEnrollments (20170905192509)
|
294
|
-
[1m[35m (0.
|
295
|
-
[1m[35m (
|
296
|
-
[1m[35m (
|
297
|
-
[1m[35m (
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
SELECT sql
|
302
|
-
FROM sqlite_temp_master
|
303
|
-
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
304
|
-
[0m
|
305
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
306
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
307
|
-
FROM sqlite_master
|
308
|
-
WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
|
309
|
-
UNION ALL
|
310
|
-
SELECT sql
|
311
|
-
FROM sqlite_temp_master
|
312
|
-
WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
|
313
|
-
[0m
|
314
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
315
|
-
FROM sqlite_master
|
316
|
-
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
317
|
-
UNION ALL
|
318
|
-
SELECT sql
|
319
|
-
FROM sqlite_temp_master
|
320
|
-
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
321
|
-
[0m
|
322
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
323
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170905192509"]]
|
324
|
-
[1m[35m (1.3ms)[0m [1m[36mcommit transaction[0m
|
227
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
228
|
+
[1m[35m (15.6ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" bigserial primary key, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" character varying, "canvas_user_id" bigint, "user_sis_id" character varying, "role" character varying, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" character varying, "status" character varying, "base_role_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
229
|
+
[1m[35m (5.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
230
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
231
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
232
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
233
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
325
234
|
Migrating to CreateTerms (20170906193506)
|
326
|
-
[1m[35m (0.
|
327
|
-
[1m[35m (
|
328
|
-
[1m[35m (
|
329
|
-
[1m[35mSQL (0.
|
330
|
-
[1m[35m (
|
331
|
-
Migrating to CreateSections (20170906203438)
|
332
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
333
|
-
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_section_id" bigint NOT NULL, "sis_id" varchar, "canvas_course_id" bigint, "name" varchar, "status" varchar, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
334
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
335
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
336
|
-
FROM sqlite_master
|
337
|
-
WHERE name='index_sections_on_canvas_section_id' AND type='index'
|
338
|
-
UNION ALL
|
339
|
-
SELECT sql
|
340
|
-
FROM sqlite_temp_master
|
341
|
-
WHERE name='index_sections_on_canvas_section_id' AND type='index'
|
342
|
-
[0m
|
343
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
344
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170906203438"]]
|
345
|
-
[1m[35m (1.3ms)[0m [1m[36mcommit transaction[0m
|
235
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
236
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE TABLE "terms" ("id" bigserial primary key, "canvas_term_id" integer NOT NULL, "name" character varying, "start_at" timestamp, "end_at" timestamp, "workflow_state" character varying, "grading_period_group_id" integer, "sis_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
237
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
238
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
239
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
346
240
|
Migrating to CreateCourses (20170914181345)
|
347
|
-
[1m[35m (0.
|
348
|
-
[1m[35m (
|
349
|
-
[1m[35m (
|
350
|
-
[1m[35mSQL (0.
|
351
|
-
[1m[35m (
|
241
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
242
|
+
[1m[35m (3.9ms)[0m [1m[35mCREATE TABLE "courses" ("id" bigserial primary key, "canvas_course_id" bigint NOT NULL, "sis_id" character varying, "short_name" character varying, "long_name" character varying, "status" character varying, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
243
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
244
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
245
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
352
246
|
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
353
|
-
[1m[35m (
|
354
|
-
[1m[35m (
|
355
|
-
[1m[35mSQL (0.
|
356
|
-
[1m[35m (
|
247
|
+
[1m[35m (6.1ms)[0m [1m[35mBEGIN[0m
|
248
|
+
[1m[35m (21.2ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" bigserial primary key, "started_at" timestamp, "completed_at" timestamp, "exception" character varying, "backtrace" text, "job_class" character varying, "status" character varying, "metadata" text, "job_arguments" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
249
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
250
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
357
251
|
Migrating to CreateUsers (20170918221413)
|
358
|
-
[1m[35m (0.
|
359
|
-
[1m[35m (
|
360
|
-
[1m[35m (
|
361
|
-
[1m[35mSQL (0.
|
362
|
-
[1m[35m (0.
|
363
|
-
|
364
|
-
[1m[35m (0.
|
365
|
-
[1m[
|
366
|
-
[1m[35m (
|
367
|
-
[1m[35m (
|
368
|
-
[1m[
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
[0m
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
[0m
|
384
|
-
[1m[35m (
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
[0m
|
392
|
-
[1m[35m (
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
[0m
|
400
|
-
[1m[
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
[0m
|
408
|
-
[1m[35m (0.
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
[0m
|
416
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
417
|
-
FROM sqlite_master
|
418
|
-
WHERE name='index_terms_on_canvas_term_id' AND type='index'
|
419
|
-
UNION ALL
|
420
|
-
SELECT sql
|
421
|
-
FROM sqlite_temp_master
|
422
|
-
WHERE name='index_terms_on_canvas_term_id' AND type='index'
|
423
|
-
[0m
|
424
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
425
|
-
FROM sqlite_master
|
426
|
-
WHERE name='index_users_on_canvas_user_id' AND type='index'
|
427
|
-
UNION ALL
|
428
|
-
SELECT sql
|
429
|
-
FROM sqlite_temp_master
|
430
|
-
WHERE name='index_users_on_canvas_user_id' AND type='index'
|
431
|
-
[0m
|
432
|
-
[1m[35m (1.8ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
433
|
-
[1m[35m (225.5ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
434
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
435
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
436
|
-
[1m[35m (25.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
437
|
-
[1m[35m (4.8ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
438
|
-
[1m[35m (0.7ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
252
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
253
|
+
[1m[35m (5.1ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_user_id" bigint NOT NULL, "sis_id" character varying, "email" character varying, "first_name" character varying, "last_name" character varying, "status" character varying, "login_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
254
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
255
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
256
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
257
|
+
Migrating to CreateSections (20171107213207)
|
258
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
259
|
+
[1m[35m (3.9ms)[0m [1m[35mCREATE TABLE "sections" ("id" bigserial primary key, "canvas_section_id" bigint NOT NULL, "sis_id" character varying, "canvas_course_id" bigint, "canvas_nonxlist_course_id" bigint, "name" character varying, "status" character varying, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
260
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
261
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
262
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
263
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
264
|
+
Migrating to CreateRoles (20180103162102)
|
265
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
266
|
+
[1m[35m (4.1ms)[0m [1m[35mCREATE TABLE "roles" ("id" bigserial primary key, "canvas_role_id" integer NOT NULL, "label" character varying NOT NULL, "base_role_type" character varying NOT NULL, "account" json, "workflow_state" character varying NOT NULL, "permissions" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
267
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
268
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
269
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
270
|
+
Migrating to CreateAdmins (20180109210452)
|
271
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
272
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_admin_id" bigint NOT NULL, "role_name" character varying, "canvas_role_id" bigint NOT NULL, "user_data" json, "canvas_user_id" bigint NOT NULL, "workflow_state" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
273
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
274
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
275
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
276
|
+
Migrating to CreateAssignments (20180212204530)
|
277
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
278
|
+
[1m[35m (4.3ms)[0m [1m[35mCREATE TABLE "assignments" ("id" bigserial primary key, "canvas_assignment_id" bigint NOT NULL, "title" character varying, "description" text, "due_at" timestamp, "unlock_at" timestamp, "lock_at" timestamp, "points_possible" integer, "min_score" integer, "max_score" integer, "mastery_score" integer, "grading_type" character varying, "submission_types" character varying, "workflow_state" character varying, "context_id" integer, "context_type" character varying, "assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
279
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
280
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
281
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180212204530"]]
|
282
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
283
|
+
Migrating to CreateSubmissions (20180213234230)
|
284
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
285
|
+
[1m[35m (2.6ms)[0m [1m[35mCREATE TABLE "submissions" ("id" bigserial primary key, "canvas_submission_id" bigint NOT NULL, "canvas_course_id" bigint NOT NULL, "canvas_assignment_id" bigint NOT NULL, "canvas_user_id" bigint NOT NULL, "submitted_at" timestamp, "graded_at" timestamp, "score" integer, "points_possible" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
286
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
287
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
288
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
289
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
290
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180213234230"]]
|
291
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
292
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
293
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
294
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-02-13 23:42:42.931090"], ["updated_at", "2018-02-13 23:42:42.931090"]]
|
295
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
296
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
297
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
298
|
+
[1m[35m (2.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
299
|
+
[1m[35m (0.9ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
300
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
301
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
302
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
303
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
304
|
+
[1m[35m (140.2ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
305
|
+
[1m[35m (126.8ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
306
|
+
[1m[35m (19.4ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
307
|
+
[1m[35m (4.6ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
308
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
439
309
|
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
440
310
|
Migrating to CreateEnrollments (20170905192509)
|
441
311
|
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
442
|
-
[1m[35m (
|
443
|
-
[1m[35m (
|
444
|
-
[1m[35m (
|
445
|
-
[1m[35m (
|
446
|
-
[1m[35mSQL (0.
|
447
|
-
[1m[35m (
|
312
|
+
[1m[35m (16.7ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" bigserial primary key, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" character varying, "canvas_user_id" bigint, "user_sis_id" character varying, "role" character varying, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" character varying, "status" character varying, "base_role_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
313
|
+
[1m[35m (4.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
314
|
+
[1m[35m (7.3ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
315
|
+
[1m[35m (7.6ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
316
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
317
|
+
[1m[35m (5.9ms)[0m [1m[35mCOMMIT[0m
|
448
318
|
Migrating to CreateTerms (20170906193506)
|
319
|
+
[1m[35m (9.7ms)[0m [1m[35mBEGIN[0m
|
320
|
+
[1m[35m (5.6ms)[0m [1m[35mCREATE TABLE "terms" ("id" bigserial primary key, "canvas_term_id" integer NOT NULL, "name" character varying, "start_at" timestamp, "end_at" timestamp, "workflow_state" character varying, "grading_period_group_id" integer, "sis_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
321
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
322
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
323
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
324
|
+
Migrating to CreateCourses (20170914181345)
|
325
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
326
|
+
[1m[35m (4.1ms)[0m [1m[35mCREATE TABLE "courses" ("id" bigserial primary key, "canvas_course_id" bigint NOT NULL, "sis_id" character varying, "short_name" character varying, "long_name" character varying, "status" character varying, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
327
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
328
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
329
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
330
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
331
|
+
[1m[35m (5.7ms)[0m [1m[35mBEGIN[0m
|
332
|
+
[1m[35m (17.6ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" bigserial primary key, "started_at" timestamp, "completed_at" timestamp, "exception" character varying, "backtrace" text, "job_class" character varying, "status" character varying, "metadata" text, "job_arguments" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
333
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
334
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
335
|
+
Migrating to CreateUsers (20170918221413)
|
336
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
337
|
+
[1m[35m (5.1ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_user_id" bigint NOT NULL, "sis_id" character varying, "email" character varying, "first_name" character varying, "last_name" character varying, "status" character varying, "login_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
338
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
339
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
340
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
341
|
+
Migrating to CreateSections (20171107213207)
|
342
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
343
|
+
[1m[35m (3.6ms)[0m [1m[35mCREATE TABLE "sections" ("id" bigserial primary key, "canvas_section_id" bigint NOT NULL, "sis_id" character varying, "canvas_course_id" bigint, "canvas_nonxlist_course_id" bigint, "name" character varying, "status" character varying, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
344
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
345
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
346
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
347
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
348
|
+
Migrating to CreateRoles (20180103162102)
|
349
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
350
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE TABLE "roles" ("id" bigserial primary key, "canvas_role_id" integer NOT NULL, "label" character varying NOT NULL, "base_role_type" character varying NOT NULL, "account" json, "workflow_state" character varying NOT NULL, "permissions" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
351
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
352
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
353
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
354
|
+
Migrating to CreateAdmins (20180109210452)
|
355
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
356
|
+
[1m[35m (4.8ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_admin_id" bigint NOT NULL, "role_name" character varying, "canvas_role_id" bigint NOT NULL, "user_data" json, "canvas_user_id" bigint NOT NULL, "workflow_state" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
357
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
358
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
359
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
360
|
+
Migrating to CreateAssignments (20180212204530)
|
361
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
362
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE TABLE "assignments" ("id" bigserial primary key, "canvas_assignment_id" bigint NOT NULL, "title" character varying, "description" text, "due_at" timestamp, "unlock_at" timestamp, "lock_at" timestamp, "points_possible" integer, "min_score" integer, "max_score" integer, "mastery_score" integer, "grading_type" character varying, "submission_types" character varying, "workflow_state" character varying, "context_id" integer, "context_type" character varying, "assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
363
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
364
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
365
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180212204530"]]
|
366
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
367
|
+
Migrating to CreateSubmissions (20180213235544)
|
449
368
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
450
|
-
[1m[35m (
|
369
|
+
[1m[35m (2.6ms)[0m [1m[35mCREATE TABLE "submissions" ("id" bigserial primary key, "canvas_submission_id" bigint NOT NULL, "canvas_course_id" bigint, "canvas_assignment_id" bigint, "canvas_user_id" bigint, "submitted_at" timestamp, "graded_at" timestamp, "score" integer, "points_possible" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
370
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
371
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
372
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
373
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
374
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180213235544"]]
|
375
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
376
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
377
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
378
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-02-13 23:55:56.536565"], ["updated_at", "2018-02-13 23:55:56.536565"]]
|
379
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
380
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
381
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
382
|
+
[1m[35m (1.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
383
|
+
[1m[35m (1.8ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
384
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
385
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
386
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
387
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
388
|
+
[1m[35m (125.9ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
389
|
+
[1m[35m (128.6ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
390
|
+
[1m[35m (13.6ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
391
|
+
[1m[35m (4.1ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
392
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
393
|
+
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
394
|
+
Migrating to CreateEnrollments (20170905192509)
|
395
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
396
|
+
[1m[35m (4.5ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" bigserial primary key, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" character varying, "canvas_user_id" bigint, "user_sis_id" character varying, "role" character varying, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" character varying, "status" character varying, "base_role_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
397
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
398
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
399
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
400
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
401
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
402
|
+
Migrating to CreateTerms (20170906193506)
|
403
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
404
|
+
[1m[35m (3.9ms)[0m [1m[35mCREATE TABLE "terms" ("id" bigserial primary key, "canvas_term_id" integer NOT NULL, "name" character varying, "start_at" timestamp, "end_at" timestamp, "workflow_state" character varying, "grading_period_group_id" integer, "sis_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
451
405
|
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
452
406
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
453
|
-
[1m[35m (0.
|
407
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
454
408
|
Migrating to CreateCourses (20170914181345)
|
455
409
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
456
410
|
[1m[35m (4.4ms)[0m [1m[35mCREATE TABLE "courses" ("id" bigserial primary key, "canvas_course_id" bigint NOT NULL, "sis_id" character varying, "short_name" character varying, "long_name" character varying, "status" character varying, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
457
|
-
[1m[35m (1.
|
411
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
458
412
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
459
|
-
[1m[35m (0.
|
413
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
460
414
|
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
461
|
-
[1m[35m (0.
|
462
|
-
[1m[35m (
|
415
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
416
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" bigserial primary key, "started_at" timestamp, "completed_at" timestamp, "exception" character varying, "backtrace" text, "job_class" character varying, "status" character varying, "metadata" text, "job_arguments" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
463
417
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
464
418
|
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
465
419
|
Migrating to CreateUsers (20170918221413)
|
466
420
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
467
|
-
[1m[35m (4.
|
468
|
-
[1m[35m (1.
|
421
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_user_id" bigint NOT NULL, "sis_id" character varying, "email" character varying, "first_name" character varying, "last_name" character varying, "status" character varying, "login_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
422
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
469
423
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
470
|
-
[1m[35m (
|
424
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
471
425
|
Migrating to CreateSections (20171107213207)
|
472
|
-
[1m[35m (0.
|
473
|
-
[1m[35m (
|
474
|
-
[1m[35m (1.
|
426
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
427
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE TABLE "sections" ("id" bigserial primary key, "canvas_section_id" bigint NOT NULL, "sis_id" character varying, "canvas_course_id" bigint, "canvas_nonxlist_course_id" bigint, "name" character varying, "status" character varying, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
428
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
475
429
|
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
476
430
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
431
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
432
|
+
Migrating to CreateRoles (20180103162102)
|
433
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
434
|
+
[1m[35m (4.1ms)[0m [1m[35mCREATE TABLE "roles" ("id" bigserial primary key, "canvas_role_id" integer NOT NULL, "label" character varying NOT NULL, "base_role_type" character varying NOT NULL, "account" json, "workflow_state" character varying NOT NULL, "permissions" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
435
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
436
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
437
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
438
|
+
Migrating to CreateAdmins (20180109210452)
|
439
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
440
|
+
[1m[35m (3.6ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_admin_id" bigint NOT NULL, "role_name" character varying, "canvas_role_id" bigint NOT NULL, "user_data" json, "canvas_user_id" bigint NOT NULL, "workflow_state" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
441
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
442
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
443
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
444
|
+
Migrating to CreateAssignments (20180212204530)
|
445
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
446
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE TABLE "assignments" ("id" bigserial primary key, "canvas_assignment_id" bigint NOT NULL, "title" character varying, "description" text, "due_at" timestamp, "unlock_at" timestamp, "lock_at" timestamp, "points_possible" integer, "min_score" integer, "max_score" integer, "mastery_score" integer, "grading_type" character varying, "submission_types" character varying, "workflow_state" character varying, "context_id" integer, "context_type" character varying, "assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
447
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
448
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
449
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180212204530"]]
|
450
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
451
|
+
Migrating to CreateSubmissions (20180213235544)
|
452
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
453
|
+
[1m[35m (2.6ms)[0m [1m[35mCREATE TABLE "submissions" ("id" bigserial primary key, "canvas_submission_id" bigint NOT NULL, "canvas_course_id" bigint, "canvas_assignment_id" bigint, "canvas_user_id" bigint, "submitted_at" timestamp, "graded_at" timestamp, "score" integer, "points_possible" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
454
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
455
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
456
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
457
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
458
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180213235544"]]
|
459
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
460
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
461
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
462
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-02-13 23:57:20.233403"], ["updated_at", "2018-02-13 23:57:20.233403"]]
|
463
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
464
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
465
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
466
|
+
[1m[35m (1.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
467
|
+
[1m[35m (14.7ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
468
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
469
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
470
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
471
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
472
|
+
[1m[35m (127.6ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
473
|
+
[1m[35m (129.8ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
474
|
+
[1m[35m (13.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
475
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
476
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
477
|
+
[1m[35m (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
478
|
+
Migrating to CreateEnrollments (20170905192509)
|
479
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
480
|
+
[1m[35m (4.2ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" bigserial primary key, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" character varying, "canvas_user_id" bigint, "user_sis_id" character varying, "role" character varying, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" character varying, "status" character varying, "base_role_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
481
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
482
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
483
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
484
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
485
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
486
|
+
Migrating to CreateTerms (20170906193506)
|
487
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
488
|
+
[1m[35m (4.1ms)[0m [1m[35mCREATE TABLE "terms" ("id" bigserial primary key, "canvas_term_id" integer NOT NULL, "name" character varying, "start_at" timestamp, "end_at" timestamp, "workflow_state" character varying, "grading_period_group_id" integer, "sis_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
489
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
490
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
491
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
492
|
+
Migrating to CreateCourses (20170914181345)
|
493
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
494
|
+
[1m[35m (3.9ms)[0m [1m[35mCREATE TABLE "courses" ("id" bigserial primary key, "canvas_course_id" bigint NOT NULL, "sis_id" character varying, "short_name" character varying, "long_name" character varying, "status" character varying, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
495
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
496
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
497
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
498
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
499
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
500
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" bigserial primary key, "started_at" timestamp, "completed_at" timestamp, "exception" character varying, "backtrace" text, "job_class" character varying, "status" character varying, "metadata" text, "job_arguments" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
501
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
502
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
503
|
+
Migrating to CreateUsers (20170918221413)
|
504
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
505
|
+
[1m[35m (3.6ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_user_id" bigint NOT NULL, "sis_id" character varying, "email" character varying, "first_name" character varying, "last_name" character varying, "status" character varying, "login_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
506
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
507
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
508
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
509
|
+
Migrating to CreateSections (20171107213207)
|
510
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
511
|
+
[1m[35m (4.8ms)[0m [1m[35mCREATE TABLE "sections" ("id" bigserial primary key, "canvas_section_id" bigint NOT NULL, "sis_id" character varying, "canvas_course_id" bigint, "canvas_nonxlist_course_id" bigint, "name" character varying, "status" character varying, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
512
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
513
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
514
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
477
515
|
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
478
516
|
Migrating to CreateRoles (20180103162102)
|
479
517
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
480
|
-
[1m[35m (
|
481
|
-
[1m[35m (1.
|
518
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE TABLE "roles" ("id" bigserial primary key, "canvas_role_id" integer NOT NULL, "label" character varying NOT NULL, "base_role_type" character varying NOT NULL, "account" json, "workflow_state" character varying NOT NULL, "permissions" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
519
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
482
520
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
483
|
-
[1m[35m (
|
521
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
484
522
|
Migrating to CreateAdmins (20180109210452)
|
485
523
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
486
|
-
[1m[35m (
|
524
|
+
[1m[35m (5.7ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_admin_id" bigint NOT NULL, "role_name" character varying, "canvas_role_id" bigint NOT NULL, "user_data" json, "canvas_user_id" bigint NOT NULL, "workflow_state" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
487
525
|
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
488
526
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
489
527
|
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
490
|
-
Migrating to CreateAssignments (
|
491
|
-
[1m[35m (0.
|
492
|
-
[1m[35m (
|
493
|
-
[1m[35m (1.
|
494
|
-
[1m[35m (
|
495
|
-
[1m[
|
496
|
-
|
497
|
-
|
498
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
499
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
500
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
501
|
-
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
502
|
-
Migrating to CreateAssignments (20180212180536)
|
528
|
+
Migrating to CreateAssignments (20180212204530)
|
529
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
530
|
+
[1m[35m (4.3ms)[0m [1m[35mCREATE TABLE "assignments" ("id" bigserial primary key, "canvas_assignment_id" bigint NOT NULL, "title" character varying, "description" text, "due_at" timestamp, "unlock_at" timestamp, "lock_at" timestamp, "points_possible" integer, "min_score" integer, "max_score" integer, "mastery_score" integer, "grading_type" character varying, "submission_types" character varying, "workflow_state" character varying, "context_id" integer, "context_type" character varying, "assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
531
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
532
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
533
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180212204530"]]
|
534
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
535
|
+
Migrating to CreateSubmissions (20180213235544)
|
503
536
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
504
|
-
[1m[35m (
|
505
|
-
[1m[35m (
|
506
|
-
[1m[35m (1.
|
507
|
-
[1m[35m (
|
537
|
+
[1m[35m (2.9ms)[0m [1m[35mCREATE TABLE "submissions" ("id" bigserial primary key, "canvas_submission_id" bigint NOT NULL, "canvas_course_id" bigint, "canvas_assignment_id" bigint, "canvas_user_id" bigint, "submitted_at" timestamp, "graded_at" timestamp, "score" integer, "points_possible" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
538
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
539
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
540
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
541
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
542
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180213235544"]]
|
543
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
544
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.9ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
545
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
546
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-02-14 00:29:53.010574"], ["updated_at", "2018-02-14 00:29:53.010574"]]
|
547
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
548
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
549
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
550
|
+
[1m[35m (2.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
551
|
+
[1m[35m (7.5ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
552
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
553
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
554
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
555
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
556
|
+
[1m[35m (126.8ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
557
|
+
[1m[35m (117.4ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
558
|
+
[1m[35m (13.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
559
|
+
[1m[35m (3.7ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
508
560
|
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
509
|
-
[1m[35m (1.
|
510
|
-
Migrating to
|
561
|
+
[1m[35m (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
562
|
+
Migrating to CreateEnrollments (20170905192509)
|
511
563
|
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
512
|
-
[1m[35m (
|
513
|
-
[1m[35m (1.
|
514
|
-
[1m[35m (
|
515
|
-
[1m[35m (
|
516
|
-
[1m[
|
517
|
-
[1m[35m (0.
|
518
|
-
|
519
|
-
[1m[35m (
|
520
|
-
|
564
|
+
[1m[35m (5.2ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" bigserial primary key, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" character varying, "canvas_user_id" bigint, "user_sis_id" character varying, "role" character varying, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" character varying, "status" character varying, "base_role_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
565
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
566
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
567
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
568
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
569
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
570
|
+
Migrating to CreateTerms (20170906193506)
|
571
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
572
|
+
[1m[35m (4.5ms)[0m [1m[35mCREATE TABLE "terms" ("id" bigserial primary key, "canvas_term_id" integer NOT NULL, "name" character varying, "start_at" timestamp, "end_at" timestamp, "workflow_state" character varying, "grading_period_group_id" integer, "sis_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
573
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
574
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
575
|
+
[1m[35m (1.8ms)[0m [1m[35mCOMMIT[0m
|
576
|
+
Migrating to CreateCourses (20170914181345)
|
521
577
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
522
|
-
[1m[35m (
|
523
|
-
[1m[35m (
|
524
|
-
[1m[
|
525
|
-
[1m[
|
526
|
-
|
527
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
578
|
+
[1m[35m (3.9ms)[0m [1m[35mCREATE TABLE "courses" ("id" bigserial primary key, "canvas_course_id" bigint NOT NULL, "sis_id" character varying, "short_name" character varying, "long_name" character varying, "status" character varying, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
579
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
580
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
581
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
582
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
528
583
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
529
|
-
[1m[
|
584
|
+
[1m[35m (6.4ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" bigserial primary key, "started_at" timestamp, "completed_at" timestamp, "exception" character varying, "backtrace" text, "job_class" character varying, "status" character varying, "metadata" text, "job_arguments" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
585
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
586
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
587
|
+
Migrating to CreateUsers (20170918221413)
|
588
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
589
|
+
[1m[35m (3.6ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_user_id" bigint NOT NULL, "sis_id" character varying, "email" character varying, "first_name" character varying, "last_name" character varying, "status" character varying, "login_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
590
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
591
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
592
|
+
[1m[35m (0.8ms)[0m [1m[35mCOMMIT[0m
|
593
|
+
Migrating to CreateSections (20171107213207)
|
594
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
595
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE TABLE "sections" ("id" bigserial primary key, "canvas_section_id" bigint NOT NULL, "sis_id" character varying, "canvas_course_id" bigint, "canvas_nonxlist_course_id" bigint, "name" character varying, "status" character varying, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
596
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
597
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
598
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
599
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
600
|
+
Migrating to CreateRoles (20180103162102)
|
601
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
602
|
+
[1m[35m (3.5ms)[0m [1m[35mCREATE TABLE "roles" ("id" bigserial primary key, "canvas_role_id" integer NOT NULL, "label" character varying NOT NULL, "base_role_type" character varying NOT NULL, "account" json, "workflow_state" character varying NOT NULL, "permissions" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
603
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
604
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
605
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
606
|
+
Migrating to CreateAdmins (20180109210452)
|
607
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
608
|
+
[1m[35m (3.9ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_admin_id" bigint NOT NULL, "role_name" character varying, "canvas_role_id" bigint NOT NULL, "user_data" json, "canvas_user_id" bigint NOT NULL, "workflow_state" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
609
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
610
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
611
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
612
|
+
Migrating to CreateSubmissions (20180213235544)
|
613
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
614
|
+
[1m[35m (3.0ms)[0m [1m[35mCREATE TABLE "submissions" ("id" bigserial primary key, "canvas_submission_id" bigint NOT NULL, "canvas_course_id" bigint, "canvas_assignment_id" bigint, "canvas_user_id" bigint, "submitted_at" timestamp, "graded_at" timestamp, "score" integer, "points_possible" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
615
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
616
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
617
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
618
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
619
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180213235544"]]
|
620
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
621
|
+
Migrating to CreateAssignments (20180215214227)
|
622
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
623
|
+
[1m[35m (3.9ms)[0m [1m[35mCREATE TABLE "assignments" ("id" bigserial primary key, "canvas_assignment_id" bigint NOT NULL, "title" character varying, "description" text, "due_at" timestamp, "unlock_at" timestamp, "lock_at" timestamp, "points_possible" integer, "min_score" integer, "max_score" integer, "mastery_score" integer, "grading_type" character varying, "submission_types" character varying, "workflow_state" character varying, "context_id" integer, "context_type" character varying, "canvas_assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
624
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
625
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
626
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180215214227"]]
|
627
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
628
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
629
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
630
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-02-15 21:42:39.178681"], ["updated_at", "2018-02-15 21:42:39.178681"]]
|
631
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
632
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
633
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
634
|
+
[1m[35m (2.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
635
|
+
[1m[35m (8.7ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
636
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
637
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
638
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
639
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
640
|
+
[1m[35m (123.6ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
641
|
+
[1m[35m (123.0ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
642
|
+
[1m[35m (13.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
643
|
+
[1m[35m (3.6ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
644
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
645
|
+
[1m[35m (1.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
646
|
+
Migrating to CreateEnrollments (20170905192509)
|
647
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
648
|
+
[1m[35m (21.7ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" bigserial primary key, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" character varying, "canvas_user_id" bigint, "user_sis_id" character varying, "role" character varying, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" character varying, "status" character varying, "base_role_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
649
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
650
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
651
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
652
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
530
653
|
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
654
|
+
Migrating to CreateTerms (20170906193506)
|
655
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
656
|
+
[1m[35m (3.7ms)[0m [1m[35mCREATE TABLE "terms" ("id" bigserial primary key, "canvas_term_id" integer NOT NULL, "name" character varying, "start_at" timestamp, "end_at" timestamp, "workflow_state" character varying, "grading_period_group_id" integer, "sis_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
657
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
658
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
659
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
660
|
+
Migrating to CreateCourses (20170914181345)
|
661
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
662
|
+
[1m[35m (3.9ms)[0m [1m[35mCREATE TABLE "courses" ("id" bigserial primary key, "canvas_course_id" bigint NOT NULL, "sis_id" character varying, "short_name" character varying, "long_name" character varying, "status" character varying, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
663
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
664
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
665
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
666
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
667
|
+
[1m[35m (6.0ms)[0m [1m[35mBEGIN[0m
|
668
|
+
[1m[35m (19.4ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" bigserial primary key, "started_at" timestamp, "completed_at" timestamp, "exception" character varying, "backtrace" text, "job_class" character varying, "status" character varying, "metadata" text, "job_arguments" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
669
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
670
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
671
|
+
Migrating to CreateUsers (20170918221413)
|
672
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
673
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_user_id" bigint NOT NULL, "sis_id" character varying, "email" character varying, "first_name" character varying, "last_name" character varying, "status" character varying, "login_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
674
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
675
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
676
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
677
|
+
Migrating to CreateSections (20171107213207)
|
678
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
679
|
+
[1m[35m (3.4ms)[0m [1m[35mCREATE TABLE "sections" ("id" bigserial primary key, "canvas_section_id" bigint NOT NULL, "sis_id" character varying, "canvas_course_id" bigint, "canvas_nonxlist_course_id" bigint, "name" character varying, "status" character varying, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
680
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
681
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
682
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
683
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
684
|
+
Migrating to CreateRoles (20180103162102)
|
685
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
686
|
+
[1m[35m (3.4ms)[0m [1m[35mCREATE TABLE "roles" ("id" bigserial primary key, "canvas_role_id" integer NOT NULL, "label" character varying NOT NULL, "base_role_type" character varying NOT NULL, "account" json, "workflow_state" character varying NOT NULL, "permissions" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
687
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
688
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
689
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
690
|
+
Migrating to CreateAdmins (20180109210452)
|
691
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
692
|
+
[1m[35m (3.4ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_admin_id" bigint NOT NULL, "role_name" character varying, "canvas_role_id" bigint NOT NULL, "user_data" json, "canvas_user_id" bigint NOT NULL, "workflow_state" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
693
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
694
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
695
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
696
|
+
Migrating to CreateSubmissions (20180213235544)
|
697
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
698
|
+
[1m[35m (2.4ms)[0m [1m[35mCREATE TABLE "submissions" ("id" bigserial primary key, "canvas_submission_id" bigint NOT NULL, "canvas_course_id" bigint, "canvas_assignment_id" bigint, "canvas_user_id" bigint, "submitted_at" timestamp, "graded_at" timestamp, "score" integer, "points_possible" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
699
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
700
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
701
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
702
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
703
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180213235544"]]
|
704
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
705
|
+
Migrating to CreateAssignments (20180215214227)
|
706
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
707
|
+
[1m[35m (3.6ms)[0m [1m[35mCREATE TABLE "assignments" ("id" bigserial primary key, "canvas_assignment_id" bigint NOT NULL, "title" character varying, "description" text, "due_at" timestamp, "unlock_at" timestamp, "lock_at" timestamp, "points_possible" integer, "min_score" integer, "max_score" integer, "mastery_score" integer, "grading_type" character varying, "submission_types" character varying, "workflow_state" character varying, "context_id" integer, "context_type" character varying, "canvas_assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
708
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
709
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
710
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180215214227"]]
|
711
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
712
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.9ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
713
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
714
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-02-15 21:59:29.557046"], ["updated_at", "2018-02-15 21:59:29.557046"]]
|
715
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
531
716
|
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
532
717
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
533
|
-
[1m[35m (1.
|
534
|
-
[1m[35m (
|
718
|
+
[1m[35m (1.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
719
|
+
[1m[35m (8.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
535
720
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
536
|
-
[1m[35m (0.
|
721
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
537
722
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
538
723
|
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
539
|
-
[1m[35m (
|
540
|
-
[1m[35m (
|
541
|
-
[1m[35m (
|
542
|
-
[1m[35m (
|
724
|
+
[1m[35m (123.8ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
725
|
+
[1m[35m (121.4ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
726
|
+
[1m[35m (11.7ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
727
|
+
[1m[35m (21.3ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
543
728
|
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
544
|
-
[1m[35m (
|
729
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
545
730
|
Migrating to CreateEnrollments (20170905192509)
|
546
|
-
[1m[35m (0.
|
547
|
-
[1m[35m (
|
548
|
-
[1m[35m (
|
549
|
-
[1m[35m (
|
550
|
-
[1m[35m (
|
551
|
-
[1m[35mSQL (0.
|
552
|
-
[1m[35m (
|
731
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
732
|
+
[1m[35m (15.2ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" bigserial primary key, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" character varying, "canvas_user_id" bigint, "user_sis_id" character varying, "role" character varying, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" character varying, "status" character varying, "base_role_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
733
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
734
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
735
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
736
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
737
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
553
738
|
Migrating to CreateTerms (20170906193506)
|
554
|
-
[1m[35m (0.
|
555
|
-
[1m[35m (
|
556
|
-
[1m[35m (1.
|
557
|
-
[1m[35mSQL (0.
|
558
|
-
[1m[35m (0.
|
739
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
740
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE TABLE "terms" ("id" bigserial primary key, "canvas_term_id" integer NOT NULL, "name" character varying, "start_at" timestamp, "end_at" timestamp, "workflow_state" character varying, "grading_period_group_id" integer, "sis_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
741
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
742
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
743
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
559
744
|
Migrating to CreateCourses (20170914181345)
|
560
|
-
[1m[35m (0.
|
561
|
-
[1m[35m (
|
562
|
-
[1m[35m (
|
563
|
-
[1m[35mSQL (0.
|
564
|
-
[1m[35m (
|
745
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
746
|
+
[1m[35m (3.6ms)[0m [1m[35mCREATE TABLE "courses" ("id" bigserial primary key, "canvas_course_id" bigint NOT NULL, "sis_id" character varying, "short_name" character varying, "long_name" character varying, "status" character varying, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
747
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
748
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
749
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
565
750
|
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
566
|
-
[1m[35m (0.
|
567
|
-
[1m[35m (
|
568
|
-
[1m[35mSQL (0.
|
569
|
-
[1m[35m (0.
|
751
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
752
|
+
[1m[35m (3.6ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" bigserial primary key, "started_at" timestamp, "completed_at" timestamp, "exception" character varying, "backtrace" text, "job_class" character varying, "status" character varying, "metadata" text, "job_arguments" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
753
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
754
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
570
755
|
Migrating to CreateUsers (20170918221413)
|
571
|
-
[1m[35m (0.
|
572
|
-
[1m[35m (
|
573
|
-
[1m[35m (
|
574
|
-
[1m[35mSQL (0.
|
575
|
-
[1m[35m (
|
756
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
757
|
+
[1m[35m (3.5ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_user_id" bigint NOT NULL, "sis_id" character varying, "email" character varying, "first_name" character varying, "last_name" character varying, "status" character varying, "login_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
758
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
759
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
760
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
576
761
|
Migrating to CreateSections (20171107213207)
|
577
|
-
[1m[35m (0.
|
578
|
-
[1m[35m (
|
579
|
-
[1m[35m (1.
|
580
|
-
[1m[35m (
|
581
|
-
[1m[35mSQL (0.
|
582
|
-
[1m[35m (0.
|
762
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
763
|
+
[1m[35m (3.3ms)[0m [1m[35mCREATE TABLE "sections" ("id" bigserial primary key, "canvas_section_id" bigint NOT NULL, "sis_id" character varying, "canvas_course_id" bigint, "canvas_nonxlist_course_id" bigint, "name" character varying, "status" character varying, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
764
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
765
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
766
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
767
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
583
768
|
Migrating to CreateRoles (20180103162102)
|
584
|
-
[1m[35m (0.
|
585
|
-
[1m[35m (
|
586
|
-
[1m[35m (
|
587
|
-
[1m[35mSQL (0.
|
588
|
-
[1m[35m (
|
769
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
770
|
+
[1m[35m (3.4ms)[0m [1m[35mCREATE TABLE "roles" ("id" bigserial primary key, "canvas_role_id" integer NOT NULL, "label" character varying NOT NULL, "base_role_type" character varying NOT NULL, "account" json, "workflow_state" character varying NOT NULL, "permissions" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
771
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
772
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
773
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
589
774
|
Migrating to CreateAdmins (20180109210452)
|
590
|
-
[1m[35m (
|
591
|
-
[1m[35m (
|
592
|
-
[1m[35m (1.
|
775
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
776
|
+
[1m[35m (3.5ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_admin_id" bigint NOT NULL, "role_name" character varying, "canvas_role_id" bigint NOT NULL, "user_data" json, "canvas_user_id" bigint NOT NULL, "workflow_state" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
777
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
593
778
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
594
|
-
[1m[35m (0.
|
595
|
-
Migrating to
|
596
|
-
[1m[35m (
|
597
|
-
[1m[35m (
|
598
|
-
[1m[35m (
|
599
|
-
[1m[35m (
|
600
|
-
[1m[
|
601
|
-
[1m[35m (
|
602
|
-
[1m[
|
603
|
-
[1m[35m (0.
|
604
|
-
|
605
|
-
[1m[35m (0.
|
779
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
780
|
+
Migrating to CreateSubmissions (20180213235544)
|
781
|
+
[1m[35m (5.5ms)[0m [1m[35mBEGIN[0m
|
782
|
+
[1m[35m (8.9ms)[0m [1m[35mCREATE TABLE "submissions" ("id" bigserial primary key, "canvas_submission_id" bigint NOT NULL, "canvas_course_id" bigint, "canvas_assignment_id" bigint, "canvas_user_id" bigint, "submitted_at" timestamp, "graded_at" timestamp, "score" integer, "points_possible" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
783
|
+
[1m[35m (12.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
784
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
785
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
786
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
787
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180213235544"]]
|
788
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
789
|
+
Migrating to CreateAssignments (20180215214227)
|
790
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
791
|
+
[1m[35m (4.3ms)[0m [1m[35mCREATE TABLE "assignments" ("id" bigserial primary key, "canvas_assignment_id" bigint NOT NULL, "title" character varying, "description" text, "due_at" timestamp, "unlock_at" timestamp, "lock_at" timestamp, "points_possible" integer, "min_score" integer, "max_score" integer, "mastery_score" integer, "grading_type" character varying, "submission_types" character varying, "workflow_state" character varying, "context_id" integer, "context_type" character varying, "canvas_assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
792
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
793
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
794
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180215214227"]]
|
795
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
796
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.9ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
797
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
798
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-02-15 22:00:57.501540"], ["updated_at", "2018-02-15 22:00:57.501540"]]
|
799
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
606
800
|
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
607
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
608
|
-
[1m[35m (18.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
609
|
-
[1m[35m (8.7ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
610
801
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
611
|
-
[1m[35m (
|
802
|
+
[1m[35m (1.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
803
|
+
[1m[35m (3.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
612
804
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
613
|
-
[1m[35m (0.
|
614
|
-
[1m[35m (
|
615
|
-
[1m[35m (
|
616
|
-
[1m[35m (
|
617
|
-
[1m[35m (
|
805
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
806
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
807
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
808
|
+
[1m[35m (124.5ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
809
|
+
[1m[35m (119.9ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
810
|
+
[1m[35m (33.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
811
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
618
812
|
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
619
|
-
[1m[35m (1.
|
813
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
620
814
|
Migrating to CreateEnrollments (20170905192509)
|
621
815
|
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
622
|
-
[1m[35m (
|
623
|
-
[1m[35m (1.
|
624
|
-
[1m[35m (1.
|
625
|
-
[1m[35m (
|
816
|
+
[1m[35m (9.6ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" bigserial primary key, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" character varying, "canvas_user_id" bigint, "user_sis_id" character varying, "role" character varying, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" character varying, "status" character varying, "base_role_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
817
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
818
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
819
|
+
[1m[35m (6.9ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
626
820
|
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
627
|
-
[1m[35m (
|
821
|
+
[1m[35m (6.0ms)[0m [1m[35mCOMMIT[0m
|
628
822
|
Migrating to CreateTerms (20170906193506)
|
629
|
-
[1m[35m (
|
630
|
-
[1m[35m (4.
|
631
|
-
[1m[35m (1.
|
823
|
+
[1m[35m (6.2ms)[0m [1m[35mBEGIN[0m
|
824
|
+
[1m[35m (4.7ms)[0m [1m[35mCREATE TABLE "terms" ("id" bigserial primary key, "canvas_term_id" integer NOT NULL, "name" character varying, "start_at" timestamp, "end_at" timestamp, "workflow_state" character varying, "grading_period_group_id" integer, "sis_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
825
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
632
826
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
633
827
|
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
634
828
|
Migrating to CreateCourses (20170914181345)
|
635
|
-
[1m[35m (0.
|
636
|
-
[1m[35m (
|
637
|
-
[1m[35m (1.
|
829
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
830
|
+
[1m[35m (3.7ms)[0m [1m[35mCREATE TABLE "courses" ("id" bigserial primary key, "canvas_course_id" bigint NOT NULL, "sis_id" character varying, "short_name" character varying, "long_name" character varying, "status" character varying, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
831
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
638
832
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
639
|
-
[1m[35m (0.
|
833
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
640
834
|
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
641
|
-
[1m[35m (
|
642
|
-
[1m[35m (
|
643
|
-
[1m[35mSQL (0.
|
644
|
-
[1m[35m (
|
835
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
836
|
+
[1m[35m (10.9ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" bigserial primary key, "started_at" timestamp, "completed_at" timestamp, "exception" character varying, "backtrace" text, "job_class" character varying, "status" character varying, "metadata" text, "job_arguments" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
837
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
838
|
+
[1m[35m (5.7ms)[0m [1m[35mCOMMIT[0m
|
645
839
|
Migrating to CreateUsers (20170918221413)
|
646
|
-
[1m[35m (
|
647
|
-
[1m[35m (
|
648
|
-
[1m[35m (1.
|
840
|
+
[1m[35m (5.5ms)[0m [1m[35mBEGIN[0m
|
841
|
+
[1m[35m (7.5ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_user_id" bigint NOT NULL, "sis_id" character varying, "email" character varying, "first_name" character varying, "last_name" character varying, "status" character varying, "login_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
842
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
649
843
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
650
|
-
[1m[35m (0.
|
844
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
651
845
|
Migrating to CreateSections (20171107213207)
|
652
846
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
653
|
-
[1m[35m (
|
654
|
-
[1m[35m (1.
|
655
|
-
[1m[35m (1.
|
656
|
-
[1m[35mSQL (0.
|
657
|
-
[1m[35m (0.
|
847
|
+
[1m[35m (3.6ms)[0m [1m[35mCREATE TABLE "sections" ("id" bigserial primary key, "canvas_section_id" bigint NOT NULL, "sis_id" character varying, "canvas_course_id" bigint, "canvas_nonxlist_course_id" bigint, "name" character varying, "status" character varying, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
848
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
849
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
850
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
851
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
658
852
|
Migrating to CreateRoles (20180103162102)
|
659
853
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
660
|
-
[1m[35m (4.
|
661
|
-
[1m[35m (
|
662
|
-
[1m[35mSQL (0.
|
663
|
-
[1m[35m (
|
854
|
+
[1m[35m (4.1ms)[0m [1m[35mCREATE TABLE "roles" ("id" bigserial primary key, "canvas_role_id" integer NOT NULL, "label" character varying NOT NULL, "base_role_type" character varying NOT NULL, "account" json, "workflow_state" character varying NOT NULL, "permissions" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
855
|
+
[1m[35m (6.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
856
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
857
|
+
[1m[35m (6.0ms)[0m [1m[35mCOMMIT[0m
|
664
858
|
Migrating to CreateAdmins (20180109210452)
|
665
|
-
[1m[35m (
|
859
|
+
[1m[35m (11.8ms)[0m [1m[35mBEGIN[0m
|
666
860
|
[1m[35m (4.9ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_admin_id" bigint NOT NULL, "role_name" character varying, "canvas_role_id" bigint NOT NULL, "user_data" json, "canvas_user_id" bigint NOT NULL, "workflow_state" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
667
|
-
[1m[35m (1.
|
861
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
668
862
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
669
|
-
[1m[35m (0.
|
670
|
-
Migrating to
|
671
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
672
|
-
[1m[35m (5.2ms)[0m [1m[35mCREATE TABLE "assignments" ("id" bigserial primary key, "canvas_assignment_id" bigint NOT NULL, "title" character varying, "description" text, "due_at" timestamp, "unlock_at" timestamp, "lock_at" timestamp, "points_possible" integer, "min_score" integer, "max_score" integer, "mastery_score" integer, "grading_type" character varying, "submission_types" character varying, "workflow_state" character varying, "context_id" integer, "context_type" integer, "assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
673
|
-
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
674
|
-
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
675
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180212180855"]]
|
676
|
-
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
677
|
-
[1m[36mActiveRecord::InternalMetadata Load (1.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
863
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
864
|
+
Migrating to CreateSubmissions (20180213235544)
|
678
865
|
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
679
|
-
[1m[
|
680
|
-
[1m[35m (
|
681
|
-
[1m[35m (
|
866
|
+
[1m[35m (2.6ms)[0m [1m[35mCREATE TABLE "submissions" ("id" bigserial primary key, "canvas_submission_id" bigint NOT NULL, "canvas_course_id" bigint, "canvas_assignment_id" bigint, "canvas_user_id" bigint, "submitted_at" timestamp, "graded_at" timestamp, "score" integer, "points_possible" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
867
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
868
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
869
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
870
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
871
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180213235544"]]
|
872
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
873
|
+
Migrating to CreateAssignments (20180215214227)
|
874
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
875
|
+
[1m[35m (4.4ms)[0m [1m[35mCREATE TABLE "assignments" ("id" bigserial primary key, "canvas_assignment_id" bigint NOT NULL, "title" character varying, "description" text, "due_at" timestamp, "unlock_at" timestamp, "lock_at" timestamp, "points_possible" integer, "min_score" integer, "max_score" integer, "mastery_score" integer, "grading_type" character varying, "submission_types" character varying, "workflow_state" character varying, "context_id" integer, "context_type" character varying, "canvas_assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
876
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
877
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
878
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180215214227"]]
|
879
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
880
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.0ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
881
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
882
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-02-15 22:01:29.506349"], ["updated_at", "2018-02-15 22:01:29.506349"]]
|
883
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
884
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
682
885
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
683
|
-
[1m[35m (2.
|
684
|
-
[1m[35m (8.
|
886
|
+
[1m[35m (2.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
887
|
+
[1m[35m (8.6ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
685
888
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
686
|
-
[1m[35m (0.
|
687
|
-
[1m[35m (0.
|
688
|
-
[1m[35m (0.
|
689
|
-
[1m[35m (
|
690
|
-
[1m[35m (
|
691
|
-
[1m[35m (
|
692
|
-
[1m[35m (
|
889
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
890
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
891
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
892
|
+
[1m[35m (124.9ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
893
|
+
[1m[35m (119.1ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
894
|
+
[1m[35m (12.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
895
|
+
[1m[35m (3.5ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
693
896
|
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
694
|
-
[1m[35m (1.
|
897
|
+
[1m[35m (1.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
695
898
|
Migrating to CreateEnrollments (20170905192509)
|
696
899
|
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
697
|
-
[1m[35m (
|
698
|
-
[1m[35m (1.
|
900
|
+
[1m[35m (22.0ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" bigserial primary key, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" character varying, "canvas_user_id" bigint, "user_sis_id" character varying, "role" character varying, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" character varying, "status" character varying, "base_role_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
901
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
699
902
|
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
700
|
-
[1m[35m (
|
701
|
-
[1m[35mSQL (0.
|
702
|
-
[1m[35m (
|
903
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
904
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
905
|
+
[1m[35m (6.0ms)[0m [1m[35mCOMMIT[0m
|
703
906
|
Migrating to CreateTerms (20170906193506)
|
704
|
-
[1m[35m (
|
705
|
-
[1m[35m (
|
706
|
-
[1m[35m (1.
|
907
|
+
[1m[35m (11.0ms)[0m [1m[35mBEGIN[0m
|
908
|
+
[1m[35m (5.9ms)[0m [1m[35mCREATE TABLE "terms" ("id" bigserial primary key, "canvas_term_id" integer NOT NULL, "name" character varying, "start_at" timestamp, "end_at" timestamp, "workflow_state" character varying, "grading_period_group_id" integer, "sis_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
909
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
707
910
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
708
|
-
[1m[35m (0.
|
911
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
709
912
|
Migrating to CreateCourses (20170914181345)
|
710
|
-
[1m[35m (0.
|
711
|
-
[1m[35m (4.
|
712
|
-
[1m[35m (
|
713
|
-
[1m[35mSQL (0.
|
714
|
-
[1m[35m (0.
|
913
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
914
|
+
[1m[35m (4.3ms)[0m [1m[35mCREATE TABLE "courses" ("id" bigserial primary key, "canvas_course_id" bigint NOT NULL, "sis_id" character varying, "short_name" character varying, "long_name" character varying, "status" character varying, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
915
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
916
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
917
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
715
918
|
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
716
|
-
[1m[35m (
|
717
|
-
[1m[35m (
|
718
|
-
[1m[35mSQL (0.
|
919
|
+
[1m[35m (5.9ms)[0m [1m[35mBEGIN[0m
|
920
|
+
[1m[35m (21.1ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" bigserial primary key, "started_at" timestamp, "completed_at" timestamp, "exception" character varying, "backtrace" text, "job_class" character varying, "status" character varying, "metadata" text, "job_arguments" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
921
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
719
922
|
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
720
923
|
Migrating to CreateUsers (20170918221413)
|
721
924
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
722
|
-
[1m[35m (
|
723
|
-
[1m[35m (1.
|
925
|
+
[1m[35m (4.5ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_user_id" bigint NOT NULL, "sis_id" character varying, "email" character varying, "first_name" character varying, "last_name" character varying, "status" character varying, "login_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
926
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
724
927
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
725
928
|
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
726
929
|
Migrating to CreateSections (20171107213207)
|
727
930
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
728
|
-
[1m[35m (
|
729
|
-
[1m[35m (1.
|
730
|
-
[1m[35m (1.
|
931
|
+
[1m[35m (3.7ms)[0m [1m[35mCREATE TABLE "sections" ("id" bigserial primary key, "canvas_section_id" bigint NOT NULL, "sis_id" character varying, "canvas_course_id" bigint, "canvas_nonxlist_course_id" bigint, "name" character varying, "status" character varying, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
932
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
933
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
731
934
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
732
|
-
[1m[35m (0.
|
935
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
733
936
|
Migrating to CreateRoles (20180103162102)
|
734
|
-
[1m[35m (
|
735
|
-
[1m[35m (
|
736
|
-
[1m[35m (1.
|
937
|
+
[1m[35m (6.2ms)[0m [1m[35mBEGIN[0m
|
938
|
+
[1m[35m (23.5ms)[0m [1m[35mCREATE TABLE "roles" ("id" bigserial primary key, "canvas_role_id" integer NOT NULL, "label" character varying NOT NULL, "base_role_type" character varying NOT NULL, "account" json, "workflow_state" character varying NOT NULL, "permissions" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
939
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
737
940
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
738
941
|
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
739
942
|
Migrating to CreateAdmins (20180109210452)
|
740
|
-
[1m[35m (
|
741
|
-
[1m[35m (
|
742
|
-
[1m[35m (1.
|
943
|
+
[1m[35m (6.1ms)[0m [1m[35mBEGIN[0m
|
944
|
+
[1m[35m (18.7ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_admin_id" bigint NOT NULL, "role_name" character varying, "canvas_role_id" bigint NOT NULL, "user_data" json, "canvas_user_id" bigint NOT NULL, "workflow_state" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
945
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
743
946
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
744
947
|
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
745
|
-
Migrating to
|
746
|
-
[1m[35m (
|
747
|
-
[1m[35m (
|
748
|
-
[1m[35m (1.
|
749
|
-
[1m[35m (
|
750
|
-
[1m[
|
948
|
+
Migrating to CreateSubmissions (20180213235544)
|
949
|
+
[1m[35m (11.6ms)[0m [1m[35mBEGIN[0m
|
950
|
+
[1m[35m (9.5ms)[0m [1m[35mCREATE TABLE "submissions" ("id" bigserial primary key, "canvas_submission_id" bigint NOT NULL, "canvas_course_id" bigint, "canvas_assignment_id" bigint, "canvas_user_id" bigint, "submitted_at" timestamp, "graded_at" timestamp, "score" integer, "points_possible" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
951
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
952
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
953
|
+
[1m[35m (7.4ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
954
|
+
[1m[35m (14.5ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
955
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180213235544"]]
|
751
956
|
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
957
|
+
Migrating to CreateAssignments (20180215214227)
|
958
|
+
[1m[35m (15.5ms)[0m [1m[35mBEGIN[0m
|
959
|
+
[1m[35m (12.1ms)[0m [1m[35mCREATE TABLE "assignments" ("id" bigserial primary key, "canvas_assignment_id" bigint NOT NULL, "title" character varying, "description" text, "due_at" timestamp, "unlock_at" timestamp, "lock_at" timestamp, "points_possible" integer, "min_score" integer, "max_score" integer, "mastery_score" integer, "grading_type" character varying, "submission_types" character varying, "workflow_state" character varying, "context_id" integer, "context_type" character varying, "canvas_assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
960
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
961
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
962
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180215214227"]]
|
963
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
752
964
|
[1m[36mActiveRecord::InternalMetadata Load (1.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
753
965
|
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
754
|
-
[1m[35mSQL (0.
|
755
|
-
[1m[35m (0.
|
756
|
-
[1m[35m (0.
|
757
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
758
|
-
[1m[35m (2.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
759
|
-
[1m[35m (9.6ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
966
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-02-15 22:04:30.044556"], ["updated_at", "2018-02-15 22:04:30.044556"]]
|
967
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
968
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
760
969
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
761
|
-
[1m[35m (
|
970
|
+
[1m[35m (2.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
971
|
+
[1m[35m (7.7ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
762
972
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
763
973
|
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
764
|
-
[1m[35m (
|
765
|
-
[1m[35m (
|
766
|
-
[1m[35m (
|
767
|
-
[1m[35m (
|
974
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
975
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
976
|
+
[1m[35m (124.7ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
977
|
+
[1m[35m (120.9ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
978
|
+
[1m[35m (8.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
979
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
768
980
|
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
769
|
-
[1m[35m (1.
|
981
|
+
[1m[35m (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
770
982
|
Migrating to CreateEnrollments (20170905192509)
|
771
983
|
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
772
|
-
[1m[35m (
|
773
|
-
[1m[35m (
|
774
|
-
[1m[35m (
|
775
|
-
[1m[35m (
|
776
|
-
[1m[35mSQL (0.
|
777
|
-
[1m[35m (0.
|
984
|
+
[1m[35m (21.8ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" bigserial primary key, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" character varying, "canvas_user_id" bigint, "user_sis_id" character varying, "role" character varying, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" character varying, "status" character varying, "base_role_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
985
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
986
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
987
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
988
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
989
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
778
990
|
Migrating to CreateTerms (20170906193506)
|
779
|
-
[1m[35m (0.
|
780
|
-
[1m[35m (
|
781
|
-
[1m[35m (
|
782
|
-
[1m[35mSQL (0.
|
783
|
-
[1m[35m (0.
|
991
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
992
|
+
[1m[35m (4.1ms)[0m [1m[35mCREATE TABLE "terms" ("id" bigserial primary key, "canvas_term_id" integer NOT NULL, "name" character varying, "start_at" timestamp, "end_at" timestamp, "workflow_state" character varying, "grading_period_group_id" integer, "sis_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
993
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
994
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
995
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
784
996
|
Migrating to CreateCourses (20170914181345)
|
785
997
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
786
|
-
[1m[35m (
|
787
|
-
[1m[35m (
|
788
|
-
[1m[35mSQL (0.
|
789
|
-
[1m[35m (0.
|
998
|
+
[1m[35m (4.1ms)[0m [1m[35mCREATE TABLE "courses" ("id" bigserial primary key, "canvas_course_id" bigint NOT NULL, "sis_id" character varying, "short_name" character varying, "long_name" character varying, "status" character varying, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
999
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
1000
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
1001
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
790
1002
|
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
791
|
-
[1m[35m (
|
792
|
-
[1m[35m (
|
793
|
-
[1m[35mSQL (0.
|
794
|
-
[1m[35m (0.
|
1003
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1004
|
+
[1m[35m (3.9ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" bigserial primary key, "started_at" timestamp, "completed_at" timestamp, "exception" character varying, "backtrace" text, "job_class" character varying, "status" character varying, "metadata" text, "job_arguments" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1005
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
1006
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
795
1007
|
Migrating to CreateUsers (20170918221413)
|
796
|
-
[1m[35m (0.
|
797
|
-
[1m[35m (
|
798
|
-
[1m[35m (
|
1008
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1009
|
+
[1m[35m (3.7ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_user_id" bigint NOT NULL, "sis_id" character varying, "email" character varying, "first_name" character varying, "last_name" character varying, "status" character varying, "login_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1010
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
799
1011
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
800
|
-
[1m[35m (0.
|
1012
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
801
1013
|
Migrating to CreateSections (20171107213207)
|
802
|
-
[1m[35m (0.
|
803
|
-
[1m[35m (
|
804
|
-
[1m[35m (1.
|
805
|
-
[1m[35m (1.
|
806
|
-
[1m[35mSQL (0.
|
807
|
-
[1m[35m (0.
|
1014
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
1015
|
+
[1m[35m (3.3ms)[0m [1m[35mCREATE TABLE "sections" ("id" bigserial primary key, "canvas_section_id" bigint NOT NULL, "sis_id" character varying, "canvas_course_id" bigint, "canvas_nonxlist_course_id" bigint, "name" character varying, "status" character varying, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1016
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
1017
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
1018
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
1019
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
808
1020
|
Migrating to CreateRoles (20180103162102)
|
809
1021
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
810
|
-
[1m[35m (
|
811
|
-
[1m[35m (1.
|
1022
|
+
[1m[35m (3.6ms)[0m [1m[35mCREATE TABLE "roles" ("id" bigserial primary key, "canvas_role_id" integer NOT NULL, "label" character varying NOT NULL, "base_role_type" character varying NOT NULL, "account" json, "workflow_state" character varying NOT NULL, "permissions" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1023
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
812
1024
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
813
|
-
[1m[35m (0.
|
1025
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
814
1026
|
Migrating to CreateAdmins (20180109210452)
|
815
|
-
[1m[35m (0.
|
816
|
-
[1m[35m (
|
817
|
-
[1m[35m (1.
|
1027
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1028
|
+
[1m[35m (3.5ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_admin_id" bigint NOT NULL, "role_name" character varying, "canvas_role_id" bigint NOT NULL, "user_data" json, "canvas_user_id" bigint NOT NULL, "workflow_state" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1029
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
818
1030
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
819
|
-
[1m[35m (0.
|
820
|
-
Migrating to
|
1031
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
1032
|
+
Migrating to CreateSubmissions (20180213235544)
|
821
1033
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
822
|
-
[1m[35m (
|
823
|
-
[1m[35m (
|
824
|
-
[1m[35m (
|
825
|
-
[1m[
|
826
|
-
[1m[35m (
|
827
|
-
[1m[
|
1034
|
+
[1m[35m (2.9ms)[0m [1m[35mCREATE TABLE "submissions" ("id" bigserial primary key, "canvas_submission_id" bigint NOT NULL, "canvas_course_id" bigint, "canvas_assignment_id" bigint, "canvas_user_id" bigint, "submitted_at" timestamp, "graded_at" timestamp, "score" integer, "points_possible" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1035
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
1036
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
1037
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
1038
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
1039
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180213235544"]]
|
1040
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
1041
|
+
Migrating to CreateAssignments (20180215214227)
|
1042
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
1043
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE TABLE "assignments" ("id" bigserial primary key, "canvas_assignment_id" bigint NOT NULL, "title" character varying, "description" text, "due_at" timestamp, "unlock_at" timestamp, "lock_at" timestamp, "points_possible" integer, "min_score" integer, "max_score" integer, "mastery_score" integer, "grading_type" character varying, "submission_types" character varying, "workflow_state" character varying, "context_id" integer, "context_type" character varying, "canvas_assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1044
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
1045
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
1046
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180215214227"]]
|
1047
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
1048
|
+
Migrating to CreateAssignmentGroups (20180215220605)
|
828
1049
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
829
|
-
[1m[
|
1050
|
+
[1m[35m (4.1ms)[0m [1m[35mCREATE TABLE "assignment_groups" ("id" bigserial primary key, "canvas_assignment_group_id" bigint NOT NULL, "canvas_course_id" bigint, "name" character varying, "rules" text, "default_assignment_name" character varying, "position" integer, "assignment_weighting_scheme" text, "group_weight" float, "workflow_state" character varying, "canvas_created_at" timestamp, "canvas_updated_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1051
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignment_groups_on_canvas_assignment_group_id" ON "assignment_groups" ("canvas_assignment_group_id")[0m
|
1052
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_assignment_groups_on_canvas_course_id" ON "assignment_groups" ("canvas_course_id")[0m
|
1053
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180215220605"]]
|
1054
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
1055
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.9ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
1056
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
1057
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-02-15 22:06:17.250893"], ["updated_at", "2018-02-15 22:06:17.250893"]]
|
830
1058
|
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
831
|
-
[1m[35m (0.
|
832
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
833
|
-
[1m[35m (4.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
834
|
-
[1m[35m (8.7ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1059
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
835
1060
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1061
|
+
[1m[35m (2.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1062
|
+
[1m[35m (9.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1063
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
836
1064
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
837
1065
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
838
|
-
[1m[35m (0.
|
839
|
-
[1m[35m (
|
840
|
-
[1m[35m (
|
841
|
-
[1m[35m (
|
842
|
-
[1m[35m (3.
|
1066
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1067
|
+
[1m[35m (125.5ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
1068
|
+
[1m[35m (125.8ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
1069
|
+
[1m[35m (18.5ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
1070
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
843
1071
|
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
844
|
-
[1m[35m (1.
|
1072
|
+
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
845
1073
|
Migrating to CreateEnrollments (20170905192509)
|
846
|
-
[1m[35m (0.
|
847
|
-
[1m[35m (
|
848
|
-
[1m[35m (
|
849
|
-
[1m[35m (
|
850
|
-
[1m[35m (1.
|
851
|
-
[1m[35mSQL (0.
|
852
|
-
[1m[35m (0.
|
1074
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1075
|
+
[1m[35m (5.3ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" bigserial primary key, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" character varying, "canvas_user_id" bigint, "user_sis_id" character varying, "role" character varying, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" character varying, "status" character varying, "base_role_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1076
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
1077
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
1078
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
1079
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
1080
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
853
1081
|
Migrating to CreateTerms (20170906193506)
|
854
1082
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
855
|
-
[1m[35m (
|
856
|
-
[1m[35m (1.
|
1083
|
+
[1m[35m (3.9ms)[0m [1m[35mCREATE TABLE "terms" ("id" bigserial primary key, "canvas_term_id" integer NOT NULL, "name" character varying, "start_at" timestamp, "end_at" timestamp, "workflow_state" character varying, "grading_period_group_id" integer, "sis_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1084
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
857
1085
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
858
1086
|
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
859
1087
|
Migrating to CreateCourses (20170914181345)
|
860
1088
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
861
|
-
[1m[35m (
|
862
|
-
[1m[35m (1.
|
1089
|
+
[1m[35m (3.9ms)[0m [1m[35mCREATE TABLE "courses" ("id" bigserial primary key, "canvas_course_id" bigint NOT NULL, "sis_id" character varying, "short_name" character varying, "long_name" character varying, "status" character varying, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1090
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
863
1091
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
864
|
-
[1m[35m (0.
|
1092
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
865
1093
|
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
866
|
-
[1m[35m (6.0ms)[0m [1m[35mBEGIN[0m
|
867
|
-
[1m[35m (18.0ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" bigserial primary key, "started_at" timestamp, "completed_at" timestamp, "exception" character varying, "backtrace" text, "job_class" character varying, "status" character varying, "metadata" text, "job_arguments" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
868
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
869
|
-
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
870
|
-
Migrating to CreateUsers (20170918221413)
|
871
1094
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
872
|
-
[1m[35m (
|
873
|
-
[1m[
|
874
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
1095
|
+
[1m[35m (13.1ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" bigserial primary key, "started_at" timestamp, "completed_at" timestamp, "exception" character varying, "backtrace" text, "job_class" character varying, "status" character varying, "metadata" text, "job_arguments" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1096
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
875
1097
|
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1098
|
+
Migrating to CreateUsers (20170918221413)
|
1099
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
1100
|
+
[1m[35m (4.4ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_user_id" bigint NOT NULL, "sis_id" character varying, "email" character varying, "first_name" character varying, "last_name" character varying, "status" character varying, "login_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1101
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
1102
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
1103
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
876
1104
|
Migrating to CreateSections (20171107213207)
|
877
|
-
[1m[35m (0.
|
878
|
-
[1m[35m (
|
879
|
-
[1m[35m (1.
|
880
|
-
[1m[35m (1.
|
1105
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
1106
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE TABLE "sections" ("id" bigserial primary key, "canvas_section_id" bigint NOT NULL, "sis_id" character varying, "canvas_course_id" bigint, "canvas_nonxlist_course_id" bigint, "name" character varying, "status" character varying, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1107
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
1108
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
881
1109
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
882
|
-
[1m[35m (0.
|
1110
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
883
1111
|
Migrating to CreateRoles (20180103162102)
|
884
|
-
[1m[35m (0.
|
885
|
-
[1m[35m (4.
|
886
|
-
[1m[35m (1.
|
1112
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
1113
|
+
[1m[35m (4.4ms)[0m [1m[35mCREATE TABLE "roles" ("id" bigserial primary key, "canvas_role_id" integer NOT NULL, "label" character varying NOT NULL, "base_role_type" character varying NOT NULL, "account" json, "workflow_state" character varying NOT NULL, "permissions" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1114
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
887
1115
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
888
|
-
[1m[35m (0.
|
1116
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
889
1117
|
Migrating to CreateAdmins (20180109210452)
|
890
1118
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
891
|
-
[1m[35m (
|
892
|
-
[1m[35m (1.
|
893
|
-
[1m[35mSQL (0.
|
894
|
-
[1m[35m (0.
|
895
|
-
Migrating to CreateAssignments (
|
1119
|
+
[1m[35m (3.9ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_admin_id" bigint NOT NULL, "role_name" character varying, "canvas_role_id" bigint NOT NULL, "user_data" json, "canvas_user_id" bigint NOT NULL, "workflow_state" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1120
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
1121
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
1122
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
1123
|
+
Migrating to CreateAssignments (20180215214227)
|
896
1124
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
897
|
-
[1m[35m (
|
898
|
-
[1m[35m (1.
|
899
|
-
[1m[35m (1.
|
900
|
-
[1m[35mSQL (0.
|
901
|
-
[1m[35m (0.
|
902
|
-
|
1125
|
+
[1m[35m (4.6ms)[0m [1m[35mCREATE TABLE "assignments" ("id" bigserial primary key, "canvas_assignment_id" bigint NOT NULL, "title" character varying, "description" text, "due_at" timestamp, "unlock_at" timestamp, "lock_at" timestamp, "points_possible" integer, "min_score" integer, "max_score" integer, "mastery_score" integer, "grading_type" character varying, "submission_types" character varying, "workflow_state" character varying, "context_id" integer, "context_type" character varying, "canvas_assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1126
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
1127
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
1128
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180215214227"]]
|
1129
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
1130
|
+
Migrating to CreateAssignmentGroups (20180215220605)
|
903
1131
|
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
904
|
-
[1m[
|
905
|
-
[1m[35m (
|
1132
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE TABLE "assignment_groups" ("id" bigserial primary key, "canvas_assignment_group_id" bigint NOT NULL, "canvas_course_id" bigint, "name" character varying, "rules" text, "default_assignment_name" character varying, "position" integer, "assignment_weighting_scheme" text, "group_weight" float, "workflow_state" character varying, "canvas_created_at" timestamp, "canvas_updated_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1133
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignment_groups_on_canvas_assignment_group_id" ON "assignment_groups" ("canvas_assignment_group_id")[0m
|
1134
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_assignment_groups_on_canvas_course_id" ON "assignment_groups" ("canvas_course_id")[0m
|
1135
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180215220605"]]
|
1136
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
1137
|
+
Migrating to CreateSubmissions (20180216171618)
|
1138
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1139
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE TABLE "submissions" ("id" bigserial primary key, "canvas_submission_id" bigint NOT NULL, "canvas_course_id" bigint, "canvas_assignment_id" bigint, "canvas_user_id" bigint, "submitted_at" timestamp, "graded_at" timestamp, "score" integer, "points_possible" integer, "excused" boolean, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1140
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
1141
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
1142
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
1143
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
1144
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180216171618"]]
|
1145
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
1146
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.0ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
1147
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
1148
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-02-16 17:16:29.994205"], ["updated_at", "2018-02-16 17:16:29.994205"]]
|
1149
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
906
1150
|
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
907
|
-
[1m[35m (0.
|
1151
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
908
1152
|
[1m[35m (1.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
909
|
-
[1m[35m (
|
1153
|
+
[1m[35m (7.7ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
910
1154
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
911
1155
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
912
1156
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
913
1157
|
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
914
|
-
[1m[35m (
|
915
|
-
[1m[35m (
|
916
|
-
[1m[35m (
|
917
|
-
[1m[35m (
|
1158
|
+
[1m[35m (124.7ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
1159
|
+
[1m[35m (127.5ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
1160
|
+
[1m[35m (12.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
1161
|
+
[1m[35m (3.5ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
918
1162
|
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
919
|
-
[1m[35m (1.
|
1163
|
+
[1m[35m (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
920
1164
|
Migrating to CreateEnrollments (20170905192509)
|
921
1165
|
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
922
|
-
[1m[35m (
|
923
|
-
[1m[35m (1.
|
924
|
-
[1m[35m (1.
|
925
|
-
[1m[35m (1.
|
926
|
-
[1m[35mSQL (0.
|
927
|
-
[1m[35m (0.
|
1166
|
+
[1m[35m (6.0ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" bigserial primary key, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" character varying, "canvas_user_id" bigint, "user_sis_id" character varying, "role" character varying, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" character varying, "status" character varying, "base_role_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1167
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
1168
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
1169
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
1170
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
1171
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
928
1172
|
Migrating to CreateTerms (20170906193506)
|
929
1173
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
930
|
-
[1m[35m (
|
931
|
-
[1m[35m (1.
|
1174
|
+
[1m[35m (3.7ms)[0m [1m[35mCREATE TABLE "terms" ("id" bigserial primary key, "canvas_term_id" integer NOT NULL, "name" character varying, "start_at" timestamp, "end_at" timestamp, "workflow_state" character varying, "grading_period_group_id" integer, "sis_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1175
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
932
1176
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
933
1177
|
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
934
1178
|
Migrating to CreateCourses (20170914181345)
|
935
1179
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
936
|
-
[1m[35m (
|
937
|
-
[1m[35m (1.
|
1180
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE TABLE "courses" ("id" bigserial primary key, "canvas_course_id" bigint NOT NULL, "sis_id" character varying, "short_name" character varying, "long_name" character varying, "status" character varying, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1181
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
938
1182
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
939
|
-
[1m[35m (0.
|
1183
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
940
1184
|
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
941
|
-
[1m[35m (
|
942
|
-
[1m[35m (
|
1185
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
1186
|
+
[1m[35m (3.7ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" bigserial primary key, "started_at" timestamp, "completed_at" timestamp, "exception" character varying, "backtrace" text, "job_class" character varying, "status" character varying, "metadata" text, "job_arguments" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
943
1187
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
944
|
-
[1m[35m (0.
|
1188
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
945
1189
|
Migrating to CreateUsers (20170918221413)
|
946
|
-
[1m[35m (0.
|
947
|
-
[1m[35m (
|
948
|
-
[1m[35m (1.
|
1190
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
1191
|
+
[1m[35m (3.6ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_user_id" bigint NOT NULL, "sis_id" character varying, "email" character varying, "first_name" character varying, "last_name" character varying, "status" character varying, "login_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1192
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
949
1193
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
950
|
-
[1m[35m (0.
|
1194
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
951
1195
|
Migrating to CreateSections (20171107213207)
|
952
|
-
[1m[35m (0.
|
953
|
-
[1m[35m (
|
954
|
-
[1m[35m (1.
|
955
|
-
[1m[35m (1.
|
1196
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
1197
|
+
[1m[35m (3.6ms)[0m [1m[35mCREATE TABLE "sections" ("id" bigserial primary key, "canvas_section_id" bigint NOT NULL, "sis_id" character varying, "canvas_course_id" bigint, "canvas_nonxlist_course_id" bigint, "name" character varying, "status" character varying, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1198
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
1199
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
956
1200
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
957
1201
|
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
958
1202
|
Migrating to CreateRoles (20180103162102)
|
959
|
-
[1m[35m (0.
|
960
|
-
[1m[35m (
|
961
|
-
[1m[35m (1.
|
1203
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
1204
|
+
[1m[35m (3.7ms)[0m [1m[35mCREATE TABLE "roles" ("id" bigserial primary key, "canvas_role_id" integer NOT NULL, "label" character varying NOT NULL, "base_role_type" character varying NOT NULL, "account" json, "workflow_state" character varying NOT NULL, "permissions" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1205
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
962
1206
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
963
|
-
[1m[35m (0.
|
1207
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
964
1208
|
Migrating to CreateAdmins (20180109210452)
|
965
|
-
[1m[35m (0.
|
966
|
-
[1m[35m (
|
967
|
-
[1m[35m (1.
|
1209
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
1210
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_admin_id" bigint NOT NULL, "role_name" character varying, "canvas_role_id" bigint NOT NULL, "user_data" json, "canvas_user_id" bigint NOT NULL, "workflow_state" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1211
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
968
1212
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
969
|
-
[1m[35m (0.
|
970
|
-
Migrating to CreateAssignments (
|
1213
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
1214
|
+
Migrating to CreateAssignments (20180215214227)
|
971
1215
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
972
|
-
[1m[35m (
|
973
|
-
[1m[35m (1.
|
974
|
-
[1m[35m (1.
|
975
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "
|
976
|
-
[1m[35m (0.
|
977
|
-
|
1216
|
+
[1m[35m (4.4ms)[0m [1m[35mCREATE TABLE "assignments" ("id" bigserial primary key, "canvas_assignment_id" bigint NOT NULL, "title" character varying, "description" text, "due_at" timestamp, "unlock_at" timestamp, "lock_at" timestamp, "points_possible" integer, "min_score" integer, "max_score" integer, "mastery_score" integer, "grading_type" character varying, "submission_types" character varying, "workflow_state" character varying, "context_id" integer, "context_type" character varying, "canvas_assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1217
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
1218
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
1219
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180215214227"]]
|
1220
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
1221
|
+
Migrating to CreateSubmissions (20180216171618)
|
978
1222
|
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
979
|
-
[1m[
|
980
|
-
[1m[35m (
|
981
|
-
[1m[35m (
|
1223
|
+
[1m[35m (3.7ms)[0m [1m[35mCREATE TABLE "submissions" ("id" bigserial primary key, "canvas_submission_id" bigint NOT NULL, "canvas_course_id" bigint, "canvas_assignment_id" bigint, "canvas_user_id" bigint, "submitted_at" timestamp, "graded_at" timestamp, "score" integer, "points_possible" integer, "excused" boolean, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1224
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
1225
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
1226
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
1227
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
1228
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180216171618"]]
|
1229
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
1230
|
+
Migrating to CreateAccounts (20180220172559)
|
1231
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1232
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE TABLE "accounts" ("id" bigserial primary key, "canvas_account_id" bigint NOT NULL, "account_id" character varying, "canvas_parent_id" bigint, "parent_account_id" character varying, "name" character varying, "status" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1233
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_accounts_on_canvas_account_id" ON "accounts" ("canvas_account_id")[0m
|
1234
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180220172559"]]
|
1235
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
1236
|
+
Migrating to CreateAssignmentGroups (20180222163506)
|
1237
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
1238
|
+
[1m[35m (3.5ms)[0m [1m[35mCREATE TABLE "assignment_groups" ("id" bigserial primary key, "canvas_assignment_group_id" bigint NOT NULL, "canvas_course_id" bigint, "name" character varying, "rules" text, "position" integer, "group_weight" float, "workflow_state" character varying, "canvas_created_at" timestamp, "canvas_updated_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1239
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignment_groups_on_canvas_assignment_group_id" ON "assignment_groups" ("canvas_assignment_group_id")[0m
|
1240
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_assignment_groups_on_canvas_course_id" ON "assignment_groups" ("canvas_course_id")[0m
|
1241
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180222163506"]]
|
1242
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
1243
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.9ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
1244
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
1245
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-02-22 16:35:18.218730"], ["updated_at", "2018-02-22 16:35:18.218730"]]
|
1246
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
1247
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
982
1248
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|