Files
ipd-shomalhospital-backend/prisma/migrations/20251201053031_init/migration.sql
2026-03-26 08:14:56 +03:30

18 lines
634 B
SQL

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