-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes to postgres migrations to prevent primary key collisions (#160)…
…; fixes to migrations to remove renaming lint
- Loading branch information
1 parent
8ef5225
commit 8f51787
Showing
3 changed files
with
14 additions
and
4 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
6 changes: 3 additions & 3 deletions
6
controller/store/sql/postgresql/004_v0_3_0_services_to_shares.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,8 +1,8 @@ | ||
-- +migrate Up | ||
|
||
alter table services rename to shares; | ||
alter sequence services_id_seq1 rename to shares_id_seq1; | ||
alter index services_pkey1 rename to shares_pkey1; | ||
alter sequence services_id_seq rename to shares_id_seq; | ||
alter index services_pkey1 rename to shares_pkey; | ||
alter index services_token_key rename to shares_token_key; | ||
alter index services_z_id_key1 rename to shares_z_id_key1; | ||
alter index services_z_id_key1 rename to shares_z_id_key; | ||
alter table shares rename constraint services_environment_id_fkey to shares_environment_id_fkey; |
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