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:
parent
b1cbcb4abf
commit
d6c86be052
@ -40,14 +40,14 @@ ${imports if imports else ""}
|
||||
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):
|
||||
return
|
||||
|
||||
${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):
|
||||
return
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user