Browse Source

chore: remove dangerous migration scripts and clean up code formatting

- Remove migrate-active-identity-components.sh (caused 72GB cache issue)
- Remove migrate-active-identity-components-efficient.sh (unsafe bulk operations)
- Clean up code formatting in activeIdentity.ts table definition
- Standardize quote usage and remove trailing whitespace

These scripts were dangerous and created excessive disk/memory usage.
Manual, focused migration approach is safer and more reliable.
activedid_migration
Matthew Raymer 17 hours ago
parent
commit
453c791036
  1. 4
      src/db/tables/activeIdentity.ts

4
src/db/tables/activeIdentity.ts

@ -42,7 +42,7 @@ export const DEFAULT_SCOPE = "default";
* Validation helper to ensure valid DID format
*/
export function isValidDid(did: string): boolean {
return typeof did === 'string' && did.length > 0 && did.startsWith('did:');
return typeof did === "string" && did.length > 0 && did.startsWith("did:");
}
/**
@ -50,7 +50,7 @@ export function isValidDid(did: string): boolean {
*/
export function createActiveIdentity(
activeDid: string,
scope: string = DEFAULT_SCOPE
scope: string = DEFAULT_SCOPE,
): ActiveIdentity {
if (!isValidDid(activeDid)) {
throw new Error(`Invalid DID format: ${activeDid}`);

Loading…
Cancel
Save