-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrade version
0.13.0
(#1685)
* chore: upgrade version `0.13.0` * chore: update
- Loading branch information
Showing
11 changed files
with
81 additions
and
62 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
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,6 @@ | ||
package api | ||
|
||
type MemoOrganizer struct { | ||
ID int | ||
|
||
// Domain specific fields | ||
MemoID int | ||
UserID int | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
-- memo_relation | ||
CREATE TABLE memo_relation ( | ||
memo_id INTEGER NOT NULL, | ||
related_memo_id INTEGER NOT NULL, | ||
type TEXT NOT NULL, | ||
UNIQUE(memo_id, related_memo_id, type) | ||
); |
22 changes: 22 additions & 0 deletions
22
store/db/migration/prod/0.13/01__remove_memo_organizer_id.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,22 @@ | ||
DROP TABLE IF EXISTS memo_organizer_temp; | ||
|
||
CREATE TABLE memo_organizer_temp ( | ||
memo_id INTEGER NOT NULL, | ||
user_id INTEGER NOT NULL, | ||
pinned INTEGER NOT NULL CHECK (pinned IN (0, 1)) DEFAULT 0, | ||
UNIQUE(memo_id, user_id) | ||
); | ||
|
||
INSERT INTO | ||
memo_organizer_temp (memo_id, user_id, pinned) | ||
SELECT | ||
memo_id, | ||
user_id, | ||
pinned | ||
FROM | ||
memo_organizer; | ||
|
||
DROP TABLE memo_organizer; | ||
|
||
ALTER TABLE | ||
memo_organizer_temp RENAME TO memo_organizer; |
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