Skip to content

Commit d739a6a

Browse files
committed
move alembic_db inside app folder
1 parent fbba2e5 commit d739a6a

File tree

7 files changed

+4
-5
lines changed

7 files changed

+4
-5
lines changed

.github/workflows/test-assets.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
paths:
66
- 'app/**'
7-
- 'alembic_db/**'
87
- 'tests-assets/**'
98
- '.github/workflows/test-assets.yml'
109
- 'requirements.txt'

alembic.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[alembic]
44
# path to migration scripts
55
# Use forward slashes (/) also on windows to provide an os agnostic path
6-
script_location = alembic_db
6+
script_location = app/alembic_db
77

88
# template used to generate migration file names; The default value is %%(rev)s_%%(slug)s
99
# Uncomment the line below if you want the files to be prepended with date and time
File renamed without changes.
File renamed without changes.

app/database/db.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626

2727
def _root_paths():
2828
"""Resolve alembic.ini and migrations script folder."""
29-
root_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))
30-
config_path = os.path.abspath(os.path.join(root_path, "alembic.ini"))
31-
scripts_path = os.path.abspath(os.path.join(root_path, "alembic_db"))
29+
root_path = os.path.abspath(os.path.dirname(__file__))
30+
config_path = os.path.abspath(os.path.join(root_path, "../../alembic.ini"))
31+
scripts_path = os.path.abspath(os.path.join(root_path, "../alembic_db"))
3232
return config_path, scripts_path
3333

3434

0 commit comments

Comments
 (0)