-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow FFIs and APIs to be created without a message ID
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
- Loading branch information
Showing
6 changed files
with
30 additions
and
10 deletions.
There are no files selected for viewing
File renamed without changes.
16 changes: 16 additions & 0 deletions
16
db/migrations/postgres/000094_allow_local_definitions.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
BEGIN; | ||
ALTER TABLE identities RENAME COLUMN messages_claim TO messages_claim_old; | ||
ALTER TABLE identities ADD COLUMN messages_claim UUID; | ||
UPDATE identities SET messages_claim = messages_claim_old; | ||
ALTER TABLE identities DROP COLUMN messages_claim_old; | ||
|
||
ALTER TABLE ffi RENAME COLUMN message_id TO message_id_old; | ||
ALTER TABLE ffi ADD COLUMN message_id UUID; | ||
UPDATE ffi SET message_id = message_id_old; | ||
ALTER TABLE ffi DROP COLUMN message_id_old; | ||
|
||
ALTER TABLE contractapis RENAME COLUMN message_id TO message_id_old; | ||
ALTER TABLE contractapis ADD COLUMN message_id UUID; | ||
UPDATE contractapis SET message_id = message_id_old; | ||
ALTER TABLE contractapis DROP COLUMN message_id_old; | ||
COMMIT; |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
14 changes: 14 additions & 0 deletions
14
db/migrations/sqlite/000094_allow_local_definitions.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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
ALTER TABLE identities RENAME COLUMN messages_claim TO messages_claim_old; | ||
ALTER TABLE identities ADD COLUMN messages_claim UUID; | ||
UPDATE identities SET messages_claim = messages_claim_old; | ||
ALTER TABLE identities DROP COLUMN messages_claim_old; | ||
|
||
ALTER TABLE ffi RENAME COLUMN message_id TO message_id_old; | ||
ALTER TABLE ffi ADD COLUMN message_id UUID; | ||
UPDATE ffi SET message_id = message_id_old; | ||
ALTER TABLE ffi DROP COLUMN message_id_old; | ||
|
||
ALTER TABLE contractapis RENAME COLUMN message_id TO message_id_old; | ||
ALTER TABLE contractapis ADD COLUMN message_id UUID; | ||
UPDATE contractapis SET message_id = message_id_old; | ||
ALTER TABLE contractapis DROP COLUMN message_id_old; |
This file was deleted.
Oops, something went wrong.