Release v2.18.0: template default content
This commit is contained in:
1 parent
48e8f3eb4b
commit
24f1603b43
54 files changed
+1421
-151
No files matched your search
@@ -203,4 +203,16 @@ test('a partial timetable schema does not fast-forward migration detection', asy
|
||||
assert.ok(pendingMigrations.some(function (migration) { return migration.version === '2.6.16'; }));
|
||||
assert.ok(pendingMigrations.some(function (migration) { return migration.version === '2.6.17'; }));
|
||||
assert.ok(pendingMigrations.some(function (migration) { return migration.version === '2.6.18'; }));
|
||||
});
|
||||
|
||||
test('template region defaults migration upgrades a 2.17.5 installation', async () => {
|
||||
const pool = createPool([]);
|
||||
const pending = await getPendingMigrations(pool, { currentVersion: '2.17.5' });
|
||||
const regionContentMigration = pending.find(migration => migration.version === '2.18.0');
|
||||
|
||||
assert.ok(regionContentMigration);
|
||||
await regionContentMigration.run(pool);
|
||||
|
||||
assert.ok(pool.queries.some(([sql]) => String(sql).includes('ALTER TABLE c_template_regions ADD COLUMN default_content_json JSON NULL')));
|
||||
assert.ok(pool.queries.some(([sql]) => String(sql).includes('ALTER TABLE c_template_regions ADD COLUMN read_only TINYINT(1) NOT NULL DEFAULT 0')));
|
||||
});
|
||||
Reference in new issue
Block a user