mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-11 15:37:27 +08:00
fix: total_point null (#185)
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
# Fix NULL values in maimai2_user_detail point and total_point fields
|
||||||
|
# These fields were added without NOT NULL constraint in V1000_36
|
||||||
|
|
||||||
|
# First, set NULL values to 0
|
||||||
|
UPDATE maimai2_user_detail SET point = 0 WHERE point IS NULL;
|
||||||
|
UPDATE maimai2_user_detail SET total_point = 0 WHERE total_point IS NULL;
|
||||||
|
|
||||||
|
# Then add NOT NULL constraint
|
||||||
|
ALTER TABLE maimai2_user_detail MODIFY point INT NOT NULL DEFAULT 0;
|
||||||
|
ALTER TABLE maimai2_user_detail MODIFY total_point INT NOT NULL DEFAULT 0;
|
||||||
|
|
||||||
Reference in New Issue
Block a user