-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add is short derived field to video entity (#310)
* add is shirt derived field to video entity * add indices on is short fields
- Loading branch information
1 parent
a597dbd
commit 3127350
Showing
5 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module.exports = class Data1709622091352 { | ||
name = 'Data1709622091352' | ||
|
||
async up(db) { | ||
await db.query(`ALTER TABLE "admin"."video" ADD "is_short_derived" boolean`) | ||
} | ||
|
||
async down(db) { | ||
await db.query(`ALTER TABLE "admin"."video" DROP COLUMN "is_short_derived"`) | ||
} | ||
} |
5 changes: 3 additions & 2 deletions
5
db/migrations/1708791754135-Views.js → db/migrations/1709622091505-Views.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters