The cinder.db.sqlalchemy.migrate_repo.versions.021_add_default_quota_class Module

downgrade(migrate_engine)

Don’t delete the ‘default’ entries at downgrade time.

We don’t know if the user had default entries when we started. If they did, we wouldn’t want to remove them. So, the safest thing to do is just leave the ‘default’ entries at downgrade time.

upgrade(migrate_engine)

Add default quota class data into DB.

Previous topic

The cinder.db.sqlalchemy.migrate_repo.versions.020_add_volume_admin_metadata_table Module

Next topic

The cinder.db.sqlalchemy.migrate_repo.versions.022_add_reason_column_to_service Module

Project Source

This Page