Continue Account log
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- Changed the type of `type` on the `logs` 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 "LOG_TYPE" AS ENUM ('LOGIN', 'PROFILE_CHANGE', 'REGISTER');
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "logs" ADD COLUMN "browser" TEXT,
|
||||
DROP COLUMN "type",
|
||||
ADD COLUMN "type" "LOG_TYPE" NOT NULL;
|
||||
|
||||
-- DropEnum
|
||||
DROP TYPE "LOG_TYLE";
|
||||
Reference in New Issue
Block a user