chore: migrations
This commit is contained in:
parent
8a745fefa8
commit
da8e3f5e44
1 changed files with 19 additions and 0 deletions
19
prisma/migrations/20240912031352_update_db/migration.sql
Normal file
19
prisma/migrations/20240912031352_update_db/migration.sql
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
Warnings:
|
||||
|
||||
- Added the required column `permitExpireDate` to the `Branch` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `permitIssueDate` to the `Branch` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `permitNo` to the `Branch` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `citizenId` to the `User` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `citizenIssue` to the `User` table without a default value. This is not possible if the table is not empty.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "Branch" ADD COLUMN "permitExpireDate" DATE NOT NULL,
|
||||
ADD COLUMN "permitIssueDate" DATE NOT NULL,
|
||||
ADD COLUMN "permitNo" TEXT NOT NULL;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "User" ADD COLUMN "citizenExpire" DATE,
|
||||
ADD COLUMN "citizenId" TEXT NOT NULL,
|
||||
ADD COLUMN "citizenIssue" DATE NOT NULL;
|
||||
Loading…
Add table
Add a link
Reference in a new issue