Skip to content

Commit

Permalink
do migration
Browse files Browse the repository at this point in the history
  • Loading branch information
richard483 committed Jan 28, 2024
1 parent 584e26e commit 5397cea
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions prisma/migrations/20240128150005_updated_some_schema/migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
Warnings:
- You are about to drop the column `previousWorkplaceCount` on the `User` table. All the data in the column will be lost.
- You are about to drop the column `previousWorkplaceId` on the `User` table. All the data in the column will be lost.
- Made the column `companyId` on table `JobVacancy` required. This step will fail if there are existing NULL values in that column.
*/
-- AlterTable
ALTER TABLE "JobVacancy" ALTER COLUMN "companyId" SET NOT NULL;

-- AlterTable
ALTER TABLE "User" DROP COLUMN "previousWorkplaceCount",
DROP COLUMN "previousWorkplaceId";

0 comments on commit 5397cea

Please sign in to comment.