sqlalchemy-migrate

Is it worth using sqlalchemy-migrate ? [closed]

二次信任 提交于 2019-12-02 18:43:46
I have a web application using sqlalchemy (within Pylons). I need to effiently change the schema to be able to change the production version at least on a daily basis, maybe more, without losing the data. I have played a little bit with sqlalchemy-migrate over the week-end and I would say that it gave me a bad impression. First I think it cannot help with migration between two databases engines ; that's something that could probably be done with sqlalchemy alone. Second the docs do not seem up to date. I had to change some command-line options, like giving the repository path at each command,

alembic util command error can't find identifier

谁都会走 提交于 2019-12-02 16:13:53
I'm trying to use alembic to handle local migrations on my project. It worked the first time, but then I needed to delete the folder and restart.(don't ask why, I just had to) I'm following this tutorial and I run the command python manage.py db init And it was ok. But when I try to run python manage.py db migrate I'm getting this error: alembic.util.CommandError: Can't locate revision identified by '31b8ab83c7d' Now, it seems that alembic is looking for a revision that doesn't exists anymore. There is anyway to make alembic forget that file? Or like restart the comparison from None to -> auto

SQL-alchemy: ValueError too many values to unpack?

做~自己de王妃 提交于 2019-11-29 02:44:59
I have a website running with a mysql database using the sql-alchemy package that has suddenly broken. I have done some research and found that the expected issue is that the newest sql-alchemy update is handing flask-admin one more value than expected from "cls, key = identity_key(instance=obj)" Source The suggested fix is to edit the files to accept a third item but I am unable to do this with the permissions I have on my environment. Another answer links to a repo on github but I cannot figure out how that helps me. I'm very new to this and I don't know if I am supposed to clone the repo or

SQL-alchemy: ValueError too many values to unpack?

五迷三道 提交于 2019-11-27 17:01:51
问题 I have a website running with a mysql database using the sql-alchemy package that has suddenly broken. I have done some research and found that the expected issue is that the newest sql-alchemy update is handing flask-admin one more value than expected from "cls, key = identity_key(instance=obj)" Source The suggested fix is to edit the files to accept a third item but I am unable to do this with the permissions I have on my environment. Another answer links to a repo on github but I cannot