Skip to content

Commit b551b05

Browse files
👌 Avoid removing/renaming legacy migrations.
Why? They exist in production and the the Knex system will crash if it can't find all the migrations that it expects. They can be deleted once the relevant rows are removed from the dbo.knex_migrations table in production.
1 parent 1c45458 commit b551b05

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// LEGACY: required until deleted from dbo.knex_migrations table production, after wich point they can be removed
2+
import { Knex } from "knex"
3+
4+
exports.up = async function (knex: Knex) {}
5+
6+
exports.down = async function (knex: Knex) {}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// LEGACY: required until deleted from dbo.knex_migrations table production, after wich point they can be removed
2+
import { Knex } from "knex"
3+
4+
exports.up = async function (knex: Knex, Promise: any) {}
5+
6+
exports.down = async function (knex: Knex, Promise: any) {}

src/api/data/migrations/001-add-travel-fields-to-application.ts renamed to src/api/data/migrations/003-add-travel-fields-to-application.ts

File renamed without changes.

src/api/data/migrations/002-backfill-missing-draft-fields.ts renamed to src/api/data/migrations/004-backfill-missing-draft-fields.ts

File renamed without changes.

0 commit comments

Comments
 (0)