mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-05-15 18:55:53 +00:00
6 lines
260 B
MySQL
6 lines
260 B
MySQL
![]() |
-- 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;
|