2025-11-24 08:59:14 +01:00

17 lines
497 B
SQL

/*
Warnings:
- You are about to drop the column `username` on the `User` table. All the data in the column will be lost.
- A unique constraint covering the columns `[nwkennung]` on the table `User` will be added. If there are existing duplicate values, this will fail.
*/
-- DropIndex
DROP INDEX "User_username_key";
-- AlterTable
ALTER TABLE "User" DROP COLUMN "username",
ADD COLUMN "nwkennung" TEXT;
-- CreateIndex
CREATE UNIQUE INDEX "User_nwkennung_key" ON "User"("nwkennung");