-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #93 from ZeruLight/fix/optimise-guild-treasure
fix/optimise-guild-treasure
- Loading branch information
Showing
8 changed files
with
143 additions
and
143 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
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,26 @@ | ||
BEGIN; | ||
|
||
ALTER TABLE IF EXISTS public.guild_hunts DROP COLUMN IF EXISTS hunters; | ||
|
||
ALTER TABLE IF EXISTS public.guild_characters | ||
ADD COLUMN treasure_hunt integer; | ||
|
||
ALTER TABLE IF EXISTS public.guild_hunts | ||
ADD COLUMN start timestamp with time zone NOT NULL DEFAULT now(); | ||
|
||
UPDATE guild_hunts SET start=to_timestamp(return); | ||
|
||
ALTER TABLE IF EXISTS public.guild_hunts DROP COLUMN IF EXISTS "return"; | ||
|
||
ALTER TABLE IF EXISTS public.guild_hunts | ||
RENAME claimed TO collected; | ||
|
||
CREATE TABLE public.guild_hunts_claimed | ||
( | ||
hunt_id integer NOT NULL, | ||
character_id integer NOT NULL | ||
); | ||
|
||
ALTER TABLE IF EXISTS public.guild_hunts DROP COLUMN IF EXISTS treasure; | ||
|
||
END; |
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