ifms-pti/server/prisma/migrations/20231030143815_use_date_time/migration.sql
Douglas Barone 34f098f76f Use Datetime
2023-10-30 12:38:56 -04:00

22 lines
1.1 KiB
SQL

/*
Warnings:
- The `badPasswordTime` column on the `User` table would be dropped and recreated. This will lead to data loss if there is data in the column.
- The `extensionAttribute7` column on the `User` table would be dropped and recreated. This will lead to data loss if there is data in the column.
- The `lastLogon` column on the `User` table would be dropped and recreated. This will lead to data loss if there is data in the column.
- The `lastLogonTimestamp` column on the `User` table would be dropped and recreated. This will lead to data loss if there is data in the column.
- The `lockoutTime` column on the `User` table would be dropped and recreated. This will lead to data loss if there is data in the column.
*/
-- AlterTable
ALTER TABLE "User" DROP COLUMN "badPasswordTime",
ADD COLUMN "badPasswordTime" TIMESTAMP(3),
DROP COLUMN "extensionAttribute7",
ADD COLUMN "extensionAttribute7" TIMESTAMP(3),
DROP COLUMN "lastLogon",
ADD COLUMN "lastLogon" TIMESTAMP(3),
DROP COLUMN "lastLogonTimestamp",
ADD COLUMN "lastLogonTimestamp" TIMESTAMP(3),
DROP COLUMN "lockoutTime",
ADD COLUMN "lockoutTime" TIMESTAMP(3);