-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #186 from kodadot/main
- Loading branch information
Showing
6 changed files
with
39 additions
and
23 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,17 @@ | ||
module.exports = class Data1704901579526 { | ||
name = 'Data1704901579526' | ||
|
||
async up(db) { | ||
await db.query(`DROP INDEX "public"."IDX_fb5a810a729fee4b0b0d3301eb"`) | ||
await db.query(`ALTER TABLE "nft_entity" DROP COLUMN "sn"`) | ||
await db.query(`ALTER TABLE "nft_entity" ADD "sn" numeric NOT NULL`) | ||
await db.query(`CREATE INDEX "IDX_fb5a810a729fee4b0b0d3301eb" ON "nft_entity" ("sn") `) | ||
} | ||
|
||
async down(db) { | ||
await db.query(`CREATE INDEX "IDX_fb5a810a729fee4b0b0d3301eb" ON "nft_entity" ("sn") `) | ||
await db.query(`ALTER TABLE "nft_entity" ADD "sn" text NOT NULL`) | ||
await db.query(`ALTER TABLE "nft_entity" DROP COLUMN "sn"`) | ||
await db.query(`DROP INDEX "public"."IDX_fb5a810a729fee4b0b0d3301eb"`) | ||
} | ||
} |
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
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