canvas_sync 0.3.8 → 0.3.9
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/report_starter.rb +27 -3
- data/lib/canvas_sync/version.rb +1 -1
- data/spec/canvas_sync/jobs/report_starter_spec.rb +59 -1
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +425 -123
- data/spec/dummy/log/test.log +2611 -21594
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 55ece5ed1241d16dd55d06555070f6ca2a7e41f83789b1ccafc86ceab5ee06ce
|
4
|
+
data.tar.gz: fb9e4094be05238a8b35b41b10e9db950bde52a46743b06085e5966373c96a44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90ae0bc60719b0adaed1ab4b5683ef7de5b83fd038ef699969195bae05c7978664d407870f6ffb5dbe0053e827fb68f2856af43a72e2c7fbec1c49c993c3acd6
|
7
|
+
data.tar.gz: 2e51031d84c0c21d82ac0389c19558bcf5190d4cd36711a24397c29c1d5f9433c44b2bf20f20a98ff1605f13c669b2bd6cfa957616e1c37e160538ed0c7cd19f
|
@@ -7,19 +7,43 @@ module CanvasSync
|
|
7
7
|
# @param report_params [Hash] The Canvas report parameters
|
8
8
|
# @param processor [String] a stringified report processor class name
|
9
9
|
# @param options [Hash] hash of options that will be passed to the job processor
|
10
|
+
# @param allow_redownloads [Boolean] whether you want the job_chain to cache this report,
|
11
|
+
# so that any later jobs in the chain will use the same generated report
|
10
12
|
# @return [nil]
|
11
|
-
def perform(job_chain, report_name, report_params, processor, options)
|
13
|
+
def perform(job_chain, report_name, report_params, processor, options, allow_redownloads: false)
|
12
14
|
account_id = options[:account_id] || job_chain[:global_options][:account_id] || 'self'
|
13
|
-
|
15
|
+
|
16
|
+
report_id = if allow_redownloads
|
17
|
+
get_cached_report(job_chain, account_id, report_name, report_params)
|
18
|
+
else
|
19
|
+
start_report(job_chain, account_id, report_name, report_params)
|
20
|
+
end
|
14
21
|
|
15
22
|
CanvasSync::Jobs::ReportChecker.set(wait: report_checker_wait_time).perform_later(
|
16
23
|
job_chain,
|
17
24
|
report_name,
|
18
|
-
|
25
|
+
report_id,
|
19
26
|
processor,
|
20
27
|
options
|
21
28
|
)
|
22
29
|
end
|
30
|
+
|
31
|
+
private
|
32
|
+
|
33
|
+
def get_cached_report(job_chain, account_id, report_name, report_params)
|
34
|
+
if job_chain[:global_options][report_name].present?
|
35
|
+
job_chain[:global_options][report_name]
|
36
|
+
else
|
37
|
+
report_id = start_report(job_chain, account_id, report_name, report_params)
|
38
|
+
job_chain[:global_options][report_name] = report_id
|
39
|
+
report_id
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
def start_report(job_chain, account_id, report_name, report_params)
|
44
|
+
report = CanvasSync.get_canvas_sync_client(job_chain[:global_options]).start_report(account_id, report_name, report_params)
|
45
|
+
report['id']
|
46
|
+
end
|
23
47
|
end
|
24
48
|
end
|
25
49
|
end
|
data/lib/canvas_sync/version.rb
CHANGED
@@ -4,6 +4,8 @@ RSpec.describe CanvasSync::Jobs::ReportStarter do
|
|
4
4
|
let(:report_params) { { 'parameters[users]' => true } }
|
5
5
|
let(:report_name) { 'provisioning_csv' }
|
6
6
|
let(:processor) { 'CoolProcessor' }
|
7
|
+
let(:report_checker_double) { double }
|
8
|
+
let(:options) { { models: ['users'] } }
|
7
9
|
|
8
10
|
describe '#perform' do
|
9
11
|
it 'tells Canvas to start the report and then enqueues a ReportChecker with the report id' do
|
@@ -18,7 +20,63 @@ RSpec.describe CanvasSync::Jobs::ReportStarter do
|
|
18
20
|
report_name,
|
19
21
|
report_params,
|
20
22
|
processor,
|
21
|
-
|
23
|
+
options)
|
24
|
+
end
|
25
|
+
|
26
|
+
context 'allow_redownloads is true' do
|
27
|
+
context 'the report has already been cached' do
|
28
|
+
it 'runs the report checker for the already started report' do
|
29
|
+
expect_any_instance_of(Bearcat::Client).to_not receive(:start_report)
|
30
|
+
job_chain = { jobs: [], global_options: { report_name => 1 } }
|
31
|
+
|
32
|
+
expect(CanvasSync::Jobs::ReportChecker).to receive(:set).and_return(report_checker_double)
|
33
|
+
expect(report_checker_double).to receive(:perform_later).with(
|
34
|
+
job_chain,
|
35
|
+
report_name,
|
36
|
+
1,
|
37
|
+
processor,
|
38
|
+
options
|
39
|
+
)
|
40
|
+
|
41
|
+
CanvasSync::Jobs::ReportStarter.perform_now(
|
42
|
+
job_chain,
|
43
|
+
report_name,
|
44
|
+
report_params,
|
45
|
+
processor,
|
46
|
+
options,
|
47
|
+
allow_redownloads: true
|
48
|
+
)
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
context 'the report has not been started before' do
|
53
|
+
it 'starts a new report and caches the report id' do
|
54
|
+
expect_any_instance_of(Bearcat::Client).to receive(:start_report)
|
55
|
+
.with('self', report_name, report_params)
|
56
|
+
.and_return({ 'id' => 1 })
|
57
|
+
|
58
|
+
orig_job_chain = { jobs: [], global_options: {} }
|
59
|
+
new_job_chain = { jobs: [], global_options: { report_name => 1 } }
|
60
|
+
|
61
|
+
expect(CanvasSync::Jobs::ReportChecker).to receive(:set).and_return(report_checker_double)
|
62
|
+
expect(report_checker_double).to receive(:perform_later).with(
|
63
|
+
new_job_chain,
|
64
|
+
report_name,
|
65
|
+
1,
|
66
|
+
processor,
|
67
|
+
options
|
68
|
+
)
|
69
|
+
|
70
|
+
CanvasSync::Jobs::ReportStarter.perform_now(
|
71
|
+
orig_job_chain,
|
72
|
+
report_name,
|
73
|
+
report_params,
|
74
|
+
processor,
|
75
|
+
options,
|
76
|
+
allow_redownloads: true
|
77
|
+
)
|
78
|
+
end
|
79
|
+
end
|
22
80
|
end
|
23
81
|
end
|
24
82
|
end
|
Binary file
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -1,129 +1,431 @@
|
|
1
|
-
[1m[35m (
|
2
|
-
[1m[35m (
|
3
|
-
[1m[35m (
|
4
|
-
[1m[35m (
|
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
5
|
Migrating to CreateEnrollments (20170905192509)
|
6
|
-
[1m[35m (0.
|
7
|
-
[1m[35m (
|
8
|
-
[1m[35m (
|
9
|
-
[1m[35m (
|
10
|
-
|
11
|
-
|
12
|
-
|
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
|
13
37
|
Migrating to CreateTerms (20170906193506)
|
14
|
-
[1m[35m (0.
|
15
|
-
[1m[35m (
|
16
|
-
[1m[35m (
|
17
|
-
[1m[35mSQL (0.
|
18
|
-
[1m[35m (
|
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
|
19
58
|
Migrating to CreateCourses (20170914181345)
|
20
|
-
[1m[35m (0.
|
21
|
-
[1m[35m (
|
22
|
-
[1m[35m (
|
23
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (
|
24
|
-
[1m[35m (
|
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
|
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
|
30
64
|
Migrating to CreateUsers (20170918221413)
|
31
|
-
[1m[35m (0.
|
32
|
-
[1m[35m (
|
33
|
-
[1m[35m (
|
34
|
-
[1m[35mSQL (0.
|
35
|
-
[1m[35m (1.
|
36
|
-
|
37
|
-
[1m[35m (0.
|
38
|
-
[1m[
|
39
|
-
[1m[35m (
|
40
|
-
[1m[35m (
|
41
|
-
[1m[
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
[1m[
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
[1m[35m (0.1ms)[0m [1m[
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
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"]]
|
70
285
|
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
71
|
-
|
72
|
-
[1m[35m (0.
|
73
|
-
[1m[35m (
|
74
|
-
[1m[35m (
|
75
|
-
[1m[
|
76
|
-
[1m[35m (
|
77
|
-
[1m[35m (0.
|
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
|
78
367
|
[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[
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
[1m[
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
[1m[35m (0.1ms)[0m [1m[
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
[1m[
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
[1m[35m (0.1ms)[0m [1m[
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
[1m[35m (0.1ms)[0m [1m[
|
128
|
-
|
129
|
-
|
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
|