diff --git a/GeoHealthCheck/migrations/versions/2638c2a40625_.py b/GeoHealthCheck/migrations/versions/2638c2a40625_.py index 30581f35..b729043d 100644 --- a/GeoHealthCheck/migrations/versions/2638c2a40625_.py +++ b/GeoHealthCheck/migrations/versions/2638c2a40625_.py @@ -9,7 +9,7 @@ import sqlalchemy as sa import imp import os - +from GeoHealthCheck.migrations import alembic_helpers # revision identifiers, used by Alembic. revision = '2638c2a40625' @@ -17,10 +17,6 @@ branch_labels = None depends_on = None -helpers_file = os.path.join(os.path.dirname(__file__), '..', 'alembic_helpers.py') -alembic_helpers = imp.load_source('alembic_helpers', helpers_file) - - def upgrade(): if not alembic_helpers.table_has_column('resource', 'active'): diff --git a/GeoHealthCheck/migrations/versions/496427d03f87_.py b/GeoHealthCheck/migrations/versions/496427d03f87_.py index 3d2eb921..c4d290c4 100644 --- a/GeoHealthCheck/migrations/versions/496427d03f87_.py +++ b/GeoHealthCheck/migrations/versions/496427d03f87_.py @@ -9,9 +9,7 @@ import sqlalchemy as sa import imp import os - -helpers_file = os.path.join(os.path.dirname(__file__), '..', 'alembic_helpers.py') -alembic_helpers = imp.load_source('alembic_helpers', helpers_file) +from GeoHealthCheck.migrations import alembic_helpers # revision identifiers, used by Alembic. revision = '496427d03f87' diff --git a/GeoHealthCheck/migrations/versions/992013af402f_.py b/GeoHealthCheck/migrations/versions/992013af402f_.py index b76f3af0..cd221963 100644 --- a/GeoHealthCheck/migrations/versions/992013af402f_.py +++ b/GeoHealthCheck/migrations/versions/992013af402f_.py @@ -9,9 +9,7 @@ import sqlalchemy as sa import imp import os - -helpers_file = os.path.join(os.path.dirname(__file__), '..', 'alembic_helpers.py') -alembic_helpers = imp.load_source('alembic_helpers', helpers_file) +from GeoHealthCheck.migrations import alembic_helpers # revision identifiers, used by Alembic. revision = '992013af402f'