glance.db.sqlalchemy.alembic_migrations.data_migrations package¶
Submodules¶
glance.db.sqlalchemy.alembic_migrations.data_migrations.ocata_migrate01_community_images module¶
-
glance.db.sqlalchemy.alembic_migrations.data_migrations.ocata_migrate01_community_images.
has_migrations
(engine)[source]¶ Returns true if at least one data row can be migrated.
- There are rows left to migrate if:
- #1 There exists a row with visibility not set yet.
- Or
- #2 There exists a private image with active members but its visibility
- isn’t set to ‘shared’ yet.
Note: This method can return a false positive if data migrations are running in the background as it’s being called.