feat: update schema
This commit is contained in:
parent
a8d0d7f45c
commit
e96a05e3ad
5 changed files with 87 additions and 12 deletions
30
prisma/migrations/20240610061629_add_field/migration.sql
Normal file
30
prisma/migrations/20240610061629_add_field/migration.sql
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
/*
|
||||
Warnings:
|
||||
|
||||
- You are about to drop the column `birthPlace` on the `EmployeeOtherInfo` table. All the data in the column will be lost.
|
||||
- You are about to drop the column `fatherFullName` on the `EmployeeOtherInfo` table. All the data in the column will be lost.
|
||||
- You are about to drop the column `motherFullName` on the `EmployeeOtherInfo` table. All the data in the column will be lost.
|
||||
- Added the required column `birthPlaceEN` to the `EmployeeOtherInfo` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `fatherFirstName` to the `EmployeeOtherInfo` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `fatherFirstNameEN` to the `EmployeeOtherInfo` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `fatherLastName` to the `EmployeeOtherInfo` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `fatherLastNameEN` to the `EmployeeOtherInfo` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `motherFirstName` to the `EmployeeOtherInfo` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `motherFirstNameEN` to the `EmployeeOtherInfo` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `motherLastName` to the `EmployeeOtherInfo` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `motherLastNameEN` to the `EmployeeOtherInfo` table without a default value. This is not possible if the table is not empty.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "EmployeeOtherInfo" DROP COLUMN "birthPlace",
|
||||
DROP COLUMN "fatherFullName",
|
||||
DROP COLUMN "motherFullName",
|
||||
ADD COLUMN "birthPlaceEN" TEXT NOT NULL,
|
||||
ADD COLUMN "fatherFirstName" TEXT NOT NULL,
|
||||
ADD COLUMN "fatherFirstNameEN" TEXT NOT NULL,
|
||||
ADD COLUMN "fatherLastName" TEXT NOT NULL,
|
||||
ADD COLUMN "fatherLastNameEN" TEXT NOT NULL,
|
||||
ADD COLUMN "motherFirstName" TEXT NOT NULL,
|
||||
ADD COLUMN "motherFirstNameEN" TEXT NOT NULL,
|
||||
ADD COLUMN "motherLastName" TEXT NOT NULL,
|
||||
ADD COLUMN "motherLastNameEN" TEXT NOT NULL;
|
||||
10
prisma/migrations/20240610062435_fix_prev_typo/migration.sql
Normal file
10
prisma/migrations/20240610062435_fix_prev_typo/migration.sql
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
/*
|
||||
Warnings:
|
||||
|
||||
- You are about to drop the column `birthPlaceEN` on the `EmployeeOtherInfo` table. All the data in the column will be lost.
|
||||
- Added the required column `birthPlace` to the `EmployeeOtherInfo` table without a default value. This is not possible if the table is not empty.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "EmployeeOtherInfo" DROP COLUMN "birthPlaceEN",
|
||||
ADD COLUMN "birthPlace" TEXT NOT NULL;
|
||||
Loading…
Add table
Add a link
Reference in a new issue