mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-05-15 02:35:52 +00:00
6 lines
260 B
SQL
6 lines
260 B
SQL
-- DropForeignKey
|
|
ALTER TABLE "UserLesson" DROP CONSTRAINT "UserLesson_lessonId_fkey";
|
|
|
|
-- AddForeignKey
|
|
ALTER TABLE "UserLesson" ADD CONSTRAINT "UserLesson_lessonId_fkey" FOREIGN KEY ("lessonId") REFERENCES "Lesson"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|