Commit session after alembic updates have finished
authorBoris Bobrov <breton@cynicmansion.ru>
Sat, 1 Apr 2017 18:07:01 +0000 (21:07 +0300)
committerBoris Bobrov <breton@cynicmansion.ru>
Sat, 1 Apr 2017 18:26:35 +0000 (21:26 +0300)
commita587f8bc33069e65495405276cc8d41b588624e3
tree978858ae2c364ba4da14bd6cfb64021bbd00302d
parent4465521ad5ce99a9bd3e3e2fa68c7bb48f6a12c3
Commit session after alembic updates have finished

After alembic updates we need to add foundations. The tables to add
foundations to are created as part of dbupdate process. For some reason
Alembic doesn't commit a session in the end. Because the session is not
commited, the tables do not really get created. And because of that,
foundations fail.

The solution is to commit the session after alembic updates.

(cherry picked from commit a5dae0dbc2dc7036a117589555e3a5b0bf10f596)
mediagoblin/gmg_commands/dbupdate.py