canvas_sync 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/canvas_sync/engine.rb +2 -0
- data/lib/canvas_sync/version.rb +1 -1
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +431 -0
- data/spec/dummy/log/test.log +649 -0
- data/spec/support/fixtures/reports/provisioning_csv_unzipped/courses.csv +3 -0
- data/spec/support/fixtures/reports/provisioning_csv_unzipped/users.csv +4 -0
- metadata +14 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0780224f72afc0ad3ea1f5cafa3646b46bd4fb4
|
4
|
+
data.tar.gz: 2ca1592e6775e66eba9dc6f6c827db826f800014
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c0467c8a2e272692cf978f70abb24372caef8a5c7b1684a0906ff0c5e2d63a98e3232e587d3663dc828cb2786a72d79ed04605243041e4a95adf782a8214cc1
|
7
|
+
data.tar.gz: 4bd4a204f5186bb38614846297b5ae74eb59ba0b6c520f303f4a550a69d160365c839cbf92e7e9a31bba4b0b1334afbcd50b53973d5d6632f99be2d45dbe574e
|
data/lib/canvas_sync/engine.rb
CHANGED
@@ -8,6 +8,8 @@ module CanvasSync
|
|
8
8
|
config.paths["db/migrate"].expanded.each do |expanded_path|
|
9
9
|
app.config.paths["db/migrate"] << expanded_path
|
10
10
|
end
|
11
|
+
# Apartment will modify this, but it doesn't fully support engine migrations, so we'll reset it here
|
12
|
+
ActiveRecord::Migrator.migrations_paths = Rails.application.paths['db/migrate'].to_a
|
11
13
|
end
|
12
14
|
end
|
13
15
|
end
|
data/lib/canvas_sync/version.rb
CHANGED
Binary file
|
Binary file
|
@@ -0,0 +1,431 @@
|
|
1
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
2
|
+
[1m[35m (7.3ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
3
|
+
[1m[35m (1.6ms)[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
|
4
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
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
|
149
|
+
Migrating to CreateEnrollments (20170905192509)
|
150
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
151
|
+
[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
|
152
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
153
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
154
|
+
FROM sqlite_master
|
155
|
+
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
156
|
+
UNION ALL
|
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
|
181
|
+
Migrating to CreateTerms (20170906193506)
|
182
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
183
|
+
[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
|
184
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
185
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170906193506"]]
|
186
|
+
[1m[35m (0.5ms)[0m [1m[36mcommit transaction[0m
|
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
|
202
|
+
Migrating to CreateCourses (20170914181345)
|
203
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
204
|
+
[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
|
205
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
206
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170914181345"]]
|
207
|
+
[1m[35m (1.0ms)[0m [1m[36mcommit transaction[0m
|
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
|
352
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
353
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
354
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "started_at" datetime, "completed_at" datetime, "exception" varchar, "backtrace" text, "job_class" varchar, "status" varchar, "metadata" text, "job_arguments" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
355
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170915210836"]]
|
356
|
+
[1m[35m (1.0ms)[0m [1m[36mcommit transaction[0m
|
357
|
+
Migrating to CreateUsers (20170918221413)
|
358
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
359
|
+
[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
|
360
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
361
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170918221413"]]
|
362
|
+
[1m[35m (0.9ms)[0m [1m[36mcommit transaction[0m
|
363
|
+
[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]]
|
364
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
365
|
+
[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:24:18.830692"], ["updated_at", "2017-11-02 21:24:18.830692"]]
|
366
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
367
|
+
[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[34m SELECT sql
|
369
|
+
FROM sqlite_master
|
370
|
+
WHERE name='index_courses_on_canvas_course_id' AND type='index'
|
371
|
+
UNION ALL
|
372
|
+
SELECT sql
|
373
|
+
FROM sqlite_temp_master
|
374
|
+
WHERE name='index_courses_on_canvas_course_id' AND type='index'
|
375
|
+
[0m
|
376
|
+
[1m[35m (0.5ms)[0m [1m[34m SELECT sql
|
377
|
+
FROM sqlite_master
|
378
|
+
WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
|
379
|
+
UNION ALL
|
380
|
+
SELECT sql
|
381
|
+
FROM sqlite_temp_master
|
382
|
+
WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
|
383
|
+
[0m
|
384
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
385
|
+
FROM sqlite_master
|
386
|
+
WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
|
387
|
+
UNION ALL
|
388
|
+
SELECT sql
|
389
|
+
FROM sqlite_temp_master
|
390
|
+
WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
|
391
|
+
[0m
|
392
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
393
|
+
FROM sqlite_master
|
394
|
+
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
395
|
+
UNION ALL
|
396
|
+
SELECT sql
|
397
|
+
FROM sqlite_temp_master
|
398
|
+
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
399
|
+
[0m
|
400
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
401
|
+
FROM sqlite_master
|
402
|
+
WHERE name='index_sections_on_canvas_course_id' AND type='index'
|
403
|
+
UNION ALL
|
404
|
+
SELECT sql
|
405
|
+
FROM sqlite_temp_master
|
406
|
+
WHERE name='index_sections_on_canvas_course_id' AND type='index'
|
407
|
+
[0m
|
408
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
409
|
+
FROM sqlite_master
|
410
|
+
WHERE name='index_sections_on_canvas_section_id' AND type='index'
|
411
|
+
UNION ALL
|
412
|
+
SELECT sql
|
413
|
+
FROM sqlite_temp_master
|
414
|
+
WHERE name='index_sections_on_canvas_section_id' AND type='index'
|
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
|