From 00772cc77d480652c7ba7f7558820ebbff1f79d6 Mon Sep 17 00:00:00 2001 From: jiisanda Date: Sun, 31 Dec 2023 01:06:23 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=8A=20alembic=20updates?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dockerignore | 2 +- app/alembic.ini => alembic.ini | 0 {app/migrations => migrations}/__init__.py | 0 {app/migrations => migrations}/env.py | 5 ++--- {app/migrations => migrations}/script.py.mako | 0 .../versions/2a02384ab925_initial_almebic.py | 0 {app/migrations => migrations}/versions/__init__.py | 0 7 files changed, 3 insertions(+), 4 deletions(-) rename app/alembic.ini => alembic.ini (100%) rename {app/migrations => migrations}/__init__.py (100%) rename {app/migrations => migrations}/env.py (95%) rename {app/migrations => migrations}/script.py.mako (100%) rename {app/migrations => migrations}/versions/2a02384ab925_initial_almebic.py (100%) rename {app/migrations => migrations}/versions/__init__.py (100%) 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