28 lines
1.1 KiB
MySQL
28 lines
1.1 KiB
MySQL
|
/*
|
||
|
Warnings:
|
||
|
|
||
|
- The primary key for the `user` table will be changed. If it partially fails, the table could be left without primary key constraint.
|
||
|
- You are about to drop the column `emailVerified` on the `user` table. All the data in the column will be lost.
|
||
|
- You are about to drop the column `image` on the `user` table. All the data in the column will be lost.
|
||
|
- You are about to drop the `account` table. If the table is not empty, all the data it contains will be lost.
|
||
|
- Made the column `password` on table `user` required. This step will fail if there are existing NULL values in that column.
|
||
|
|
||
|
*/
|
||
|
-- DropForeignKey
|
||
|
ALTER TABLE `account` DROP FOREIGN KEY `Account_userId_fkey`;
|
||
|
|
||
|
-- AlterTable
|
||
|
ALTER TABLE `user` DROP PRIMARY KEY,
|
||
|
DROP COLUMN `emailVerified`,
|
||
|
DROP COLUMN `image`,
|
||
|
ADD COLUMN `emailVerifToken` VARCHAR(255) NULL,
|
||
|
ADD COLUMN `emailVerifiedAt` DATETIME(3) NULL,
|
||
|
MODIFY `id` VARCHAR(191) NOT NULL,
|
||
|
MODIFY `name` VARCHAR(255) NOT NULL,
|
||
|
MODIFY `email` VARCHAR(255) NOT NULL,
|
||
|
MODIFY `password` VARCHAR(255) NOT NULL,
|
||
|
ADD PRIMARY KEY (`id`);
|
||
|
|
||
|
-- DropTable
|
||
|
DROP TABLE `account`;
|