refactor(db): migrate career profile aggregate

Transfer the canonical career profile, revision history, and six relational child collections to provider-aware migration ownership. Preserve legacy JSON, ordered child data, indexes, and cascade semantics.
This commit is contained in:
cesnimda
2026-08-30 21:54:54 +02:00
parent a906916acc
commit 90ca23de33
13 changed files with 404 additions and 355 deletions
@@ -11,9 +11,9 @@ namespace JobTrackerApi.Migrations
// longtext OwnerUserId and then indexed (OwnerUserId, CareerProfileId, SortOrder) over it,
// which exceeds MySQL's 3072-byte key limit — a clean MariaDB install died here.
//
// The six CareerProfile child tables are provisioned by the idempotent reconciler in
// StartupInitializationExtensions, which carries correct DDL per provider. Existing databases
// already have this migration recorded as applied, so emptying it changes nothing for them.
// The six CareerProfile child tables were initially provisioned by the reconciler. Explicit
// ownership moved to 20260830133000_AdoptCareerProfileSchema; this historical migration stays
// recorded so existing chains remain compatible.
// docs/infrastructure/database-ownership.md.
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)