Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update student terms relative to October 2023 training
credman committed Aug 30, 2023
1 parent 3ee0996 commit 32563ad
Showing 2 changed files with 11 additions and 10 deletions.
15 changes: 8 additions & 7 deletions ex101/ex101.1.1/container_files/seed-data/sisData.sql
@@ -12589,18 +12589,19 @@ insert into sis_stu_programs (person_id, program_idx, acad_career_id, grad_year_
('800002994',1,'UGRD','2025','AS','MCB','AC'),
('800002998',1,'UGRD','2025','AS','PHY','AC');

/* make the original term ranges more relevant to the current year -- march 2023 should have 2022 (recent grads) and active classes 2023-2026 */
/* make the original term ranges more relevant to the current year -- october 2023 should have 2023 (recent grads) and active classes 2024-2027 */

update sis_stu_programs set grad_year_expected = convert(grad_year_expected, UNSIGNED INTEGER) + 1 where grad_year_expected is not null;
update sis_stu_programs set grad_year_expected = convert(grad_year_expected, UNSIGNED INTEGER) + 2 where grad_year_expected is not null;
/*
count(*) | grad_year_expected
---------+-------------------
57 | null
316 | 2022
301 | 2023
292 | 2024
306 | 2025
378 | 2026
316 | 2023
301 | 2024
292 | 2025
306 | 2026
378 | 2027
*/

commit;
6 changes: 3 additions & 3 deletions ex201/ex201.end/container_files/seed-data/bootstrap.gsh
@@ -12,10 +12,10 @@ import java.text.SimpleDateFormat;

/***** START Defaults that may need to be changed for each class *****/

Range<Integer> ACTIVE_CLASS_YEARS = 2023..2026
int RECENT_GRADUATE_YEAR = 2022
Range<Integer> ACTIVE_CLASS_YEARS = 2024..2027
int RECENT_GRADUATE_YEAR = 2023
java.util.Calendar cal = Calendar.getInstance()
cal.set(2023, Calendar.MARCH, 31, 17, 0, 0)
cal.set(2023, Calendar.DECEMBER, 31, 17, 0, 0)
java.util.Date RECENT_GRAD_END_DATE = cal.time

/***** END Defaults that may need to be changed for each class *****/

0 comments on commit 32563ad

Please sign in to comment.