CSAllenISD / 2023-ISP-ModelScheduler

Other
9 stars 3 forks source link

Create a way to migrate the database. #155

Open ryanhallock opened 1 year ago

ryanhallock commented 1 year ago

Currently, user schedules are wrong-tracked by #147 and #148. We need a solution to migrate the data into a specific class by modifying a copy of courses and user schedules. We will need the solutions applied, the website offline, and no new inputs during the migration.

ryanhallock commented 1 year ago

Some progress has been made. I am currently using vapors fluent to write a migration path.

ryanhallock commented 1 year ago

A working example has been created. All classes are compressed using a master class to shrink to. The example below proves that the migration is functioning but is still not released.

image Another image dictating userSchedules being migrated. image Prev image After - Demand calculation fixed because of the migration image

ryanhallock commented 1 year ago

55b7a4be1a26c60e48a27c8517409e8ea24b90d2 contains all the fixes inside the db-migration branch, and only preparation is to change back from the test courses/user schedules.