-
Notifications
You must be signed in to change notification settings - Fork 6
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 #674 from stiftelsen-effekt/dev-branch-migration-f…
…ixes Dev branch migration fixes
- Loading branch information
Showing
5 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
prisma/migrations/20230801082512_swish_rename_table/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
9 changes: 9 additions & 0 deletions
9
prisma/migrations/20230801082836_swish_non_unique_kid/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 |
---|---|---|
@@ -1,2 +1,11 @@ | ||
-- DropForeignKey | ||
ALTER TABLE `Swish_orders` DROP FOREIGN KEY `Swish_orders_KID_fkey`; | ||
|
||
-- DropIndex | ||
DROP INDEX `Swish_order_KID_key` ON `Swish_orders`; | ||
|
||
-- Add new normal (non-unique) index | ||
CREATE INDEX `Swish_orders_KID_key` ON `Swish_orders`(`KID`); | ||
|
||
-- AddForeignKey | ||
ALTER TABLE `Swish_orders` ADD CONSTRAINT `Swish_orders_KID_fkey` FOREIGN KEY (`KID`) REFERENCES `Distributions`(`KID`) ON DELETE CASCADE ON UPDATE CASCADE; |
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