wasp/examples/thoughts/migrations/20220818151104_rename_email_to_username/migration.sql

10 lines
198 B
SQL

-- DropIndex
DROP INDEX "User.email_unique";
-- AlterTable
ALTER TABLE "User"
RENAME COLUMN "email" TO "username";
-- CreateIndex
CREATE UNIQUE INDEX "User.username_unique" ON "User"("username");