/* Warnings: - You are about to drop the column `providerAccountId` on the `accounts` table. All the data in the column will be lost. - A unique constraint covering the columns `[issuer,accountId]` on the table `accounts` will be added. If there are existing duplicate values, this will fail. - Added the required column `accountId` to the `accounts` table without a default value. This is not possible if the table is not empty. - Added the required column `issuer` to the `accounts` table without a default value. This is not possible if the table is not empty. */ -- DropIndex DROP INDEX "accounts_providerId_providerAccountId_key"; -- AlterTable ALTER TABLE "accounts" DROP COLUMN "providerAccountId", ADD COLUMN "accountId" TEXT NOT NULL, ADD COLUMN "issuer" TEXT NOT NULL; -- CreateIndex CREATE INDEX "accounts_userId_idx" ON "accounts"("userId"); -- CreateIndex CREATE UNIQUE INDEX "accounts_issuer_accountId_key" ON "accounts"("issuer", "accountId");