5 lines
257 B
SQL
5 lines
257 B
SQL
-- AlterTable
|
|
ALTER TABLE "Attachment" ADD COLUMN "communityId" TEXT;
|
|
|
|
-- AddForeignKey
|
|
ALTER TABLE "Attachment" ADD CONSTRAINT "Attachment_communityId_fkey" FOREIGN KEY ("communityId") REFERENCES "Community"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|