fix(db): repair Jobs identity
CI and Deploy / test (pull_request) Successful in 4m40s
CI and Deploy / deploy (pull_request) Has been skipped
CI and Deploy / test (push) Successful in 4m11s
CI and Deploy / deploy (push) Successful in 1m36s

Production's SQLite-shaped Jobs table lacks AUTO_INCREMENT, causing the legacy opportunity backfill to abort startup. Reuse the existing idempotent MariaDB primary-key repair before backfill runs.
This commit is contained in:
cesnimda
2026-08-02 19:22:23 +02:00
parent 06518a7d52
commit de937d25dc
@@ -1236,6 +1236,7 @@ public static class StartupInitializationExtensions
}
EnsureMySqlAutoIncrementPrimaryKey(conn, "Companies", "Id");
EnsureMySqlAutoIncrementPrimaryKey(conn, "Jobs", "Id");
EnsureMySqlAutoIncrementPrimaryKey(conn, "JobApplications", "Id");
EnsureMySqlAutoIncrementPrimaryKey(conn, "Correspondences", "Id");
EnsureMySqlAutoIncrementPrimaryKey(conn, "Attachments", "Id");