-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: migrations should not be breaking
- Loading branch information
Showing
13 changed files
with
5 additions
and
24 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions
2
...908104443000000_drop_internal_id.down.sql → ...908104443000000_change_client_pk.down.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,5 +1,3 @@ | ||
ALTER TABLE hydra_client DROP CONSTRAINT hydra_client_pkey; | ||
|
||
ALTER TABLE hydra_client ADD COLUMN pk UUID NOT NULL DEFAULT gen_random_uuid(); | ||
|
||
ALTER TABLE hydra_client ADD PRIMARY KEY (pk); |
1 change: 1 addition & 0 deletions
1
persistence/sql/migrations/20230908104443000000_change_client_pk.mysql.down.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 @@ | ||
ALTER TABLE hydra_client DROP PRIMARY KEY, ADD PRIMARY KEY (pk); |
2 changes: 0 additions & 2 deletions
2
...04443000000_drop_internal_id.mysql.up.sql → ...04443000000_change_client_pk.mysql.up.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,3 +1 @@ | ||
ALTER TABLE hydra_client DROP PRIMARY KEY, ADD PRIMARY KEY (id, nid); | ||
|
||
ALTER TABLE hydra_client DROP COLUMN pk; |
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 |
---|---|---|
|
@@ -128,6 +128,7 @@ SELECT id, | |
subject_type, | ||
allowed_cors_origins, | ||
id, | ||
pk, | ||
pk_deprecated, | ||
audience, | ||
created_at, | ||
|
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
2 changes: 0 additions & 2 deletions
2
...30908104443000000_drop_internal_id.up.sql → ...30908104443000000_change_client_pk.up.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,5 +1,3 @@ | ||
ALTER TABLE hydra_client DROP CONSTRAINT hydra_client_pkey; | ||
|
||
ALTER TABLE hydra_client DROP COLUMN pk; | ||
|
||
ALTER TABLE hydra_client ADD PRIMARY KEY (id, nid); |
14 changes: 0 additions & 14 deletions
14
persistence/sql/migrations/20230908104443000000_drop_internal_id.mysql.down.sql
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
persistence/sql/migrations/20230908104443000001_drop_internal_id.cockroach.down.sql
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
persistence/sql/migrations/20230908104443000001_drop_internal_id.cockroach.up.sql
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
persistence/sql/migrations/20230908104443000001_drop_internal_id.down.sql
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
persistence/sql/migrations/20230908104443000001_drop_internal_id.up.sql
This file was deleted.
Oops, something went wrong.