Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
23482d3
commit ec0a30b
Showing
4 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
data/update/mysql/unstable/dbupdate-5.4.0-to-6.0.0alpha7.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,10 @@ | ||
-- | ||
-- The `ezrole` table has changed. `version` has been added to the primary key, after the `id`. This is because role | ||
-- drafts are now handled differently. A draft now has the same `id` as the published role, and `version` decides which | ||
-- is which. You should make sure you don't have any role drafts in the database when upgrading. To find drafts, select | ||
-- entries in the `ezrole` table where `version` is not zero. Before this change, the `version` of a draft equals the | ||
-- `id` of the role. The safe way to get rid of stray role drafts is to edit the role in question, and then cancel | ||
-- editing. | ||
-- | ||
|
||
ALTER TABLE ezrole DROP PRIMARY KEY, ADD PRIMARY KEY(id,version); |
6 changes: 6 additions & 0 deletions
6
data/update/mysql/unstable/dbupdate-6.0.0alpha7-to-6.0.0beta1.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,6 @@ | ||
-- | ||
-- The `ezrole` table was switched back to its original state | ||
-- (only one PRIMARY KEY being ID column) | ||
-- | ||
|
||
ALTER TABLE ezrole DROP PRIMARY KEY, ADD PRIMARY KEY(id); |
10 changes: 10 additions & 0 deletions
10
data/update/postgres/unstable/dbupdate-5.4.0-to-6.0.0alpha7.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,10 @@ | ||
-- | ||
-- The `ezrole` table has changed. `version` has been added to the primary key, after the `id`. This is because role | ||
-- drafts are now handled differently. A draft now has the same `id` as the published role, and `version` decides which | ||
-- is which. You should make sure you don't have any role drafts in the database when upgrading. To find drafts, select | ||
-- entries in the `ezrole` table where `version` is not zero. Before this change, the `version` of a draft equals the | ||
-- `id` of the role. The safe way to get rid of stray role drafts is to edit the role in question, and then cancel | ||
-- editing. | ||
-- | ||
|
||
ALTER TABLE ezrole DROP CONSTRAINT ezrole_pkey, ADD CONSTRAINT ezrole_pkey PRIMARY KEY (id,version); |
6 changes: 6 additions & 0 deletions
6
data/update/postgres/unstable/dbupdate-6.0.0alpha7-to-6.0.0beta1.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,6 @@ | ||
-- | ||
-- The `ezrole` table was switched back to its original state | ||
-- (only one PRIMARY KEY being ID column) | ||
-- | ||
|
||
ALTER TABLE ezrole DROP CONSTRAINT ezrole_pkey, ADD CONSTRAINT ezrole_pkey PRIMARY KEY (id); |