-
Notifications
You must be signed in to change notification settings - Fork 1
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 #69 from kodadot/main
🔖 Basick v13
- Loading branch information
Showing
20 changed files
with
164 additions
and
95 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
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,27 @@ | ||
module.exports = class Data1726474217825 { | ||
name = 'Data1726474217825' | ||
|
||
async up(db) { | ||
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_8fed68c917920ff529994c2c65" ON "nft_entity" ("block_number") `) | ||
await db.query(`CREATE INDEX "IDX_f0abf665028feb26e32d4201c5" ON "nft_entity" ("created_at") `) | ||
await db.query(`CREATE INDEX "IDX_fb5a810a729fee4b0b0d3301eb" ON "nft_entity" ("sn") `) | ||
await db.query(`CREATE INDEX "IDX_703bf1a1b47a340c5675fdda85" ON "collection_entity" ("block_number") `) | ||
await db.query(`CREATE INDEX "IDX_b09e3db203a007fa67648832be" ON "collection_entity" ("created_at") `) | ||
await db.query(`CREATE INDEX "IDX_8ae50565da6e56f122ccad6c57" ON "collection_entity" ("supply") `) | ||
await db.query(`CREATE INDEX "IDX_fba85326b71638259b87a35197" ON "collection_entity" ("updated_at") `) | ||
} | ||
|
||
async down(db) { | ||
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_8fed68c917920ff529994c2c65"`) | ||
await db.query(`DROP INDEX "public"."IDX_f0abf665028feb26e32d4201c5"`) | ||
await db.query(`DROP INDEX "public"."IDX_fb5a810a729fee4b0b0d3301eb"`) | ||
await db.query(`DROP INDEX "public"."IDX_703bf1a1b47a340c5675fdda85"`) | ||
await db.query(`DROP INDEX "public"."IDX_b09e3db203a007fa67648832be"`) | ||
await db.query(`DROP INDEX "public"."IDX_8ae50565da6e56f122ccad6c57"`) | ||
await db.query(`DROP INDEX "public"."IDX_fba85326b71638259b87a35197"`) | ||
} | ||
} |
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,15 @@ | ||
module.exports = class Data1726484389986 { | ||
name = 'Data1726484389986' | ||
|
||
async up(db) { | ||
await db.query(`ALTER TABLE "metadata_entity" ADD "banner" text`) | ||
await db.query(`ALTER TABLE "metadata_entity" ADD "kind" character varying(6)`) | ||
await db.query(`ALTER TABLE "collection_entity" ADD "kind" character varying(6)`) | ||
} | ||
|
||
async down(db) { | ||
await db.query(`ALTER TABLE "metadata_entity" DROP COLUMN "banner"`) | ||
await db.query(`ALTER TABLE "metadata_entity" DROP COLUMN "kind"`) | ||
await db.query(`ALTER TABLE "collection_entity" DROP COLUMN "kind"`) | ||
} | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.