Fix module name for gmg alembic
command
gmg_commands.alembic attempted to import from `alembic`. On python2.7 it resulted in import from itself. Rename alembic.py to alembic_commands.py and fix references to gmg_commands.alembic.
This commit is contained in:
parent
fec916dfbe
commit
17aaab6907
@ -77,8 +77,8 @@ SUBCOMMAND_MAP = {
|
|||||||
'func': 'mediagoblin.gmg_commands.batchaddmedia:batchaddmedia',
|
'func': 'mediagoblin.gmg_commands.batchaddmedia:batchaddmedia',
|
||||||
'help': 'Add many media entries at once'},
|
'help': 'Add many media entries at once'},
|
||||||
'alembic': {
|
'alembic': {
|
||||||
'setup': 'mediagoblin.gmg_commands.alembic:parser_setup',
|
'setup': 'mediagoblin.gmg_commands.alembic_commands:parser_setup',
|
||||||
'func': 'mediagoblin.gmg_commands.alembic:raw_alembic_cli',
|
'func': 'mediagoblin.gmg_commands.alembic_commands:raw_alembic_cli',
|
||||||
'help': (
|
'help': (
|
||||||
'Run raw alembic commands with our local database. '
|
'Run raw alembic commands with our local database. '
|
||||||
'(Unless you know what you\'re doing, use dbupdate instead!)')},
|
'(Unless you know what you\'re doing, use dbupdate instead!)')},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user