13 lines
389 B
SQL
13 lines
389 B
SQL
/*
|
|
Warnings:
|
|
|
|
- Changed the type of `type` on the `log` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
|
|
|
*/
|
|
-- CreateEnum
|
|
CREATE TYPE "LogType" AS ENUM ('CREATE', 'UPDATE', 'DELETE', 'LOGIN', 'LOGOUT');
|
|
|
|
-- AlterTable
|
|
ALTER TABLE "log" DROP COLUMN "type",
|
|
ADD COLUMN "type" "LogType" NOT NULL;
|