13 lines
549 B
SQL
13 lines
549 B
SQL
/*
|
|
Warnings:
|
|
|
|
- The primary key for the `Cooldown` table will be changed. If it partially fails, the table could be left without primary key constraint.
|
|
- Added the required column `updatedAt` to the `Cooldown` table without a default value. This is not possible if the table is not empty.
|
|
|
|
*/
|
|
-- AlterTable
|
|
ALTER TABLE `Cooldown` DROP PRIMARY KEY,
|
|
ADD COLUMN `createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
ADD COLUMN `updatedAt` DATETIME(3) NOT NULL,
|
|
MODIFY `id` VARCHAR(191) NOT NULL,
|
|
ADD PRIMARY KEY (`id`);
|