-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fixing bug in pidgtm compile Signed-off-by: danbugs <[email protected]> * improve Signed-off-by: danbugs <[email protected]> --------- Signed-off-by: danbugs <[email protected]> fixing bug in pidgtm compile (#55) * fixing bug in pidgtm compile Signed-off-by: danbugs <[email protected]> * fix && fmt Signed-off-by: danbugs <[email protected]> --------- Signed-off-by: danbugs <[email protected]> fix pidgtm compile bug Signed-off-by: danbugs <[email protected]>
- Loading branch information
Showing
15 changed files
with
109 additions
and
80 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
-- Revert primary key change in player_games | ||
ALTER TABLE player_games | ||
DROP CONSTRAINT player_games_pkey; | ||
|
||
ALTER TABLE player_games | ||
ADD PRIMARY KEY (game_id, requester_id); | ||
|
||
-- Remove the set_id column from player_games | ||
ALTER TABLE player_games | ||
DROP COLUMN set_id; | ||
|
||
-- Add the game_ids column back to player_sets | ||
ALTER TABLE player_sets | ||
ADD COLUMN game_ids INTEGER ARRAY; |
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 @@ | ||
-- Drop the game_ids column from player_sets | ||
ALTER TABLE player_sets | ||
DROP COLUMN game_ids; | ||
|
||
-- Add the set_id column to player_games | ||
ALTER TABLE player_games | ||
ADD COLUMN set_id INTEGER; | ||
|
||
-- Update the primary key of player_games | ||
ALTER TABLE player_games | ||
DROP CONSTRAINT player_games_pkey; | ||
|
||
ALTER TABLE player_games | ||
ADD PRIMARY KEY (game_id, requester_id, set_id); |
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.