Files
ef_front/prisma/migrations/20250822153501_sync_notice_schema/migration.sql
2025-09-07 22:57:43 +00:00

24 lines
695 B
SQL

/*
Warnings:
- Added the required column `tag` to the `noticeBoard` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE `content` ADD COLUMN `owner` VARCHAR(191) NULL;
-- AlterTable
ALTER TABLE `noticeBoard` ADD COLUMN `tag` VARCHAR(191) NOT NULL,
MODIFY `content` LONGTEXT NOT NULL;
-- CreateTable
CREATE TABLE `registerChannel` (
`id` VARCHAR(191) NOT NULL,
`email` VARCHAR(191) NOT NULL,
`handle` VARCHAR(191) NOT NULL,
`randomcode` VARCHAR(191) NOT NULL,
`createtime` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
PRIMARY KEY (`id`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;