mirror of https://github.com/Soyandroid/aqua
[ongeki] add migration v24 default value
parent
ecf91763a6
commit
b51452175e
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue