chore: add UUID identity migration SQL (refs #211)
Multi-phase SQL migration converting all user_id columns from VARCHAR(255) auth0_sub to UUID referencing user_profiles.id. Restructures admin_users with UUID PK and user_profile_id FK. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -31,6 +31,7 @@ const MIGRATION_ORDER = [
|
||||
'features/audit-log', // Centralized audit logging; independent
|
||||
'features/ownership-costs', // Depends on vehicles and documents; TCO recurring costs
|
||||
'features/subscriptions', // Stripe subscriptions; depends on user-profile, vehicles
|
||||
'core/identity-migration', // Cross-cutting UUID migration; must run after all feature tables exist
|
||||
];
|
||||
|
||||
// Base directory where migrations are copied inside the image (set by Dockerfile)
|
||||
|
||||
Reference in New Issue
Block a user