fix(db): repair Jobs identity
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:
@@ -1236,6 +1236,7 @@ public static class StartupInitializationExtensions
|
|||||||
}
|
}
|
||||||
|
|
||||||
EnsureMySqlAutoIncrementPrimaryKey(conn, "Companies", "Id");
|
EnsureMySqlAutoIncrementPrimaryKey(conn, "Companies", "Id");
|
||||||
|
EnsureMySqlAutoIncrementPrimaryKey(conn, "Jobs", "Id");
|
||||||
EnsureMySqlAutoIncrementPrimaryKey(conn, "JobApplications", "Id");
|
EnsureMySqlAutoIncrementPrimaryKey(conn, "JobApplications", "Id");
|
||||||
EnsureMySqlAutoIncrementPrimaryKey(conn, "Correspondences", "Id");
|
EnsureMySqlAutoIncrementPrimaryKey(conn, "Correspondences", "Id");
|
||||||
EnsureMySqlAutoIncrementPrimaryKey(conn, "Attachments", "Id");
|
EnsureMySqlAutoIncrementPrimaryKey(conn, "Attachments", "Id");
|
||||||
|
|||||||
Reference in New Issue
Block a user