canvas_sync 0.17.0.beta12 → 0.17.0.beta13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -0
- data/db/migrate/20201030210836_add_full_sync_to_canvas_sync_sync_batch.rb +2 -0
- data/lib/canvas_sync.rb +3 -1
- data/lib/canvas_sync/jobs/begin_sync_chain_job.rb +13 -3
- data/lib/canvas_sync/version.rb +1 -1
- data/spec/canvas_sync/canvas_sync_spec.rb +10 -10
- data/spec/dummy/db/schema.rb +2 -0
- data/spec/dummy/log/development.log +317 -0
- data/spec/dummy/log/test.log +3631 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7b76bf6c25022960d7ca9605aac613424a763171df506e19bb71ddfe7afac9c
|
4
|
+
data.tar.gz: 37919cedb89d90f6589cb049775c9a7399c7d94a5c95aeb8a5b40f02de27496d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef40e571c7b24b98102a6278f656fcb98f9f3ec960c3951df3152601cb7dedbee554991bfa5f073fb32a5ac9424da89bdab1030afe0b73b68f41c203babf6771
|
7
|
+
data.tar.gz: 674b086a5b0b5ab0e2aaefa0aa3df4a7c3efd437db171f20c96b09005b3c914e7d9abec5df215b838f07515fa7d9abba54f046b347f0a4e1b4137f0e14f1e348
|
data/README.md
CHANGED
@@ -112,6 +112,11 @@ If you pass a date to `updated_after`, this logic will be disabled unless you ex
|
|
112
112
|
- `sunday` - A full sync will run every Sunday
|
113
113
|
- `saturday/4` - A full sync will run every fourth Saturday
|
114
114
|
|
115
|
+
#### Multiple Sync Chains
|
116
|
+
If your app uses multiple Sync Chains, you may run into issues with the automatic `updated_after` and `full_sync_every` logic.
|
117
|
+
You can fix this by using custom logic or by setting the `batch_genre` parameter when creating the Job Chain. Chains will only
|
118
|
+
use chains of the same genre when computing `updated_after` and `full_sync_every`.
|
119
|
+
|
115
120
|
### Extensible chain
|
116
121
|
It is sometimes desired to extend or customize the chain of jobs that are run with CanvasSync.
|
117
122
|
This can be achieved with the following pattern:
|
@@ -1,5 +1,7 @@
|
|
1
1
|
class AddFullSyncToCanvasSyncSyncBatch < CanvasSync::MiscHelper::MigrationClass
|
2
2
|
def change
|
3
3
|
add_column :canvas_sync_sync_batches, :full_sync, :boolean, default: false
|
4
|
+
add_column :canvas_sync_sync_batches, :batch_genre, :string
|
5
|
+
add_column :canvas_sync_sync_batches, :batch_bid, :string
|
4
6
|
end
|
5
7
|
end
|
data/lib/canvas_sync.rb
CHANGED
@@ -113,7 +113,8 @@ module CanvasSync
|
|
113
113
|
account_id: nil,
|
114
114
|
updated_after: nil,
|
115
115
|
full_sync_every: nil,
|
116
|
-
|
116
|
+
batch_genre: nil,
|
117
|
+
options: {}
|
117
118
|
) # rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity, Metrics/LineLength
|
118
119
|
return unless models.present?
|
119
120
|
models.map! &:to_s
|
@@ -191,6 +192,7 @@ module CanvasSync
|
|
191
192
|
legacy_support: legacy_support,
|
192
193
|
updated_after: updated_after,
|
193
194
|
full_sync_every: full_sync_every,
|
195
|
+
batch_genre: batch_genre,
|
194
196
|
}
|
195
197
|
global_options[:account_id] = account_id if account_id.present?
|
196
198
|
global_options.merge!(options[:global]) if options[:global].present?
|
@@ -1,9 +1,13 @@
|
|
1
1
|
module CanvasSync
|
2
2
|
module Jobs
|
3
3
|
class BeginSyncChainJob < CanvasSync::Job
|
4
|
+
attr_reader :globals
|
5
|
+
|
4
6
|
def perform(chain_definition, globals = {})
|
7
|
+
@globals = globals
|
8
|
+
|
5
9
|
if !globals[:updated_after].present? || globals[:updated_after] == true
|
6
|
-
last_batch = SyncBatch.where(status: 'completed').last
|
10
|
+
last_batch = SyncBatch.where(status: 'completed', batch_genre: genre).last
|
7
11
|
globals[:full_sync_every] ||= "sunday/2"
|
8
12
|
globals[:updated_after] = last_batch&.started_at&.iso8601
|
9
13
|
end
|
@@ -15,17 +19,19 @@ module CanvasSync
|
|
15
19
|
sync_batch = SyncBatch.create!(
|
16
20
|
started_at: DateTime.now,
|
17
21
|
full_sync: globals[:updated_after] == nil,
|
22
|
+
batch_genre: genre,
|
18
23
|
status: 'processing',
|
19
24
|
)
|
20
25
|
|
21
26
|
JobBatches::Batch.new.tap do |b|
|
22
|
-
b.description = "CanvasSync Root Batch"
|
27
|
+
b.description = "CanvasSync Root Batch (SyncBatch##{sync_batch.id})"
|
23
28
|
b.on(:complete, "#{self.class.to_s}.batch_completed", sync_batch_id: sync_batch.id)
|
24
29
|
b.on(:success, "#{self.class.to_s}.batch_completed", sync_batch_id: sync_batch.id)
|
25
30
|
b.context = globals
|
26
31
|
b.jobs do
|
27
32
|
JobBatches::SerialBatchJob.perform_now(chain_definition)
|
28
33
|
end
|
34
|
+
sync_batch.update(batch_bid: b.bid)
|
29
35
|
end
|
30
36
|
end
|
31
37
|
|
@@ -52,13 +58,17 @@ module CanvasSync
|
|
52
58
|
end
|
53
59
|
|
54
60
|
def last_full_sync_record
|
55
|
-
@last_full_sync_record ||= SyncBatch.where(status: 'completed', full_sync: true).last
|
61
|
+
@last_full_sync_record ||= SyncBatch.where(status: 'completed', full_sync: true, batch_genre: genre).last
|
56
62
|
end
|
57
63
|
|
58
64
|
def last_full_sync
|
59
65
|
last_full_sync_record.started_at
|
60
66
|
end
|
61
67
|
|
68
|
+
def genre
|
69
|
+
globals[:batch_genre] || "default"
|
70
|
+
end
|
71
|
+
|
62
72
|
def self.batch_completed(status, options)
|
63
73
|
sbatch = SyncBatch.find(options['sync_batch_id'])
|
64
74
|
sbatch.update!(
|
data/lib/canvas_sync/version.rb
CHANGED
@@ -42,7 +42,7 @@ RSpec.describe CanvasSync do
|
|
42
42
|
]
|
43
43
|
}]}
|
44
44
|
]]}
|
45
|
-
], {:legacy_support=>false, :updated_after=>nil, :d=>4}],
|
45
|
+
], {:legacy_support=>false, :updated_after=>nil, :full_sync_every=>nil, :d=>4}],
|
46
46
|
})
|
47
47
|
end
|
48
48
|
|
@@ -61,7 +61,7 @@ RSpec.describe CanvasSync do
|
|
61
61
|
]
|
62
62
|
}]}
|
63
63
|
]]}
|
64
|
-
], {:legacy_support=>false, :updated_after=>nil}]
|
64
|
+
], {:legacy_support=>false, :updated_after=>nil, :full_sync_every=>nil}]
|
65
65
|
})
|
66
66
|
end
|
67
67
|
end
|
@@ -80,7 +80,7 @@ RSpec.describe CanvasSync do
|
|
80
80
|
]
|
81
81
|
}]}
|
82
82
|
]]}
|
83
|
-
], {:legacy_support=>false, :updated_after=>nil}],
|
83
|
+
], {:legacy_support=>false, :updated_after=>nil, :full_sync_every=>nil}],
|
84
84
|
})
|
85
85
|
end
|
86
86
|
end
|
@@ -100,7 +100,7 @@ RSpec.describe CanvasSync do
|
|
100
100
|
]
|
101
101
|
}]}
|
102
102
|
]]}
|
103
|
-
], {:legacy_support=>false, :updated_after=>nil}],
|
103
|
+
], {:legacy_support=>false, :updated_after=>nil, :full_sync_every=>nil}],
|
104
104
|
})
|
105
105
|
end
|
106
106
|
end
|
@@ -120,7 +120,7 @@ RSpec.describe CanvasSync do
|
|
120
120
|
]
|
121
121
|
}]}
|
122
122
|
]]}
|
123
|
-
], {:legacy_support=>false, :updated_after=>nil}],
|
123
|
+
], {:legacy_support=>false, :updated_after=>nil, :full_sync_every=>nil}],
|
124
124
|
})
|
125
125
|
end
|
126
126
|
end
|
@@ -140,7 +140,7 @@ RSpec.describe CanvasSync do
|
|
140
140
|
]
|
141
141
|
}]}
|
142
142
|
]]}
|
143
|
-
], {:legacy_support=>false, :updated_after=>nil}],
|
143
|
+
], {:legacy_support=>false, :updated_after=>nil, :full_sync_every=>nil}],
|
144
144
|
})
|
145
145
|
end
|
146
146
|
end
|
@@ -160,7 +160,7 @@ RSpec.describe CanvasSync do
|
|
160
160
|
]
|
161
161
|
}]}
|
162
162
|
]]}
|
163
|
-
], {:legacy_support=>false, :updated_after=>nil}],
|
163
|
+
], {:legacy_support=>false, :updated_after=>nil, :full_sync_every=>nil}],
|
164
164
|
})
|
165
165
|
end
|
166
166
|
end
|
@@ -181,7 +181,7 @@ RSpec.describe CanvasSync do
|
|
181
181
|
]
|
182
182
|
}]}
|
183
183
|
]]}
|
184
|
-
], {:legacy_support=>false, :updated_after=>nil}],
|
184
|
+
], {:legacy_support=>false, :updated_after=>nil, :full_sync_every=>nil}],
|
185
185
|
)
|
186
186
|
end
|
187
187
|
end
|
@@ -202,7 +202,7 @@ RSpec.describe CanvasSync do
|
|
202
202
|
]
|
203
203
|
}]}
|
204
204
|
]]}
|
205
|
-
], {:legacy_support=>false, :updated_after=>nil}],
|
205
|
+
], {:legacy_support=>false, :updated_after=>nil, :full_sync_every=>nil}],
|
206
206
|
)
|
207
207
|
end
|
208
208
|
end
|
@@ -223,7 +223,7 @@ RSpec.describe CanvasSync do
|
|
223
223
|
]
|
224
224
|
}]}
|
225
225
|
]]}
|
226
|
-
], {:legacy_support=>false, :updated_after=>nil}],
|
226
|
+
], {:legacy_support=>false, :updated_after=>nil, :full_sync_every=>nil}],
|
227
227
|
)
|
228
228
|
end
|
229
229
|
end
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -106,6 +106,8 @@ ActiveRecord::Schema.define(version: 2020_10_30_210836) do
|
|
106
106
|
t.datetime "created_at"
|
107
107
|
t.datetime "updated_at"
|
108
108
|
t.boolean "full_sync", default: false
|
109
|
+
t.string "batch_genre"
|
110
|
+
t.string "batch_bid"
|
109
111
|
end
|
110
112
|
|
111
113
|
create_table "context_module_items", force: :cascade do |t|
|
@@ -4134,3 +4134,320 @@ Migrating to AddFullSyncToCanvasSyncSyncBatch (20201030210836)
|
|
4134
4134
|
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
4135
4135
|
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
4136
4136
|
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
4137
|
+
[1m[35m (27.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
4138
|
+
[1m[35m (13.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
4139
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
4140
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
4141
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
4142
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
4143
|
+
[1m[35m (355.0ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
4144
|
+
[1m[35m (244.9ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
4145
|
+
[1m[35m (803.9ms)[0m [1m[35mCREATE DATABASE "canvas_sync_development" ENCODING = 'unicode'[0m
|
4146
|
+
[1m[35m (753.2ms)[0m [1m[35mCREATE DATABASE "canvas_sync_test" ENCODING = 'unicode'[0m
|
4147
|
+
[1m[35m (287.4ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
4148
|
+
[1m[35m (51.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4149
|
+
[1m[35m (3.8ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
4150
|
+
[1m[35m (22.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
4151
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
4152
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
4153
|
+
[1m[35m (64.9ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" serial NOT NULL 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, "updated_at" timestamp)[0m
|
4154
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
4155
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
4156
|
+
Migrating to AddJobIdToCanvasSyncJobLogs (20180725155729)
|
4157
|
+
[1m[35m (5.7ms)[0m [1m[35mBEGIN[0m
|
4158
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "canvas_sync_job_logs" ADD "job_id" character varying[0m
|
4159
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_canvas_sync_job_logs_on_job_id" ON "canvas_sync_job_logs" ("job_id")[0m
|
4160
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180725155729"]]
|
4161
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
4162
|
+
Migrating to CreateUsers (20190702203620)
|
4163
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
4164
|
+
[1m[35m (21.4ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "sis_id" character varying, "email" character varying, "first_name" character varying, "last_name" character varying, "workflow_state" character varying, "login_id" character varying, "name" character varying, "sortable_name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4165
|
+
[1m[35m (15.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_id" ON "users" ("canvas_id")[0m
|
4166
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190702203620"]]
|
4167
|
+
[1m[35m (4.6ms)[0m [1m[35mCOMMIT[0m
|
4168
|
+
Migrating to CreateCourses (20190702203621)
|
4169
|
+
[1m[35m (12.0ms)[0m [1m[35mBEGIN[0m
|
4170
|
+
[1m[35m (21.9ms)[0m [1m[35mCREATE TABLE "courses" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "sis_id" character varying, "course_code" character varying, "name" character varying, "workflow_state" character varying, "canvas_account_id" integer, "canvas_term_id" integer, "start_at" timestamp, "end_at" timestamp, "grading_standard_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4171
|
+
[1m[35m (7.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_id" ON "courses" ("canvas_id")[0m
|
4172
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190702203621"]]
|
4173
|
+
[1m[35m (11.7ms)[0m [1m[35mCOMMIT[0m
|
4174
|
+
Migrating to CreateAccounts (20190702203622)
|
4175
|
+
[1m[35m (11.2ms)[0m [1m[35mBEGIN[0m
|
4176
|
+
[1m[35m (17.8ms)[0m [1m[35mCREATE TABLE "accounts" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "sis_id" character varying, "canvas_parent_account_id" bigint, "sis_parent_account_id" character varying, "name" character varying, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4177
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_accounts_on_canvas_id" ON "accounts" ("canvas_id")[0m
|
4178
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190702203622"]]
|
4179
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
4180
|
+
Migrating to CreateTerms (20190702203623)
|
4181
|
+
[1m[35m (5.9ms)[0m [1m[35mBEGIN[0m
|
4182
|
+
[1m[35m (22.2ms)[0m [1m[35mCREATE TABLE "terms" ("id" bigserial primary key, "canvas_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
|
4183
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_id" ON "terms" ("canvas_id")[0m
|
4184
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190702203623"]]
|
4185
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
4186
|
+
Migrating to CreateEnrollments (20190702203624)
|
4187
|
+
[1m[35m (5.5ms)[0m [1m[35mBEGIN[0m
|
4188
|
+
[1m[35m (32.1ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" bigserial primary key, "canvas_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, "canvas_role_id" integer, "canvas_section_id" bigint, "workflow_state" character varying, "base_role_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4189
|
+
[1m[35m (13.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_id" ON "enrollments" ("canvas_id")[0m
|
4190
|
+
[1m[35m (15.8ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
4191
|
+
[1m[35m (13.4ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
4192
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190702203624"]]
|
4193
|
+
[1m[35m (16.0ms)[0m [1m[35mCOMMIT[0m
|
4194
|
+
Migrating to CreateSections (20190702203625)
|
4195
|
+
[1m[35m (14.9ms)[0m [1m[35mBEGIN[0m
|
4196
|
+
[1m[35m (60.4ms)[0m [1m[35mCREATE TABLE "sections" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "sis_id" character varying, "canvas_course_id" bigint, "canvas_nonxlist_course_id" bigint, "name" character varying, "workflow_state" character varying, "start_at" timestamp, "end_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4197
|
+
[1m[35m (7.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_id" ON "sections" ("canvas_id")[0m
|
4198
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
4199
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190702203625"]]
|
4200
|
+
[1m[35m (0.7ms)[0m [1m[35mCOMMIT[0m
|
4201
|
+
Migrating to CreateAssignments (20190702203626)
|
4202
|
+
[1m[35m (6.3ms)[0m [1m[35mBEGIN[0m
|
4203
|
+
[1m[35m (27.6ms)[0m [1m[35mCREATE TABLE "assignments" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "title" character varying, "description" text, "due_at" timestamp, "unlock_at" timestamp, "lock_at" timestamp, "points_possible" float, "min_score" float, "max_score" float, "mastery_score" float, "grading_type" character varying, "submission_types" character varying, "workflow_state" character varying, "canvas_context_id" integer, "canvas_context_type" character varying, "canvas_assignment_group_id" integer, "canvas_grading_scheme_id" integer, "canvas_grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4204
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_id" ON "assignments" ("canvas_id")[0m
|
4205
|
+
[1m[35m (3.2ms)[0m [1m[35mCREATE INDEX "index_assignments_on_canvas_context_id_and_canvas_context_type" ON "assignments" ("canvas_context_id", "canvas_context_type")[0m
|
4206
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190702203626"]]
|
4207
|
+
[1m[35m (0.8ms)[0m [1m[35mCOMMIT[0m
|
4208
|
+
Migrating to CreateSubmissions (20190702203627)
|
4209
|
+
[1m[35m (5.8ms)[0m [1m[35mBEGIN[0m
|
4210
|
+
[1m[35m (23.9ms)[0m [1m[35mCREATE TABLE "submissions" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "canvas_course_id" bigint, "canvas_assignment_id" bigint, "canvas_user_id" bigint, "submitted_at" timestamp, "due_at" timestamp, "graded_at" timestamp, "score" float, "points_possible" float, "excused" boolean, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4211
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_id" ON "submissions" ("canvas_id")[0m
|
4212
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
4213
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
4214
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
4215
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190702203627"]]
|
4216
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
4217
|
+
Migrating to CreateAssignmentGroups (20190702203630)
|
4218
|
+
[1m[35m (12.1ms)[0m [1m[35mBEGIN[0m
|
4219
|
+
[1m[35m (17.4ms)[0m [1m[35mCREATE TABLE "assignment_groups" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "canvas_course_id" bigint, "name" character varying, "rules" text, "position" integer, "group_weight" float, "workflow_state" character varying, "canvas_created_at" timestamp, "canvas_updated_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4220
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignment_groups_on_canvas_id" ON "assignment_groups" ("canvas_id")[0m
|
4221
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_assignment_groups_on_canvas_course_id" ON "assignment_groups" ("canvas_course_id")[0m
|
4222
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190702203630"]]
|
4223
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
4224
|
+
Migrating to CreateContextModules (20190702203631)
|
4225
|
+
[1m[35m (10.2ms)[0m [1m[35mBEGIN[0m
|
4226
|
+
[1m[35m (19.3ms)[0m [1m[35mCREATE TABLE "context_modules" ("id" bigserial primary key, "canvas_id" bigint, "canvas_context_id" bigint, "canvas_context_type" character varying, "position" integer, "name" character varying, "workflow_state" character varying, "deleted_at" timestamp, "unlock_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4227
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_context_modules_on_canvas_id" ON "context_modules" ("canvas_id")[0m
|
4228
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_context_modules_on_context" ON "context_modules" ("canvas_context_id", "canvas_context_type")[0m
|
4229
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190702203631"]]
|
4230
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
4231
|
+
Migrating to CreateContextModuleItems (20190702203632)
|
4232
|
+
[1m[35m (6.1ms)[0m [1m[35mBEGIN[0m
|
4233
|
+
[1m[35m (34.4ms)[0m [1m[35mCREATE TABLE "context_module_items" ("id" bigserial primary key, "canvas_id" bigint, "canvas_context_module_id" bigint, "position" integer, "canvas_content_id" bigint, "canvas_content_type" character varying, "canvas_assignment_id" bigint, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4234
|
+
[1m[35m (7.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_context_module_items_on_canvas_id" ON "context_module_items" ("canvas_id")[0m
|
4235
|
+
[1m[35m (20.2ms)[0m [1m[35mCREATE INDEX "index_context_module_items_on_canvas_context_module_id" ON "context_module_items" ("canvas_context_module_id")[0m
|
4236
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190702203632"]]
|
4237
|
+
[1m[35m (22.1ms)[0m [1m[35mCOMMIT[0m
|
4238
|
+
Migrating to AddForkCountToCanvasSyncJobLogs (20190916154829)
|
4239
|
+
[1m[35m (21.5ms)[0m [1m[35mBEGIN[0m
|
4240
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "canvas_sync_job_logs" ADD "fork_count" integer[0m
|
4241
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190916154829"]]
|
4242
|
+
[1m[35m (15.6ms)[0m [1m[35mCOMMIT[0m
|
4243
|
+
Migrating to CreateRoles (20190927204545)
|
4244
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
4245
|
+
[1m[35m (25.8ms)[0m [1m[35mCREATE TABLE "roles" ("id" bigserial primary key, "canvas_id" integer NOT NULL, "label" character varying, "base_role_type" character varying, "canvas_account_id" integer, "workflow_state" character varying, "permissions" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4246
|
+
[1m[35m (21.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_id" ON "roles" ("canvas_id")[0m
|
4247
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_roles_on_canvas_account_id" ON "roles" ("canvas_account_id")[0m
|
4248
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190927204545"]]
|
4249
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
4250
|
+
Migrating to CreateAdmins (20190927204546)
|
4251
|
+
[1m[35m (6.7ms)[0m [1m[35mBEGIN[0m
|
4252
|
+
[1m[35m (24.3ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "role_name" character varying, "canvas_account_id" bigint, "canvas_role_id" bigint, "canvas_user_id" bigint, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4253
|
+
[1m[35m (14.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_id" ON "admins" ("canvas_id")[0m
|
4254
|
+
[1m[35m (13.4ms)[0m [1m[35mCREATE INDEX "index_admins_on_canvas_role_id" ON "admins" ("canvas_role_id")[0m
|
4255
|
+
[1m[35m (4.4ms)[0m [1m[35mCREATE INDEX "index_admins_on_canvas_user_id" ON "admins" ("canvas_user_id")[0m
|
4256
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_admins_on_canvas_account_id" ON "admins" ("canvas_account_id")[0m
|
4257
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190927204546"]]
|
4258
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
4259
|
+
Migrating to CreateGroups (20200415171620)
|
4260
|
+
[1m[35m (5.7ms)[0m [1m[35mBEGIN[0m
|
4261
|
+
[1m[35m (41.2ms)[0m [1m[35mCREATE TABLE "groups" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "sis_id" character varying, "canvas_group_category_id" bigint, "group_category_sis_id" character varying, "canvas_account_id" bigint, "canvas_course_id" bigint, "name" character varying, "workflow_state" character varying, "context_id" bigint, "context_type" character varying, "max_membership" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4262
|
+
[1m[35m (5.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_groups_on_canvas_id" ON "groups" ("canvas_id")[0m
|
4263
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20200415171620"]]
|
4264
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
4265
|
+
Migrating to CreateGroupMemberships (20200416214248)
|
4266
|
+
[1m[35m (11.1ms)[0m [1m[35mBEGIN[0m
|
4267
|
+
[1m[35m (16.0ms)[0m [1m[35mCREATE TABLE "group_memberships" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "canvas_user_id" bigint NOT NULL, "canvas_group_id" bigint NOT NULL, "group_sis_id" character varying, "user_sis_id" character varying, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4268
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_group_memberships_on_canvas_id" ON "group_memberships" ("canvas_id")[0m
|
4269
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20200416214248"]]
|
4270
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
4271
|
+
Migrating to CreatePseudonyms (20201016181346)
|
4272
|
+
[1m[35m (10.3ms)[0m [1m[35mBEGIN[0m
|
4273
|
+
[1m[35m (31.0ms)[0m [1m[35mCREATE TABLE "pseudonyms" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "canvas_user_id" bigint, "sis_id" character varying, "unique_id" character varying, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4274
|
+
[1m[35m (14.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_pseudonyms_on_canvas_id" ON "pseudonyms" ("canvas_id")[0m
|
4275
|
+
[1m[35m (15.9ms)[0m [1m[35mCREATE INDEX "index_pseudonyms_on_canvas_user_id" ON "pseudonyms" ("canvas_user_id")[0m
|
4276
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20201016181346"]]
|
4277
|
+
[1m[35m (14.6ms)[0m [1m[35mCOMMIT[0m
|
4278
|
+
Migrating to CreateCanvasSyncSyncBatches (20201018210836)
|
4279
|
+
[1m[35m (6.2ms)[0m [1m[35mBEGIN[0m
|
4280
|
+
[1m[35m (22.1ms)[0m [1m[35mCREATE TABLE "canvas_sync_sync_batches" ("id" serial NOT NULL PRIMARY KEY, "started_at" timestamp, "completed_at" timestamp, "status" character varying, "created_at" timestamp, "updated_at" timestamp)[0m
|
4281
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20201018210836"]]
|
4282
|
+
[1m[35m (12.2ms)[0m [1m[35mCOMMIT[0m
|
4283
|
+
Migrating to AddFullSyncToCanvasSyncSyncBatch (20201030210836)
|
4284
|
+
[1m[35m (11.6ms)[0m [1m[35mBEGIN[0m
|
4285
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "canvas_sync_sync_batches" ADD "full_sync" boolean DEFAULT FALSE[0m
|
4286
|
+
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "canvas_sync_sync_batches" ADD "batch_bid" character varying[0m
|
4287
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20201030210836"]]
|
4288
|
+
[1m[35m (6.2ms)[0m [1m[35mCOMMIT[0m
|
4289
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
4290
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
4291
|
+
[1m[36mActiveRecord::InternalMetadata Create (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", "2020-10-30 22:25:07.136658"], ["updated_at", "2020-10-30 22:25:07.136658"]]
|
4292
|
+
[1m[35m (6.3ms)[0m [1m[35mCOMMIT[0m
|
4293
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
4294
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
4295
|
+
[1m[35m (2.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
4296
|
+
[1m[35m (1.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
4297
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
4298
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
4299
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
4300
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
4301
|
+
[1m[35m (381.8ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
4302
|
+
[1m[35m (352.4ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
4303
|
+
[1m[35m (1221.3ms)[0m [1m[35mCREATE DATABASE "canvas_sync_development" ENCODING = 'unicode'[0m
|
4304
|
+
[1m[35m (630.6ms)[0m [1m[35mCREATE DATABASE "canvas_sync_test" ENCODING = 'unicode'[0m
|
4305
|
+
[1m[35m (145.6ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
4306
|
+
[1m[35m (24.2ms)[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
|
4307
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
4308
|
+
[1m[35m (1.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
4309
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
4310
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
4311
|
+
[1m[35m (54.9ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" serial NOT NULL 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, "updated_at" timestamp)[0m
|
4312
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
4313
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
4314
|
+
Migrating to AddJobIdToCanvasSyncJobLogs (20180725155729)
|
4315
|
+
[1m[35m (6.0ms)[0m [1m[35mBEGIN[0m
|
4316
|
+
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "canvas_sync_job_logs" ADD "job_id" character varying[0m
|
4317
|
+
[1m[35m (2.8ms)[0m [1m[35mCREATE INDEX "index_canvas_sync_job_logs_on_job_id" ON "canvas_sync_job_logs" ("job_id")[0m
|
4318
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180725155729"]]
|
4319
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
4320
|
+
Migrating to CreateUsers (20190702203620)
|
4321
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
4322
|
+
[1m[35m (26.6ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "sis_id" character varying, "email" character varying, "first_name" character varying, "last_name" character varying, "workflow_state" character varying, "login_id" character varying, "name" character varying, "sortable_name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4323
|
+
[1m[35m (2.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_id" ON "users" ("canvas_id")[0m
|
4324
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190702203620"]]
|
4325
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
4326
|
+
Migrating to CreateCourses (20190702203621)
|
4327
|
+
[1m[35m (6.0ms)[0m [1m[35mBEGIN[0m
|
4328
|
+
[1m[35m (23.5ms)[0m [1m[35mCREATE TABLE "courses" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "sis_id" character varying, "course_code" character varying, "name" character varying, "workflow_state" character varying, "canvas_account_id" integer, "canvas_term_id" integer, "start_at" timestamp, "end_at" timestamp, "grading_standard_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4329
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_id" ON "courses" ("canvas_id")[0m
|
4330
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190702203621"]]
|
4331
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
4332
|
+
Migrating to CreateAccounts (20190702203622)
|
4333
|
+
[1m[35m (6.3ms)[0m [1m[35mBEGIN[0m
|
4334
|
+
[1m[35m (37.8ms)[0m [1m[35mCREATE TABLE "accounts" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "sis_id" character varying, "canvas_parent_account_id" bigint, "sis_parent_account_id" character varying, "name" character varying, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4335
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_accounts_on_canvas_id" ON "accounts" ("canvas_id")[0m
|
4336
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190702203622"]]
|
4337
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
4338
|
+
Migrating to CreateTerms (20190702203623)
|
4339
|
+
[1m[35m (15.2ms)[0m [1m[35mBEGIN[0m
|
4340
|
+
[1m[35m (13.1ms)[0m [1m[35mCREATE TABLE "terms" ("id" bigserial primary key, "canvas_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
|
4341
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_id" ON "terms" ("canvas_id")[0m
|
4342
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190702203623"]]
|
4343
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
4344
|
+
Migrating to CreateEnrollments (20190702203624)
|
4345
|
+
[1m[35m (16.2ms)[0m [1m[35mBEGIN[0m
|
4346
|
+
[1m[35m (12.1ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" bigserial primary key, "canvas_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, "canvas_role_id" integer, "canvas_section_id" bigint, "workflow_state" character varying, "base_role_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4347
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_id" ON "enrollments" ("canvas_id")[0m
|
4348
|
+
[1m[35m (7.1ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
4349
|
+
[1m[35m (18.1ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
4350
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190702203624"]]
|
4351
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
4352
|
+
Migrating to CreateSections (20190702203625)
|
4353
|
+
[1m[35m (11.3ms)[0m [1m[35mBEGIN[0m
|
4354
|
+
[1m[35m (40.5ms)[0m [1m[35mCREATE TABLE "sections" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "sis_id" character varying, "canvas_course_id" bigint, "canvas_nonxlist_course_id" bigint, "name" character varying, "workflow_state" character varying, "start_at" timestamp, "end_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4355
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_id" ON "sections" ("canvas_id")[0m
|
4356
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
4357
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190702203625"]]
|
4358
|
+
[1m[35m (0.7ms)[0m [1m[35mCOMMIT[0m
|
4359
|
+
Migrating to CreateAssignments (20190702203626)
|
4360
|
+
[1m[35m (5.6ms)[0m [1m[35mBEGIN[0m
|
4361
|
+
[1m[35m (22.6ms)[0m [1m[35mCREATE TABLE "assignments" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "title" character varying, "description" text, "due_at" timestamp, "unlock_at" timestamp, "lock_at" timestamp, "points_possible" float, "min_score" float, "max_score" float, "mastery_score" float, "grading_type" character varying, "submission_types" character varying, "workflow_state" character varying, "canvas_context_id" integer, "canvas_context_type" character varying, "canvas_assignment_group_id" integer, "canvas_grading_scheme_id" integer, "canvas_grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4362
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_id" ON "assignments" ("canvas_id")[0m
|
4363
|
+
[1m[35m (7.0ms)[0m [1m[35mCREATE INDEX "index_assignments_on_canvas_context_id_and_canvas_context_type" ON "assignments" ("canvas_context_id", "canvas_context_type")[0m
|
4364
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190702203626"]]
|
4365
|
+
[1m[35m (27.8ms)[0m [1m[35mCOMMIT[0m
|
4366
|
+
Migrating to CreateSubmissions (20190702203627)
|
4367
|
+
[1m[35m (11.1ms)[0m [1m[35mBEGIN[0m
|
4368
|
+
[1m[35m (39.2ms)[0m [1m[35mCREATE TABLE "submissions" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "canvas_course_id" bigint, "canvas_assignment_id" bigint, "canvas_user_id" bigint, "submitted_at" timestamp, "due_at" timestamp, "graded_at" timestamp, "score" float, "points_possible" float, "excused" boolean, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4369
|
+
[1m[35m (18.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_id" ON "submissions" ("canvas_id")[0m
|
4370
|
+
[1m[35m (7.9ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
4371
|
+
[1m[35m (9.9ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
4372
|
+
[1m[35m (12.8ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
4373
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190702203627"]]
|
4374
|
+
[1m[35m (21.7ms)[0m [1m[35mCOMMIT[0m
|
4375
|
+
Migrating to CreateAssignmentGroups (20190702203630)
|
4376
|
+
[1m[35m (14.4ms)[0m [1m[35mBEGIN[0m
|
4377
|
+
[1m[35m (80.7ms)[0m [1m[35mCREATE TABLE "assignment_groups" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "canvas_course_id" bigint, "name" character varying, "rules" text, "position" integer, "group_weight" float, "workflow_state" character varying, "canvas_created_at" timestamp, "canvas_updated_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4378
|
+
[1m[35m (7.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignment_groups_on_canvas_id" ON "assignment_groups" ("canvas_id")[0m
|
4379
|
+
[1m[35m (7.2ms)[0m [1m[35mCREATE INDEX "index_assignment_groups_on_canvas_course_id" ON "assignment_groups" ("canvas_course_id")[0m
|
4380
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190702203630"]]
|
4381
|
+
[1m[35m (6.1ms)[0m [1m[35mCOMMIT[0m
|
4382
|
+
Migrating to CreateContextModules (20190702203631)
|
4383
|
+
[1m[35m (6.0ms)[0m [1m[35mBEGIN[0m
|
4384
|
+
[1m[35m (22.7ms)[0m [1m[35mCREATE TABLE "context_modules" ("id" bigserial primary key, "canvas_id" bigint, "canvas_context_id" bigint, "canvas_context_type" character varying, "position" integer, "name" character varying, "workflow_state" character varying, "deleted_at" timestamp, "unlock_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4385
|
+
[1m[35m (9.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_context_modules_on_canvas_id" ON "context_modules" ("canvas_id")[0m
|
4386
|
+
[1m[35m (13.6ms)[0m [1m[35mCREATE INDEX "index_context_modules_on_context" ON "context_modules" ("canvas_context_id", "canvas_context_type")[0m
|
4387
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190702203631"]]
|
4388
|
+
[1m[35m (11.4ms)[0m [1m[35mCOMMIT[0m
|
4389
|
+
Migrating to CreateContextModuleItems (20190702203632)
|
4390
|
+
[1m[35m (15.2ms)[0m [1m[35mBEGIN[0m
|
4391
|
+
[1m[35m (32.0ms)[0m [1m[35mCREATE TABLE "context_module_items" ("id" bigserial primary key, "canvas_id" bigint, "canvas_context_module_id" bigint, "position" integer, "canvas_content_id" bigint, "canvas_content_type" character varying, "canvas_assignment_id" bigint, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4392
|
+
[1m[35m (32.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_context_module_items_on_canvas_id" ON "context_module_items" ("canvas_id")[0m
|
4393
|
+
[1m[35m (12.9ms)[0m [1m[35mCREATE INDEX "index_context_module_items_on_canvas_context_module_id" ON "context_module_items" ("canvas_context_module_id")[0m
|
4394
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190702203632"]]
|
4395
|
+
[1m[35m (6.7ms)[0m [1m[35mCOMMIT[0m
|
4396
|
+
Migrating to AddForkCountToCanvasSyncJobLogs (20190916154829)
|
4397
|
+
[1m[35m (21.7ms)[0m [1m[35mBEGIN[0m
|
4398
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "canvas_sync_job_logs" ADD "fork_count" integer[0m
|
4399
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190916154829"]]
|
4400
|
+
[1m[35m (13.5ms)[0m [1m[35mCOMMIT[0m
|
4401
|
+
Migrating to CreateRoles (20190927204545)
|
4402
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
4403
|
+
[1m[35m (36.2ms)[0m [1m[35mCREATE TABLE "roles" ("id" bigserial primary key, "canvas_id" integer NOT NULL, "label" character varying, "base_role_type" character varying, "canvas_account_id" integer, "workflow_state" character varying, "permissions" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4404
|
+
[1m[35m (14.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_id" ON "roles" ("canvas_id")[0m
|
4405
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE INDEX "index_roles_on_canvas_account_id" ON "roles" ("canvas_account_id")[0m
|
4406
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190927204545"]]
|
4407
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
4408
|
+
Migrating to CreateAdmins (20190927204546)
|
4409
|
+
[1m[35m (5.6ms)[0m [1m[35mBEGIN[0m
|
4410
|
+
[1m[35m (43.8ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "role_name" character varying, "canvas_account_id" bigint, "canvas_role_id" bigint, "canvas_user_id" bigint, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4411
|
+
[1m[35m (21.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_id" ON "admins" ("canvas_id")[0m
|
4412
|
+
[1m[35m (31.8ms)[0m [1m[35mCREATE INDEX "index_admins_on_canvas_role_id" ON "admins" ("canvas_role_id")[0m
|
4413
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_admins_on_canvas_user_id" ON "admins" ("canvas_user_id")[0m
|
4414
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_admins_on_canvas_account_id" ON "admins" ("canvas_account_id")[0m
|
4415
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190927204546"]]
|
4416
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
4417
|
+
Migrating to CreateGroups (20200415171620)
|
4418
|
+
[1m[35m (5.9ms)[0m [1m[35mBEGIN[0m
|
4419
|
+
[1m[35m (54.4ms)[0m [1m[35mCREATE TABLE "groups" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "sis_id" character varying, "canvas_group_category_id" bigint, "group_category_sis_id" character varying, "canvas_account_id" bigint, "canvas_course_id" bigint, "name" character varying, "workflow_state" character varying, "context_id" bigint, "context_type" character varying, "max_membership" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4420
|
+
[1m[35m (13.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_groups_on_canvas_id" ON "groups" ("canvas_id")[0m
|
4421
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20200415171620"]]
|
4422
|
+
[1m[35m (28.4ms)[0m [1m[35mCOMMIT[0m
|
4423
|
+
Migrating to CreateGroupMemberships (20200416214248)
|
4424
|
+
[1m[35m (6.2ms)[0m [1m[35mBEGIN[0m
|
4425
|
+
[1m[35m (35.1ms)[0m [1m[35mCREATE TABLE "group_memberships" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "canvas_user_id" bigint NOT NULL, "canvas_group_id" bigint NOT NULL, "group_sis_id" character varying, "user_sis_id" character varying, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4426
|
+
[1m[35m (17.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_group_memberships_on_canvas_id" ON "group_memberships" ("canvas_id")[0m
|
4427
|
+
[1m[36mActiveRecord::SchemaMigration Create (8.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20200416214248"]]
|
4428
|
+
[1m[35m (19.1ms)[0m [1m[35mCOMMIT[0m
|
4429
|
+
Migrating to CreatePseudonyms (20201016181346)
|
4430
|
+
[1m[35m (13.3ms)[0m [1m[35mBEGIN[0m
|
4431
|
+
[1m[35m (54.2ms)[0m [1m[35mCREATE TABLE "pseudonyms" ("id" bigserial primary key, "canvas_id" bigint NOT NULL, "canvas_user_id" bigint, "sis_id" character varying, "unique_id" character varying, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4432
|
+
[1m[35m (14.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_pseudonyms_on_canvas_id" ON "pseudonyms" ("canvas_id")[0m
|
4433
|
+
[1m[35m (13.0ms)[0m [1m[35mCREATE INDEX "index_pseudonyms_on_canvas_user_id" ON "pseudonyms" ("canvas_user_id")[0m
|
4434
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20201016181346"]]
|
4435
|
+
[1m[35m (11.4ms)[0m [1m[35mCOMMIT[0m
|
4436
|
+
Migrating to CreateCanvasSyncSyncBatches (20201018210836)
|
4437
|
+
[1m[35m (15.2ms)[0m [1m[35mBEGIN[0m
|
4438
|
+
[1m[35m (61.8ms)[0m [1m[35mCREATE TABLE "canvas_sync_sync_batches" ("id" serial NOT NULL PRIMARY KEY, "started_at" timestamp, "completed_at" timestamp, "status" character varying, "created_at" timestamp, "updated_at" timestamp)[0m
|
4439
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20201018210836"]]
|
4440
|
+
[1m[35m (4.5ms)[0m [1m[35mCOMMIT[0m
|
4441
|
+
Migrating to AddFullSyncToCanvasSyncSyncBatch (20201030210836)
|
4442
|
+
[1m[35m (36.7ms)[0m [1m[35mBEGIN[0m
|
4443
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "canvas_sync_sync_batches" ADD "full_sync" boolean DEFAULT FALSE[0m
|
4444
|
+
[1m[35m (0.2ms)[0m [1m[35mALTER TABLE "canvas_sync_sync_batches" ADD "batch_genre" character varying[0m
|
4445
|
+
[1m[35m (0.2ms)[0m [1m[35mALTER TABLE "canvas_sync_sync_batches" ADD "batch_bid" character varying[0m
|
4446
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20201030210836"]]
|
4447
|
+
[1m[35m (24.5ms)[0m [1m[35mCOMMIT[0m
|
4448
|
+
[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]]
|
4449
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
4450
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.7ms)[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", "2020-10-30 22:38:37.668477"], ["updated_at", "2020-10-30 22:38:37.668477"]]
|
4451
|
+
[1m[35m (26.0ms)[0m [1m[35mCOMMIT[0m
|
4452
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
4453
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|