MIF_E31220277/denta-api/prisma/migrations/20241116100151_/migration.sql

14 lines
592 B
SQL

/*
Warnings:
- You are about to drop the column `createdAt` on the `user` table. All the data in the column will be lost.
- You are about to drop the column `updateAt` on the `user` table. All the data in the column will be lost.
- Added the required column `updated_at` to the `user` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE `user` DROP COLUMN `createdAt`,
DROP COLUMN `updateAt`,
ADD COLUMN `created_at` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
ADD COLUMN `updated_at` DATETIME(3) NOT NULL;