Skip to content

Commit 7f43f77

Browse files
committed
chores: archive < 2026 migrations
1 parent 527b4d5 commit 7f43f77

221 files changed

Lines changed: 39 additions & 27 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

lib/model/knex-migrator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const withKnex = (config) => (mutator) => {
2626
};
2727

2828
// Given a database, initiates migrations on it.
29-
const migrate = (db) => db.migrate.latest({ directory: `${__dirname}/migrations` });
29+
const migrate = (db) => db.migrate.latest({ directory: [`${__dirname}/migrations/archive`, `${__dirname}/migrations`] });
3030

3131
module.exports = { knexConnect, withKnex, migrate };
3232

lib/model/knexfile.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,11 @@ setlibpqEnv(config.get('default.database'));
3535
module.exports = {
3636
client: 'pg',
3737
connection: {},
38+
migrations: {
39+
directory: [
40+
'./migrations/archive',
41+
'./migrations'
42+
]
43+
}
3844
};
3945

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "../../../../.eslintrc.json",
3+
"rules": {
4+
"no-restricted-modules": [ "error", { "patterns": [ "../../*", "!../../pure-sql-migration" ] } ]
5+
}
6+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

lib/model/migrations/20171030-01-add-default-authz-records.js renamed to lib/model/migrations/archive/20171030-01-add-default-authz-records.js

File renamed without changes.

lib/model/migrations/20171106-01-remove-user-update-timestamp.js renamed to lib/model/migrations/archive/20171106-01-remove-user-update-timestamp.js

File renamed without changes.

lib/model/migrations/20171121-01-add-submissions-constraint.js renamed to lib/model/migrations/archive/20171121-01-add-submissions-constraint.js

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)