This commit is contained in:
piopi 2025-01-04 21:23:27 -05:00
parent 4afc8a9efa
commit dd0d3126fe
No known key found for this signature in database
GPG key ID: E305BD1ADD33F590
8 changed files with 46 additions and 34 deletions

View file

@ -1,18 +0,0 @@
/*
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.
*/
-- DropForeignKey
ALTER TABLE "Session" DROP CONSTRAINT "Session_userId_fkey";
-- DropIndex
DROP INDEX "User_email_key";
-- AlterTable
ALTER TABLE "User" DROP COLUMN "password";
-- DropTable
DROP TABLE "Session";

View file

@ -1,8 +0,0 @@
/*
Warnings:
- Added the required column `clerkId` to the `User` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE "User" ADD COLUMN "clerkId" TEXT NOT NULL;

View file

@ -0,0 +1,24 @@
/*
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");