Skip to content

Commit

Permalink
fix: flyway 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Soundbar91 committed Dec 1, 2024
1 parent 9e336c9 commit c36e774
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/main/resources/db/migration/V106__update_semester_id.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,3 @@ UPDATE `koin`.`lectures` l
SET `semester_id` = (SELECT `id`
FROM `koin`.`semester` s
WHERE l.`semester_date` = s.`semester`);

ALTER TABLE `koin`.`lectures`
ADD CONSTRAINT `FK_LECTURES_ON_SEMESTER`
FOREIGN KEY (`semester_id`)
REFERENCES `koin`.`semester` (`id`)
ON UPDATE CASCADE;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ALTER TABLE `koin`.`lectures`
ADD CONSTRAINT `FK_LECTURES_ON_SEMESTER`
FOREIGN KEY (`semester_id`)
REFERENCES `koin`.`semester` (`id`)
ON UPDATE CASCADE;

0 comments on commit c36e774

Please sign in to comment.