Skip to content

Commit ff083a5

Browse files
committed
Add v6 migration marker
1 parent ac4969e commit ff083a5

4 files changed

Lines changed: 17 additions & 63 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* This is just an empty placeholder migration to serve as a major version marker
3+
*
4+
* @param {import('sequelize').QueryInterface} queryInterface
5+
* @param {import('../lib/config')} config
6+
* @param {import('../lib/logger')} appLog
7+
*/
8+
// eslint-disable-next-line no-unused-vars
9+
async function up(queryInterface, config, appLog) {
10+
return true;
11+
}
12+
13+
module.exports = {
14+
up,
15+
};

server/test/migrations/get-db-major-version.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ describe('migrations/get-db-major-version', function () {
5454
await utils.migrate();
5555
});
5656

57-
it('After migration - major is 5', async function () {
57+
it('After migration - major is 6', async function () {
5858
const major = await utils.migrator.getDbMajorVersion();
59-
assert.strictEqual(major, 5);
59+
assert.strictEqual(major, 6);
6060
});
6161
});

server/test/migrations/make-migrator.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,5 @@ describe('lib/make-migrator', function () {
2020
await utils.migrator.migrate();
2121
const upToDate = await utils.migrator.schemaUpToDate();
2222
assert(upToDate);
23-
24-
const majorVersion = await utils.migrator.getDbMajorVersion();
25-
assert.strictEqual(majorVersion, 5);
2623
});
2724
});

server/test/migrations/old-db-to-new-db.js

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)