diff --git a/prisma/migrations/20240128150005_updated_some_schema/migration.sql b/prisma/migrations/20240128150005_updated_some_schema/migration.sql new file mode 100644 index 0000000..5415b7c --- /dev/null +++ b/prisma/migrations/20240128150005_updated_some_schema/migration.sql @@ -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";