fix(office): make repeat task reassignment work again after 24 hours (#3533)

Co-authored-by: nova28 <17953305+nova28@users.noreply.github.com>
Co-authored-by: Carlos Florencio <carlosmflorencio@gmail.com>
This commit is contained in:
Henry
2026-09-13 17:24:16 +08:00
committed by GitHub
parent b110796226
commit bd7974dc8d
90 changed files with 5149 additions and 365 deletions
@@ -116,6 +116,12 @@ func (r *Repository) runMigrations() error {
if err := r.migrateTasksRemoveWorkflowFK(); err != nil {
return err
}
// Must run AFTER migrateTasksRemoveWorkflowFK: that migration recreates
// tasks from an explicit column list. Adding this column beforehand would
// have it silently dropped by the recreate on any database still carrying
// the legacy FK, leaving it absent for the remainder of that boot (the
// same hazard class as the task_sessions.name comment above).
_ = r.migrate.Apply("tasks.assignment_generation", `ALTER TABLE tasks ADD COLUMN assignment_generation INTEGER NOT NULL DEFAULT 0`)
if err := r.dropRetiredSlackIntegration(); err != nil {
return err
}