migration.sql 772 Bytes
Newer Older
wuhao's avatar
wuhao committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/*
  Warnings:

  - You are about to drop the column `created` on the `Folder` table. All the data in the column will be lost.
  - You are about to drop the column `updated` on the `Folder` table. All the data in the column will be lost.
  - Added the required column `poster` to the `Folder` table without a default value. This is not possible if the table is not empty.
  - Added the required column `updatedAt` to the `Folder` table without a default value. This is not possible if the table is not empty.

*/
-- AlterTable
ALTER TABLE `Folder` DROP COLUMN `created`,
    DROP COLUMN `updated`,
    ADD COLUMN `createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
    ADD COLUMN `poster` VARCHAR(191) NOT NULL,
    ADD COLUMN `updatedAt` DATETIME(3) NOT NULL;