mirror of
https://github.com/hknsh/project-knedita.git
synced 2024-12-01 10:51:17 +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;
|