canvas_sync 0.3.7 → 0.3.8
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/jobs/sync_admins_job.rb +4 -2
- data/lib/canvas_sync/jobs/sync_roles_job.rb +4 -2
- data/lib/canvas_sync/version.rb +1 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +123 -425
- data/spec/dummy/log/test.log +21864 -488
- metadata +3 -5
- 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: 96a7ba8b65d80cf63cb5118c22dab59757344809
|
4
|
+
data.tar.gz: 1b1db15a66cad100634aba19eaffa611853227b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 290645ac18e7a49eb302654a45c21205e9c7015174c9ea2db3071efc6e3d45d02beecbbecd6a7f620fbe93350e385a7bfe37b502297ca7063cd4117653cf131f
|
7
|
+
data.tar.gz: 793d07d85a67ceb4108e600bc951b0aced771014c52e910dcb81e4affca4386873b4c6ccd61efba5a7eee464c25c8d1e36bb17b0057941b126deeb6439b3a17f
|
@@ -7,10 +7,12 @@ module CanvasSync
|
|
7
7
|
# @param job_chain [Hash]
|
8
8
|
# @param options [Hash]
|
9
9
|
def perform(job_chain, options)
|
10
|
+
updated_admins = []
|
10
11
|
CanvasSync.get_canvas_sync_client(job_chain[:global_options]).account_admins('self').all_pages!.each do |admin_params|
|
11
|
-
Admin.create_or_update(admin_params)
|
12
|
+
admin = Admin.create_or_update(admin_params)
|
13
|
+
updated_admins.push(admin.id)
|
12
14
|
end
|
13
|
-
|
15
|
+
Admin.where.not(id: updated_admins).delete_all
|
14
16
|
CanvasSync.invoke_next(job_chain)
|
15
17
|
end
|
16
18
|
end
|
@@ -7,10 +7,12 @@ module CanvasSync
|
|
7
7
|
# @param job_chain [Hash]
|
8
8
|
# @param options [Hash]
|
9
9
|
def perform(job_chain, options)
|
10
|
+
updated_roles = []
|
10
11
|
CanvasSync.get_canvas_sync_client(job_chain[:global_options]).list_roles('self').all_pages!.each do |role_params|
|
11
|
-
Role.create_or_update(role_params)
|
12
|
+
role = Role.create_or_update(role_params)
|
13
|
+
updated_roles.push(role.id)
|
12
14
|
end
|
13
|
-
|
15
|
+
Role.where.not(id: updated_roles).delete_all
|
14
16
|
CanvasSync.invoke_next(job_chain)
|
15
17
|
end
|
16
18
|
end
|
data/lib/canvas_sync/version.rb
CHANGED
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -1,431 +1,129 @@
|
|
1
|
-
[1m[35m (
|
2
|
-
[1m[35m (
|
3
|
-
[1m[35m (
|
4
|
-
[1m[35m (
|
5
|
-
Migrating to CreateEnrollments (20170905192509)
|
6
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
7
|
-
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" varchar, "canvas_user_id" bigint, "user_sis_id" varchar, "role" varchar, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" varchar, "status" varchar, "base_role_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
8
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
9
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
10
|
-
FROM sqlite_master
|
11
|
-
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
12
|
-
UNION ALL
|
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
|
37
|
-
Migrating to CreateTerms (20170906193506)
|
38
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
39
|
-
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_term_id" integer NOT NULL, "name" varchar, "start_at" datetime, "end_at" datetime, "workflow_state" varchar, "grading_period_group_id" integer, "sis_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
40
|
-
[1m[35m (0.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
41
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170906193506"]]
|
42
|
-
[1m[35m (1.6ms)[0m [1m[36mcommit transaction[0m
|
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
|
58
|
-
Migrating to CreateCourses (20170914181345)
|
59
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
60
|
-
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "courses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_course_id" bigint NOT NULL, "sis_id" varchar, "short_name" varchar, "long_name" varchar, "status" varchar, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
61
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
62
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170914181345"]]
|
63
|
-
[1m[35m (1.4ms)[0m [1m[36mcommit transaction[0m
|
64
|
-
Migrating to CreateUsers (20170918221413)
|
65
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
66
|
-
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_user_id" bigint NOT NULL, "sis_id" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "status" varchar, "login_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
67
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
68
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170918221413"]]
|
69
|
-
[1m[35m (1.0ms)[0m [1m[36mcommit transaction[0m
|
70
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
71
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
72
|
-
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2017-11-02 21:22:48.791273"], ["updated_at", "2017-11-02 21:22:48.791273"]]
|
73
|
-
[1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
|
74
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
75
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
76
|
-
FROM sqlite_master
|
77
|
-
WHERE name='index_courses_on_canvas_course_id' AND type='index'
|
78
|
-
UNION ALL
|
79
|
-
SELECT sql
|
80
|
-
FROM sqlite_temp_master
|
81
|
-
WHERE name='index_courses_on_canvas_course_id' AND type='index'
|
82
|
-
[0m
|
83
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
84
|
-
FROM sqlite_master
|
85
|
-
WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
|
86
|
-
UNION ALL
|
87
|
-
SELECT sql
|
88
|
-
FROM sqlite_temp_master
|
89
|
-
WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
|
90
|
-
[0m
|
91
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
92
|
-
FROM sqlite_master
|
93
|
-
WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
|
94
|
-
UNION ALL
|
95
|
-
SELECT sql
|
96
|
-
FROM sqlite_temp_master
|
97
|
-
WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
|
98
|
-
[0m
|
99
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
100
|
-
FROM sqlite_master
|
101
|
-
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
102
|
-
UNION ALL
|
103
|
-
SELECT sql
|
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
|
148
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
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
|
149
5
|
Migrating to CreateEnrollments (20170905192509)
|
150
|
-
[1m[35m (0.
|
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
|
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
|
181
13
|
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
|
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
|
202
19
|
Migrating to CreateCourses (20170914181345)
|
203
|
-
[1m[35m (0.1ms)[0m [1m[
|
204
|
-
[1m[35m (
|
205
|
-
[1m[35m (
|
206
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (
|
207
|
-
[1m[35m (
|
208
|
-
Migrating to CreateUsers (20170918221413)
|
209
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
210
|
-
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_user_id" bigint NOT NULL, "sis_id" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "status" varchar, "login_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
211
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
212
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170918221413"]]
|
213
|
-
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
214
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
215
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
216
|
-
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2017-11-02 21:23:44.534031"], ["updated_at", "2017-11-02 21:23:44.534031"]]
|
217
|
-
[1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
|
218
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
219
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
220
|
-
FROM sqlite_master
|
221
|
-
WHERE name='index_courses_on_canvas_course_id' AND type='index'
|
222
|
-
UNION ALL
|
223
|
-
SELECT sql
|
224
|
-
FROM sqlite_temp_master
|
225
|
-
WHERE name='index_courses_on_canvas_course_id' AND type='index'
|
226
|
-
[0m
|
227
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
228
|
-
FROM sqlite_master
|
229
|
-
WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
|
230
|
-
UNION ALL
|
231
|
-
SELECT sql
|
232
|
-
FROM sqlite_temp_master
|
233
|
-
WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
|
234
|
-
[0m
|
235
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
236
|
-
FROM sqlite_master
|
237
|
-
WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
|
238
|
-
UNION ALL
|
239
|
-
SELECT sql
|
240
|
-
FROM sqlite_temp_master
|
241
|
-
WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
|
242
|
-
[0m
|
243
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
244
|
-
FROM sqlite_master
|
245
|
-
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
246
|
-
UNION ALL
|
247
|
-
SELECT sql
|
248
|
-
FROM sqlite_temp_master
|
249
|
-
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
250
|
-
[0m
|
251
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
252
|
-
FROM sqlite_master
|
253
|
-
WHERE name='index_sections_on_canvas_course_id' AND type='index'
|
254
|
-
UNION ALL
|
255
|
-
SELECT sql
|
256
|
-
FROM sqlite_temp_master
|
257
|
-
WHERE name='index_sections_on_canvas_course_id' AND type='index'
|
258
|
-
[0m
|
259
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
260
|
-
FROM sqlite_master
|
261
|
-
WHERE name='index_sections_on_canvas_section_id' AND type='index'
|
262
|
-
UNION ALL
|
263
|
-
SELECT sql
|
264
|
-
FROM sqlite_temp_master
|
265
|
-
WHERE name='index_sections_on_canvas_section_id' AND type='index'
|
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
|
293
|
-
Migrating to CreateEnrollments (20170905192509)
|
294
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
295
|
-
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" varchar, "canvas_user_id" bigint, "user_sis_id" varchar, "role" varchar, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" varchar, "status" varchar, "base_role_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
296
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
297
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
298
|
-
FROM sqlite_master
|
299
|
-
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
300
|
-
UNION ALL
|
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
|
325
|
-
Migrating to CreateTerms (20170906193506)
|
326
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
327
|
-
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_term_id" integer NOT NULL, "name" varchar, "start_at" datetime, "end_at" datetime, "workflow_state" varchar, "grading_period_group_id" integer, "sis_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
328
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
329
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170906193506"]]
|
330
|
-
[1m[35m (1.5ms)[0m [1m[36mcommit transaction[0m
|
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
|
346
|
-
Migrating to CreateCourses (20170914181345)
|
347
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
348
|
-
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "courses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_course_id" bigint NOT NULL, "sis_id" varchar, "short_name" varchar, "long_name" varchar, "status" varchar, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
349
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
350
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170914181345"]]
|
351
|
-
[1m[35m (1.1ms)[0m [1m[36mcommit transaction[0m
|
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
|
352
25
|
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
353
|
-
[1m[35m (
|
354
|
-
[1m[35m (
|
355
|
-
[1m[35mSQL (0.
|
356
|
-
[1m[35m (
|
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
|
357
30
|
Migrating to CreateUsers (20170918221413)
|
358
|
-
[1m[35m (0.
|
359
|
-
[1m[35m (
|
360
|
-
[1m[35m (
|
361
|
-
[1m[35mSQL (0.
|
362
|
-
[1m[35m (
|
363
|
-
|
364
|
-
[1m[35m (0.
|
365
|
-
[1m[
|
366
|
-
[1m[35m (
|
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
|
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
|
367
78
|
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
368
|
-
[1m[35m (0.1ms)[0m [1m[
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
[0m
|
376
|
-
[1m[
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
[0m
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
[0m
|
392
|
-
[1m[35m (0.1ms)[0m [1m[
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
[0m
|
400
|
-
[1m[
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
[0m
|
408
|
-
[1m[35m (0.1ms)[0m [1m[
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
[0m
|
416
|
-
[1m[35m (0.1ms)[0m [1m[
|
417
|
-
|
418
|
-
|
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
|
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
|