From 177bb8c15edd9ab3e02542ef568e6ce234d079e4 Mon Sep 17 00:00:00 2001 From: Randy Barlow Date: Tue, 7 Nov 2017 21:14:31 +0000 Subject: [PATCH] Configure alembic.ini for the new migrations location. Signed-off-by: Randy Barlow --- roles/bodhi2/base/templates/alembic.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/bodhi2/base/templates/alembic.ini b/roles/bodhi2/base/templates/alembic.ini index b514ae7352..4554f05289 100644 --- a/roles/bodhi2/base/templates/alembic.ini +++ b/roles/bodhi2/base/templates/alembic.ini @@ -2,7 +2,11 @@ [alembic] # path to migration scripts +{% if env == 'staging' %} +script_location = bodhi:server/migrations +{% else %} script_location = /usr/share/bodhi/alembic +{% endif %} # template used to generate migration files # file_template = %%(rev)s_%%(slug)s