mirror of
https://github.com/hanzo-apps/dataroom.git
synced 2026-10-30 14:47:36 +00:00
10 lines
297 B
SQL
10 lines
297 B
SQL
-- AlterTable
|
|
ALTER TABLE "Link" ADD COLUMN "ownerId" TEXT;
|
|
|
|
-- CreateIndex
|
|
CREATE INDEX "Link_ownerId_idx" ON "Link"("ownerId" ASC);
|
|
|
|
-- AddForeignKey
|
|
ALTER TABLE "Link" ADD CONSTRAINT "Link_ownerId_fkey" FOREIGN KEY ("ownerId") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
|
|