Skip to content

Commit

Permalink
feat: Add migration to add new property on Application table.
Browse files Browse the repository at this point in the history
  • Loading branch information
brunomenezes committed Nov 4, 2024
1 parent e56aa9b commit 96261d0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions db/migrations/1730431676769-Data.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = class Data1730431676769 {
name = 'Data1730431676769'

async up(db) {
await db.query(`ALTER TABLE "application" ADD "rollup_version" character varying(2)`)
await db.query(`CREATE INDEX "IDX_8f14b85dc18d81b891d9ce5151" ON "application" ("rollup_version") `)
}

async down(db) {
await db.query(`ALTER TABLE "application" DROP COLUMN "rollup_version"`)
await db.query(`DROP INDEX "public"."IDX_8f14b85dc18d81b891d9ce5151"`)
}
}

0 comments on commit 96261d0

Please sign in to comment.