24 lines
857 B
SQL
24 lines
857 B
SQL
/*
|
|
Warnings:
|
|
|
|
- You are about to drop the column `password` on the `User` table. All the data in the column will be lost.
|
|
- You are about to drop the `Session` table. If the table is not empty, all the data it contains will be lost.
|
|
- A unique constraint covering the columns `[clerkId]` on the table `User` will be added. If there are existing duplicate values, this will fail.
|
|
- Added the required column `clerkId` to the `User` table without a default value. This is not possible if the table is not empty.
|
|
|
|
*/
|
|
-- DropForeignKey
|
|
ALTER TABLE "Session" DROP CONSTRAINT "Session_userId_fkey";
|
|
|
|
-- DropIndex
|
|
DROP INDEX "User_email_key";
|
|
|
|
-- AlterTable
|
|
ALTER TABLE "User" DROP COLUMN "password",
|
|
ADD COLUMN "clerkId" TEXT NOT NULL;
|
|
|
|
-- DropTable
|
|
DROP TABLE "Session";
|
|
|
|
-- CreateIndex
|
|
CREATE UNIQUE INDEX "User_clerkId_key" ON "User"("clerkId");
|