mirror of
https://github.com/EdiFarcas/Giveaway-app.git
synced 2026-06-29 01:00:55 +03:00
17 lines
524 B
SQL
17 lines
524 B
SQL
/*
|
|
Warnings:
|
|
|
|
- You are about to drop the column `youtubeId` on the `User` table. All the data in the column will be lost.
|
|
- A unique constraint covering the columns `[youtubeUsername]` on the table `User` will be added. If there are existing duplicate values, this will fail.
|
|
|
|
*/
|
|
-- DropIndex
|
|
DROP INDEX "User_youtubeId_key";
|
|
|
|
-- AlterTable
|
|
ALTER TABLE "User" DROP COLUMN "youtubeId",
|
|
ADD COLUMN "youtubeUsername" TEXT;
|
|
|
|
-- CreateIndex
|
|
CREATE UNIQUE INDEX "User_youtubeUsername_key" ON "User"("youtubeUsername");
|