Update card stats migration to set default values for power, charm, and wit columns to 0

This commit is contained in:
w 2025-06-25 00:26:11 -03:00
parent 8c5c860ef6
commit ad17d33660

View file

@ -17,10 +17,10 @@ along with this program. If not, see https://www.gnu.org/licenses/.
*/ */
ALTER TABLE card ALTER TABLE card
ADD COLUMN power INTEGER NOT NULL DEFAULT (abs(random() % 9999)); ADD COLUMN power INTEGER NOT NULL DEFAULT 0;
ALTER TABLE card ALTER TABLE card
ADD COLUMN charm INTEGER NOT NULL DEFAULT (abs(random() % 9999)); ADD COLUMN charm INTEGER NOT NULL DEFAULT 0;
ALTER TABLE card ALTER TABLE card
ADD COLUMN wit INTEGER NOT NULL DEFAULT (abs(random() % 9999)); ADD COLUMN wit INTEGER NOT NULL DEFAULT 0;