Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alembic cli not working #2872

Closed
hahahannes opened this issue Aug 28, 2019 · 0 comments
Closed

alembic cli not working #2872

hahahannes opened this issue Aug 28, 2019 · 0 comments
Assignees
Milestone

Comments

@hahahannes
Copy link
Contributor

hahahannes commented Aug 28, 2019

Motivation

On next branch, the alembic CLI seems to not work anymore with the upgrade from version 0.9 to 0.11.

alembic -c etc/alembic.ini history

 File "/usr/lib/python2.7/site-packages/alembic/util/langhelpers.py", line 83, in _name_error
    % (name, cls.__name__)
NameError: Can't invoke function 'get_context', as the proxy object has not yet been established for the Alembic 'EnvironmentContext' class.  Try placing this code inside a callable.

Modification

Seems like all the schema declarations have to be moved to the upgrade/downgrade functions

@hahahannes hahahannes added the bug label Aug 28, 2019
@hahahannes hahahannes self-assigned this Aug 28, 2019
hahahannes added a commit to hahahannes/rucio that referenced this issue Aug 28, 2019
bari12 added a commit that referenced this issue Aug 30, 2019
…_problem

Patch: fixed alembic context error; Fix #2872
@bari12 bari12 changed the title alembic cli not working on next alembic cli not working Aug 30, 2019
@bari12 bari12 added this to the 1.21.0 "Donkeys of the Galaxy" milestone Aug 30, 2019
@bari12 bari12 closed this as completed in be40150 Nov 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants