1
0
forked from noxious/server

DB adjustments

This commit is contained in:
2024-07-20 22:53:02 +02:00
parent be2d7ca7f8
commit fe437aa331
3 changed files with 48 additions and 27 deletions

View File

@ -0,0 +1,20 @@
/*
Warnings:
- You are about to drop the column `isEnemy` on the `Sprite` table. All the data in the column will be lost.
- You are about to drop the column `isPlayableCharacter` on the `Sprite` table. All the data in the column will be lost.
- You are about to drop the column `type` on the `Sprite` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE `Object` ADD COLUMN `frameHeight` INTEGER NOT NULL DEFAULT 0,
ADD COLUMN `frameSpeed` INTEGER NOT NULL DEFAULT 0,
ADD COLUMN `frameWidth` INTEGER NOT NULL DEFAULT 0,
ADD COLUMN `isAnimated` BOOLEAN NOT NULL DEFAULT false;
-- AlterTable
ALTER TABLE `Sprite` DROP COLUMN `isEnemy`,
DROP COLUMN `isPlayableCharacter`,
DROP COLUMN `type`,
ADD COLUMN `frameHeight` INTEGER NOT NULL DEFAULT 0,
ADD COLUMN `frameWidth` INTEGER NOT NULL DEFAULT 0;