-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
48 additions
and
7 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,8 @@ | ||
-- AlterTable | ||
ALTER TABLE "Album" ADD COLUMN "deezer_id_str" TEXT; | ||
|
||
-- AlterTable | ||
ALTER TABLE "Artist" ADD COLUMN "deezer_id_str" TEXT; | ||
|
||
-- AlterTable | ||
ALTER TABLE "Track" ADD COLUMN "deezer_id_str" TEXT; |
9 changes: 9 additions & 0 deletions
9
prisma/migrations/20231219020843_migrate_deezer_id/migration.sql
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,9 @@ | ||
-- copy deezer_id to deezer_id_str and cast | ||
UPDATE "Artist" | ||
SET "deezer_id_str" = "deezer_id"::text; | ||
|
||
UPDATE "Album" | ||
SET "deezer_id_str" = "deezer_id"::text; | ||
|
||
UPDATE "Track" | ||
SET "deezer_id_str" = "deezer_id"::text; |
8 changes: 8 additions & 0 deletions
8
prisma/migrations/20231219021123_move_deezer_id/migration.sql
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,8 @@ | ||
-- AlterTable | ||
ALTER TABLE "Album" ALTER COLUMN "deezer_id" SET DATA TYPE TEXT; | ||
|
||
-- AlterTable | ||
ALTER TABLE "Artist" ALTER COLUMN "deezer_id" SET DATA TYPE TEXT; | ||
|
||
-- AlterTable | ||
ALTER TABLE "Track" ALTER COLUMN "deezer_id" SET DATA TYPE TEXT; |
16 changes: 16 additions & 0 deletions
16
prisma/migrations/20231219021404_drop_deezer_id_str/migration.sql
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,16 @@ | ||
/* | ||
Warnings: | ||
- You are about to drop the column `deezer_id_str` on the `Album` table. All the data in the column will be lost. | ||
- You are about to drop the column `deezer_id_str` on the `Artist` table. All the data in the column will be lost. | ||
- You are about to drop the column `deezer_id_str` on the `Track` table. All the data in the column will be lost. | ||
*/ | ||
-- AlterTable | ||
ALTER TABLE "Album" DROP COLUMN "deezer_id_str"; | ||
|
||
-- AlterTable | ||
ALTER TABLE "Artist" DROP COLUMN "deezer_id_str"; | ||
|
||
-- AlterTable | ||
ALTER TABLE "Track" DROP COLUMN "deezer_id_str"; |
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