Skip to content

Commit

Permalink
chore(db): correct db migration script
Browse files Browse the repository at this point in the history
refs #1677
  • Loading branch information
jo-elimu committed Jul 25, 2024
1 parent 749ced9 commit 3a8f9c6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/main/resources/db/migration/2004022.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,11 @@ ALTER TABLE `LetterSoundCorrespondence` RENAME TO `LetterSound`;

DROP TABLE IF EXISTS `LetterSound_Letter`;
ALTER TABLE `LetterSoundCorrespondence_Letter` RENAME TO `LetterSound_Letter`;
ALTER TABLE `LetterSound_Letter` CHANGE `LetterSoundCorrespondence_id` `LetterSound_id` bigint(20) NOT NULL;

DROP TABLE IF EXISTS `LetterSound_Sound`;
ALTER TABLE `LetterSoundCorrespondence_Sound` RENAME TO `LetterSound_Sound`;
ALTER TABLE `LetterSound_Sound` CHANGE `LetterSoundCorrespondence_id` `LetterSound_id` bigint(20) NOT NULL;

DROP TABLE IF EXISTS `Word_LetterSound`;
ALTER TABLE `Word_LetterSoundCorrespondence` RENAME TO `Word_LetterSound`;

ALTER TABLE `LetterSound_Letter` DROP COLUMN `LetterSound_id`;
ALTER TABLE `LetterSound_Letter` CHANGE `LetterSoundCorrespondence_id` `LetterSound_id` bigint(20) NOT NULL;

ALTER TABLE `LetterSound_Sound` DROP COLUMN `LetterSound_id`;
ALTER TABLE `LetterSound_Sound` CHANGE `LetterSoundCorrespondence_id` `LetterSound_id` bigint(20) NOT NULL;

0 comments on commit 3a8f9c6

Please sign in to comment.