mirror of
https://github.com/hknsh/project-knedita.git
synced 2024-11-28 17:41:15 +00:00
6 lines
231 B
MySQL
6 lines
231 B
MySQL
|
-- 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;
|