diff --git a/src/main/resources/db/migration/2004022.sql b/src/main/resources/db/migration/2004022.sql index 25a0d3378..a253e574e 100644 --- a/src/main/resources/db/migration/2004022.sql +++ b/src/main/resources/db/migration/2004022.sql @@ -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; \ No newline at end of file