diff --git a/.dockerignore b/.dockerignore index c262680..0548999 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,7 +1,7 @@ .git .idea/ downloads -app/migrations +migrations README.md docker-compose.yml app/.env diff --git a/app/alembic.ini b/alembic.ini similarity index 100% rename from app/alembic.ini rename to alembic.ini diff --git a/app/migrations/__init__.py b/migrations/__init__.py similarity index 100% rename from app/migrations/__init__.py rename to migrations/__init__.py diff --git a/app/migrations/env.py b/migrations/env.py similarity index 95% rename from app/migrations/env.py rename to migrations/env.py index cf99b2a..21f3484 100644 --- a/app/migrations/env.py +++ b/migrations/env.py @@ -5,11 +5,10 @@ from alembic import context -from db.models import Base +from app.db.models import Base from app.core.config import settings - # this is the Alembic Config object, which provides # access to the values within the .ini file in use. config = context.config @@ -22,7 +21,7 @@ # add your model's MetaData object here # for 'autogenerate' support -from db.tables.documents.document_sharing import DocumentSharing +from app.db.tables.documents.document_sharing import DocumentSharing target_metadata = Base.metadata diff --git a/app/migrations/script.py.mako b/migrations/script.py.mako similarity index 100% rename from app/migrations/script.py.mako rename to migrations/script.py.mako diff --git a/app/migrations/versions/2a02384ab925_initial_almebic.py b/migrations/versions/2a02384ab925_initial_almebic.py similarity index 100% rename from app/migrations/versions/2a02384ab925_initial_almebic.py rename to migrations/versions/2a02384ab925_initial_almebic.py diff --git a/app/migrations/versions/__init__.py b/migrations/versions/__init__.py similarity index 100% rename from app/migrations/versions/__init__.py rename to migrations/versions/__init__.py