From 813e81be7006bf0f5bd2692882010b179a1ab3d7 Mon Sep 17 00:00:00 2001 From: dipatrik10 Date: Thu, 9 Apr 2026 21:20:11 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B8=D0=BB=20=D0=B22?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../db/migration/V2__editScheduleData.sql | 41 ------------------- 1 file changed, 41 deletions(-) delete mode 100644 backend/src/main/resources/db/migration/V2__editScheduleData.sql diff --git a/backend/src/main/resources/db/migration/V2__editScheduleData.sql b/backend/src/main/resources/db/migration/V2__editScheduleData.sql deleted file mode 100644 index c70c3ae..0000000 --- a/backend/src/main/resources/db/migration/V2__editScheduleData.sql +++ /dev/null @@ -1,41 +0,0 @@ --- ========================================== --- Редактирование учебных групп --- ========================================== - -ALTER TABLE student_groups -ADD COLUMN IF NOT EXISTS specialty_code INT REFERENCES specialties(id), -ADD COLUMN IF NOT EXISTS year_start_study INT, -DROP COLUMN IF EXISTS course; - -UPDATE student_groups -SET specialty_code = 1 -WHERE specialty_code IS NULL; - -UPDATE student_groups -SET year_start_study = 2023 -WHERE year_start_study IS NULL; - -ALTER TABLE student_groups -ALTER COLUMN specialty_code SET NOT NULL; - -ALTER TABLE student_groups -ALTER COLUMN year_start_study SET NOT NULL; - --- ========================================== --- Редактирование кафедрального файла --- ========================================== - -ALTER TABLE schedule_data -DROP COLUMN IF EXISTS semester; - -INSERT INTO schedule_data (department_id, group_id, subjects_id, lesson_type_id, number_of_hours, is_division, teacher_id, semester_type, period) -VALUES (1, 1, 1, 3, 2, true, 1, 'autumn', '2024-2025'), - (2, 2, 3, 2, 1, false, 2, 'spring', '2025-2026'), - (3, 1, 2, 1, 3, true, 1, 'autumn', '2023-2024'), - (2, 2, 3, 2, 1, false, 2, 'spring', '2025-2026'), - (2, 2, 3, 2, 1, false, 2, 'spring', '2025-2026'), - (2, 2, 3, 2, 1, false, 2, 'spring', '2025-2026'), - (1, 1, 1, 1, 2, true, 2, 'autumn', '2024-2025'), - (1, 2, 2, 3, 4, false, 2, 'autumn', '2024-2025'), - (1, 1, 4, 2, 1, false, 1, 'autumn', '2024-2025'), - (1, 2, 5, 1, 7, true, 1, 'autumn', '2024-2025'); \ No newline at end of file