-
Notifications
You must be signed in to change notification settings - Fork 7
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 #1038 from kian99/migration-fix
Fixes for migration and OpenFGA port
- Loading branch information
Showing
3 changed files
with
10 additions
and
9 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 |
---|---|---|
@@ -1,11 +1,10 @@ | ||
-- 1_3.sql is a migration that alters the foreign key relationship `cloud_credentials.cloud_name -> clouds.name` to a cascade on-delete. | ||
|
||
alter table cloud_credentials | ||
drop constraint cloud_credentials_cloud_name_fkey, | ||
add constraint cloud_credentials_cloud_name_fkey | ||
foreign key (cloud_name) | ||
references clouds(name) | ||
on delete cascade; | ||
ALTER TABLE | ||
ALTER TABLE cloud_credentials | ||
DROP CONSTRAINT cloud_credentials_cloud_name_fkey, | ||
ADD CONSTRAINT cloud_credentials_cloud_name_fkey | ||
FOREIGN KEY (cloud_name) | ||
REFERENCES clouds(name) | ||
ON DELETE CASCADE; | ||
|
||
UPDATE versions SET major=1, minor=3 WHERE component='jimmdb'; |
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