-
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 #2147 from GiganticMinecraft/refactorGacha
ガチャのリファクタリング
- Loading branch information
Showing
46 changed files
with
569 additions
and
759 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-J-Xmx10g |
8 changes: 8 additions & 0 deletions
8
src/main/resources/db/migration/V1.18.0__Align_minestack_object_name.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,8 @@ | ||
USE seichiassist; | ||
|
||
-- gachadataはガチャ景品に対して依存を持つが、ガチャ景品のIDより語尾の数が2つ小さいので、 | ||
-- gachadata0_[ガチャ景品ID]という形式にする | ||
UPDATE mine_stack SET object_name = CONVERT(REPLACE(object_name, 'gachadata0_', ''), INT) + 2 WHERE object_name NOT LIKE 'gachadata0_exp_bottle' AND object_name LIKE 'gachadata0_%'; | ||
|
||
-- 上の変換により、mine_stack_gacha_objectsを永続化する必要がなくなったので削除する | ||
DROP TABLE IF EXISTS mine_stack_gacha_objects; |
3 changes: 3 additions & 0 deletions
3
src/main/resources/db/migration/V1.18.1__Add_gachaevent_foreign_key.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 gachadata ADD FOREIGN KEY (event_id) REFERENCES gacha_events(id) ON DELETE CASCADE; |
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.