mirror of
https://github.com/Walter-Sparrow/lunar-tear.git
synced 2026-07-02 05:43:41 +03:00
16 lines
642 B
SQL
16 lines
642 B
SQL
-- +goose Up
|
|
CREATE TABLE user_costume_lottery_effects (
|
|
user_id INTEGER NOT NULL REFERENCES users(user_id),
|
|
user_costume_uuid TEXT NOT NULL,
|
|
slot_number INTEGER NOT NULL,
|
|
odds_number INTEGER NOT NULL DEFAULT 0,
|
|
latest_version INTEGER NOT NULL DEFAULT 0,
|
|
PRIMARY KEY (user_id, user_costume_uuid, slot_number)
|
|
);
|
|
|
|
ALTER TABLE user_costumes ADD COLUMN costume_lottery_effect_unlocked_slot_count INTEGER NOT NULL DEFAULT 0;
|
|
|
|
-- +goose Down
|
|
ALTER TABLE user_costumes DROP COLUMN costume_lottery_effect_unlocked_slot_count;
|
|
DROP TABLE IF EXISTS user_costume_lottery_effects;
|