refactor(db): migrate job workspace notes
Move interview preparation and AI workspace output persistence into an additive provider-aware migration. Preserve reviewed results, uniqueness, and application cascade semantics.
This commit is contained in:
@@ -29,6 +29,8 @@ cohesive table groups. It does not attempt to delete the legacy reconciler whole
|
||||
parsed output and the nullable `ON DELETE SET NULL` artifact relationship.
|
||||
- Added `20260830126000_AdoptTailoredCvDraftSchema` for the job-specific tailored document, retaining
|
||||
generated and manually edited content plus its `ON DELETE CASCADE` application relationship.
|
||||
- Added `20260830127000_AdoptJobWorkspaceNotesSchema` for interview preparation and irregular AI
|
||||
workspace results, retaining reviewed output and both application cascade relationships.
|
||||
- Corrected the ownership runbook: new tables now default to migrations; the reconciler is legacy
|
||||
compatibility code to retire one dependency group at a time.
|
||||
|
||||
@@ -56,14 +58,16 @@ migration.
|
||||
and re-upgrade; deleting the artifact preserves the run and clears its nullable relationship.
|
||||
- A representative tailored CV's summary, custom section, and generation context survive adoption,
|
||||
downgrade, and re-upgrade; deleting the parent application still deletes its draft.
|
||||
- Representative interview-preparation and candidate-fit outputs survive adoption, downgrade, and
|
||||
re-upgrade; deleting the parent application still deletes both cached note types.
|
||||
- Generated MariaDB SQL contains the provider-correct `SystemEmailSettings` DDL.
|
||||
- Full backend: 728/728 passed after the tailored CV draft transfer.
|
||||
- Full backend: 729/729 passed after the job-workspace note transfer.
|
||||
- Fresh application startup over a new disposable SQLite database applied
|
||||
`20260830120000_AdoptSystemEmailSettingsSchema` and reached the healthy listening state.
|
||||
|
||||
## Remaining JT-019 work
|
||||
|
||||
Twenty-three model tables remain startup-created, including the Identity group and several tables
|
||||
Twenty-one model tables remain startup-created, including the Identity group and several tables
|
||||
with parent dependencies. Transfer them in small dependency-aware migrations with blank, populated,
|
||||
retry and MariaDB runtime proof. Column/index repairs must remain until historical upgrade fixtures
|
||||
prove each one redundant.
|
||||
|
||||
Reference in New Issue
Block a user