Update the migration template's default kwargs
fixes bug 1097327 The default template should accept options as a keyword instead of specific quota parameter. Change-Id: I65ceaccea9e764941a1d3f6ba243a2107379e42e
This commit is contained in:
@@ -40,14 +40,14 @@ ${imports if imports else ""}
|
|||||||
from quantum.db import migration
|
from quantum.db import migration
|
||||||
|
|
||||||
|
|
||||||
def upgrade(active_plugin=None, enable_db_quota=False):
|
def upgrade(active_plugin=None, options=None):
|
||||||
if not migration.should_run(active_plugin, migration_for_plugins):
|
if not migration.should_run(active_plugin, migration_for_plugins):
|
||||||
return
|
return
|
||||||
|
|
||||||
${upgrades if upgrades else "pass"}
|
${upgrades if upgrades else "pass"}
|
||||||
|
|
||||||
|
|
||||||
def downgrade(active_plugin=None, enable_db_quota=False):
|
def downgrade(active_plugin=None, options=None):
|
||||||
if not migration.should_run(active_plugin, migration_for_plugins):
|
if not migration.should_run(active_plugin, migration_for_plugins):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user