TiledViz
Loading...
Searching...
No Matches
app.migration Namespace Reference

Functions

 migrate_project_owners ()
 check_migration_status ()
 rollback_migration ()
 get_orphaned_projects ()
 validate_migration ()

Detailed Description

Migration utilities for TiledViz database
Handles automatic migration of project owners from projects.id_users to project_members

Function Documentation

◆ check_migration_status()

check_migration_status ( )
Check the current migration status and return statistics

Definition at line 134 of file migration.py.

◆ get_orphaned_projects()

get_orphaned_projects ( )
Get list of projects that don't have any owner

Definition at line 196 of file migration.py.

◆ migrate_project_owners()

migrate_project_owners ( )
Migrate existing project owners from projects.id_users to project_members table.
This function is idempotent - it can be run multiple times safely.

Definition at line 12 of file migration.py.

◆ rollback_migration()

rollback_migration ( )
Rollback migration by removing owner memberships created by migration.
WARNING: This will remove ALL owner memberships, not just migrated ones.

Definition at line 168 of file migration.py.

◆ validate_migration()

validate_migration ( )
Validate that migration was successful by checking data consistency

Definition at line 230 of file migration.py.