summaryrefslogtreecommitdiff
path: root/prisma/migrations/20260215035919_test/migration.sql
diff options
context:
space:
mode:
Diffstat (limited to 'prisma/migrations/20260215035919_test/migration.sql')
-rw-r--r--prisma/migrations/20260215035919_test/migration.sql5
1 files changed, 5 insertions, 0 deletions
diff --git a/prisma/migrations/20260215035919_test/migration.sql b/prisma/migrations/20260215035919_test/migration.sql
new file mode 100644
index 0000000..8b85792
--- /dev/null
+++ b/prisma/migrations/20260215035919_test/migration.sql
@@ -0,0 +1,5 @@
+-- AlterTable
+ALTER TABLE "Product" ADD COLUMN "locationId" INTEGER;
+
+-- AddForeignKey
+ALTER TABLE "Product" ADD CONSTRAINT "Product_locationId_fkey" FOREIGN KEY ("locationId") REFERENCES "Location"("id") ON DELETE SET NULL ON UPDATE CASCADE;