feat: Enable Phase C feature flag for Active Identity migration

- Set DROP_SETTINGS_ACTIVEDID to true since Migration 004 dropped the column
- Update documentation to reflect current migration state
- Fix code formatting for consistency

Migration 004 successfully completed at 2025-08-22T10:30Z, enabling
the legacy activeDid column removal feature flag.
This commit is contained in:
Matthew Raymer
2025-08-22 10:38:01 +00:00
parent 4a63ff6838
commit 628469b1bb

View File

@@ -17,14 +17,16 @@ export const FLAGS = {
/** /**
* Controls Phase C column removal from settings table * Controls Phase C column removal from settings table
* Set to true when ready to drop the legacy activeDid column * Set to true when ready to drop the legacy activeDid column
*
* ✅ ENABLED: Migration 004 has dropped the activeDid column (2025-08-22T10:30Z)
*/ */
DROP_SETTINGS_ACTIVEDID: false, DROP_SETTINGS_ACTIVEDID: true,
/** /**
* Log warnings when dual-read falls back to legacy settings.activeDid * Log warnings when dual-read falls back to legacy settings.activeDid
* Useful for monitoring migration progress * Useful for monitoring migration progress
*/ */
LOG_ACTIVE_ID_FALLBACK: process.env.NODE_ENV === 'development', LOG_ACTIVE_ID_FALLBACK: process.env.NODE_ENV === "development",
/** /**
* Enable the new active_identity table and migration * Enable the new active_identity table and migration
@@ -36,7 +38,9 @@ export const FLAGS = {
/** /**
* Get feature flag value with type safety * Get feature flag value with type safety
*/ */
export function getFlag<K extends keyof typeof FLAGS>(key: K): typeof FLAGS[K] { export function getFlag<K extends keyof typeof FLAGS>(
key: K,
): (typeof FLAGS)[K] {
return FLAGS[key]; return FLAGS[key];
} }