-
Notifications
You must be signed in to change notification settings - Fork 36
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 #1582 from rito528/refactorVote
- Loading branch information
Showing
79 changed files
with
2,740 additions
and
1,312 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
src/main/resources/db/migration/V1.16.0__Change_new_fairy_time_type.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,5 @@ | ||
USE seichiassist; | ||
|
||
-- 型を変えるので一度内容をリセットする | ||
UPDATE playerdata SET newVotingFairyTime = NULL; | ||
ALTER TABLE playerdata MODIFY newVotingFairyTime DATETIME; |
3 changes: 3 additions & 0 deletions
3
src/main/resources/db/migration/V1.16.1__Add_fairy_columns.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,3 @@ | ||
USE seichiassist; | ||
|
||
ALTER TABLE playerdata ADD is_fairy_speech_play_sound BOOLEAN DEFAULT TRUE AFTER toggleVotingFairy; |
36 changes: 36 additions & 0 deletions
36
src/main/resources/db/migration/V1.16.2__Move_vote_column.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,36 @@ | ||
USE seichiassist; | ||
|
||
CREATE TABLE IF NOT EXISTS vote( | ||
uuid CHAR(36) NOT NULL PRIMARY KEY, | ||
vote_number INT NOT NULL, | ||
chain_vote_number INT NOT NULL, | ||
effect_point INT NOT NULL, | ||
given_effect_point INT NOT NULL, | ||
last_vote DATETIME NOT NULL | ||
); | ||
|
||
INSERT INTO | ||
vote( | ||
uuid, | ||
vote_number, | ||
chain_vote_number, | ||
effect_point, | ||
given_effect_point, | ||
last_vote | ||
) | ||
SELECT | ||
uuid, | ||
p_vote, | ||
chainvote, | ||
effectpoint, | ||
p_givenvote, | ||
CONVERT(lastvote, DATE) | ||
FROM | ||
playerdata; | ||
|
||
ALTER TABLE | ||
playerdata DROP IF EXISTS p_vote, | ||
DROP IF EXISTS chainvote, | ||
DROP IF EXISTS effectpoint, | ||
DROP IF EXISTS p_givenvote, | ||
DROP IF EXISTS lastvote; |
44 changes: 44 additions & 0 deletions
44
src/main/resources/db/migration/V1.16.3__Move_vote_fairy_column.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,44 @@ | ||
USE seichiassist; | ||
|
||
CREATE TABLE vote_fairy( | ||
uuid CHAR(36) NOT NULL PRIMARY KEY, | ||
apple_open_state INT NOT NULL DEFAULT 1, | ||
fairy_summon_cost INT NOT NULL DEFAULT 1, | ||
is_fairy_using BOOLEAN NOT NULL DEFAULT false, | ||
fairy_recovery_mana_value INT NOT NULL DEFAULT 0, | ||
fairy_end_time DATETIME DEFAULT NULL, | ||
given_apple_amount BIGINT NOT NULL DEFAULT 0, | ||
is_play_fairy_speech_sound BOOLEAN NOT NULL DEFAULT true | ||
); | ||
|
||
INSERT INTO | ||
vote_fairy( | ||
uuid, | ||
apple_open_state, | ||
fairy_summon_cost, | ||
is_fairy_using, | ||
fairy_recovery_mana_value, | ||
fairy_end_time, | ||
given_apple_amount, | ||
is_play_fairy_speech_sound | ||
) | ||
SELECT | ||
uuid, | ||
toggleGiveApple, | ||
toggleVotingFairy, | ||
canVotingFairyUse, | ||
VotingFairyRecoveryValue, | ||
newVotingFairyTime, | ||
p_apple, | ||
is_fairy_speech_play_sound | ||
FROM | ||
playerdata; | ||
|
||
ALTER TABLE playerdata | ||
DROP IF EXISTS toggleGiveApple, | ||
DROP IF EXISTS toggleVotingFairy, | ||
DROP IF EXISTS canVotingFairyUse, | ||
DROP IF EXISTS VotingFairyRecoveryValue, | ||
DROP IF EXISTS newVotingFairyTime, | ||
DROP IF EXISTS p_apple, | ||
DROP IF EXISTS is_fairy_speech_play_sound |
11 changes: 0 additions & 11 deletions
11
src/main/scala/com/github/unchama/seichiassist/AntiTypesafe.java
This file was deleted.
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
45 changes: 0 additions & 45 deletions
45
src/main/scala/com/github/unchama/seichiassist/commands/VoteCommand.scala
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.