#334 Improve the Alembic config
Merged by sayanchowdhury. Opened by abompard.
abompard/fedora-hubs alembic  into  develop

Download 334.patch

This changeset moves the Alembic config inside the hubs package, because it must be installed on the target system if we want admins to be able to upgrade their databases.

It also tweaks the env.py script to read the database configuration and metadata from hubs & fedmsg directly.

@jcline , you may be interested in this PR since you wrote the first config.

rebased

Do we want to include the ansible role? I wrote it with development in mind and I can't think how people would use this after installing the Python package.

@abompard thanks for this, it makes a lot of sense. Since I don't really have much experience with Alembic I followed what I saw in other Fedora projects, but including it inside the package seems way better. I guess the other projects rely on the specfile to install it somewhere and don't really work as Python packages.

I only had one question, but it doesn't hurt anything to distribute the Ansible stuff so I'm fine with it being included if you want that. Whatever you choose I don't think I need to re-review this.

+1 we don't need to include the ansible roles.

Why do we need to change the name from alembic to migrations?

alembic.ini is in the project root so we can remove hubs/

Ok, I see that the file got moved into the hubs/

Pull-Request has been merged by sayanchowdhury

Metadata