-
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.
Cache full namespace details on each orchestrator
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
- Loading branch information
Showing
30 changed files
with
200 additions
and
130 deletions.
There are no files selected for viewing
4 changes: 0 additions & 4 deletions
4
db/migrations/postgres/000095_add_message_local_namespace.down.sql
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
...res/000096_drop_namespace_fields.down.sql → ...s/000095_change_namespace_fields.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,9 @@ | ||
BEGIN; | ||
ALTER TABLE messages DROP COLUMN namespace_local; | ||
ALTER TABLE groups DROP COLUMN namespace_local; | ||
|
||
ALTER TABLE namespaces ADD COLUMN id UUID; | ||
ALTER TABLE namespaces ADD COLUMN message_id UUID; | ||
ALTER TABLE namespaces ADD COLUMN ntype VARCHAR(64); | ||
ALTER TABLE namespaces DROP COLUMN remote_name; | ||
COMMIT; |
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 was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
db/migrations/sqlite/000095_add_message_local_namespace.down.sql
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
db/migrations/sqlite/000095_add_message_local_namespace.up.sql
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
...ite/000096_drop_namespace_fields.down.sql → ...e/000095_change_namespace_fields.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,3 +1,7 @@ | ||
ALTER TABLE messages DROP COLUMN namespace_local; | ||
ALTER TABLE groups DROP COLUMN namespace_local; | ||
|
||
ALTER TABLE namespaces ADD COLUMN id UUID; | ||
ALTER TABLE namespaces ADD COLUMN message_id UUID; | ||
ALTER TABLE namespaces ADD COLUMN ntype VARCHAR(64); | ||
ALTER TABLE namespaces DROP COLUMN remote_name; |
12 changes: 12 additions & 0 deletions
12
db/migrations/sqlite/000095_change_namespace_fields.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,12 @@ | ||
ALTER TABLE messages ADD COLUMN namespace_local VARCHAR(64); | ||
UPDATE messages SET namespace_local = namespace; | ||
|
||
ALTER TABLE groups ADD COLUMN namespace_local VARCHAR(64); | ||
UPDATE groups SET namespace_local = namespace; | ||
|
||
DROP INDEX namespaces_id; | ||
ALTER TABLE namespaces DROP COLUMN id; | ||
ALTER TABLE namespaces DROP COLUMN message_id; | ||
ALTER TABLE namespaces DROP COLUMN ntype; | ||
ALTER TABLE namespaces ADD COLUMN remote_name VARCHAR(64); | ||
UPDATE namespaces SET remote_name = name; |
This file was deleted.
Oops, something went wrong.
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
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
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
Oops, something went wrong.