mirror of
https://github.com/hknsh/project-knedita.git
synced 2024-11-28 17:41:15 +00:00
5 lines
231 B
SQL
5 lines
231 B
SQL
-- AlterTable
|
|
ALTER TABLE "Like" ADD COLUMN "commentId" TEXT;
|
|
|
|
-- AddForeignKey
|
|
ALTER TABLE "Like" ADD CONSTRAINT "Like_commentId_fkey" FOREIGN KEY ("commentId") REFERENCES "Comments"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|