wasp/mage/migrations/20230704104226_add_optional_user_on_project/migration.sql

6 lines
231 B
MySQL
Raw Normal View History

-- AlterTable
ALTER TABLE "Project" ADD COLUMN "userId" INTEGER;
-- AddForeignKey
ALTER TABLE "Project" ADD CONSTRAINT "Project_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;