Les échecs de défis donnent lieu à un mouvement de points nul
This commit is contained in:
@ -0,0 +1,14 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- The values [WIN_CHALLENGE] on the enum `MoneyUpdateType` will be removed. If these variants are still used in the database, this will fail.
|
||||
|
||||
*/
|
||||
-- AlterEnum
|
||||
BEGIN;
|
||||
CREATE TYPE "MoneyUpdateType_new" AS ENUM ('START', 'NEW_RUN', 'CHALLENGE', 'BUY_TRAIN');
|
||||
ALTER TABLE "MoneyUpdate" ALTER COLUMN "reason" TYPE "MoneyUpdateType_new" USING ("reason"::text::"MoneyUpdateType_new");
|
||||
ALTER TYPE "MoneyUpdateType" RENAME TO "MoneyUpdateType_old";
|
||||
ALTER TYPE "MoneyUpdateType_new" RENAME TO "MoneyUpdateType";
|
||||
DROP TYPE "MoneyUpdateType_old";
|
||||
COMMIT;
|
Reference in New Issue
Block a user