Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

Commit 130aaa7

Browse files
Fixed migration
1 parent 7350019 commit 130aaa7

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
Warnings:
3+
4+
- Added the required column `entranceX` to the `Store` table without a default value. This is not possible if the table is not empty.
5+
- Added the required column `entranceY` to the `Store` table without a default value. This is not possible if the table is not empty.
6+
- Added the required column `exitX` to the `Store` table without a default value. This is not possible if the table is not empty.
7+
- Added the required column `exitY` to the `Store` table without a default value. This is not possible if the table is not empty.
8+
9+
*/
10+
-- AlterTable
11+
12+
ALTER TABLE "Store" ADD COLUMN "entranceX" INTEGER NOT NULL DEFAULT 0,
13+
ADD COLUMN "entranceY" INTEGER NOT NULL DEFAULT 0,
14+
ADD COLUMN "exitX" INTEGER NOT NULL DEFAULT 0,
15+
ADD COLUMN "exitY" INTEGER NOT NULL DEFAULT 0;
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-- AlterTable
2+
ALTER TABLE "Store" ALTER COLUMN "entranceX" DROP DEFAULT,
3+
ALTER COLUMN "entranceY" DROP DEFAULT,
4+
ALTER COLUMN "exitX" DROP DEFAULT,
5+
ALTER COLUMN "exitY" DROP DEFAULT;

0 commit comments

Comments
 (0)