Skip to content

Commit

Permalink
🐛 volume by default is zero
Browse files Browse the repository at this point in the history
  • Loading branch information
vikiival committed Aug 11, 2023
1 parent bb37455 commit 66c8638
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions db/migrations/1691745365756-Data.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module.exports = class Data1691745365756 {

async up(db) {
await db.query(`ALTER TABLE "collection_entity" ADD "volume" numeric`)
await db.query(`UPDATE "collection_entity" SET "volume" = 0`)
}

async down(db) {
Expand Down

0 comments on commit 66c8638

Please sign in to comment.