mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-10 10:27:26 +08:00
[ongeki] add migration v24 default value
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
ALTER TABLE `ongeki_user_story`
|
ALTER TABLE `ongeki_user_story`
|
||||||
ADD COLUMN `jewel_count` int(11),
|
ADD COLUMN `jewel_count` int(11) DEFAULT 0,
|
||||||
ADD COLUMN `last_play_music_id` int(11),
|
ADD COLUMN `last_play_music_id` int(11) DEFAULT 0,
|
||||||
ADD COLUMN `last_play_music_category` int(11),
|
ADD COLUMN `last_play_music_category` int(11) DEFAULT 0,
|
||||||
ADD COLUMN `last_play_music_level` int(11);
|
ADD COLUMN `last_play_music_level` int(11) DEFAULT 0;
|
||||||
|
|||||||
@@ -22,12 +22,20 @@ INSERT INTO ongeki_user_story_new (
|
|||||||
id,
|
id,
|
||||||
last_chapter_id,
|
last_chapter_id,
|
||||||
story_id,
|
story_id,
|
||||||
user_id
|
user_id,
|
||||||
|
jewel_count,
|
||||||
|
last_play_music_id,
|
||||||
|
last_play_music_category,
|
||||||
|
last_play_music_level
|
||||||
)
|
)
|
||||||
SELECT id,
|
SELECT id,
|
||||||
last_chapter_id,
|
last_chapter_id,
|
||||||
story_id,
|
story_id,
|
||||||
user_id
|
user_id,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
FROM ongeki_user_story;
|
FROM ongeki_user_story;
|
||||||
|
|
||||||
ALTER TABLE ongeki_user_story RENAME TO bak_ongeki_user_story;
|
ALTER TABLE ongeki_user_story RENAME TO bak_ongeki_user_story;
|
||||||
|
|||||||
Reference in New Issue
Block a user