fenghuo/packages/db/prisma/migrations/20250604044641_y/migration.sql

23 lines
1.4 KiB
MySQL
Raw Normal View History

2025-06-05 15:44:06 +08:00
/*
Warnings:
- Made the column `description` on table `resource` required. This step will fail if there are existing NULL values in that column.
- Made the column `type` on table `resource` required. This step will fail if there are existing NULL values in that column.
- Made the column `meta` on table `resource` required. This step will fail if there are existing NULL values in that column.
- Made the column `created_at` on table `resource` required. This step will fail if there are existing NULL values in that column.
- Made the column `updated_at` on table `resource` required. This step will fail if there are existing NULL values in that column.
- Made the column `created_by` on table `resource` required. This step will fail if there are existing NULL values in that column.
- Made the column `updated_by` on table `resource` required. This step will fail if there are existing NULL values in that column.
- Made the column `deleted_at` on table `resource` required. This step will fail if there are existing NULL values in that column.
*/
-- AlterTable
ALTER TABLE "resource" ALTER COLUMN "description" SET NOT NULL,
ALTER COLUMN "type" SET NOT NULL,
ALTER COLUMN "meta" SET NOT NULL,
ALTER COLUMN "created_at" SET NOT NULL,
ALTER COLUMN "updated_at" SET NOT NULL,
ALTER COLUMN "created_by" SET NOT NULL,
ALTER COLUMN "updated_by" SET NOT NULL,
ALTER COLUMN "deleted_at" SET NOT NULL;