fix alembic env path
This commit is contained in:
@@ -4,7 +4,6 @@ from pydantic import BaseModel
|
|||||||
from pydantic_settings import BaseSettings, SettingsConfigDict
|
from pydantic_settings import BaseSettings, SettingsConfigDict
|
||||||
|
|
||||||
BASE_DIR = Path(__file__).parent.parent
|
BASE_DIR = Path(__file__).parent.parent
|
||||||
print(BASE_DIR)
|
|
||||||
DB_PATH = BASE_DIR / "db/taskncoffee.db"
|
DB_PATH = BASE_DIR / "db/taskncoffee.db"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ from sqlalchemy import pool
|
|||||||
|
|
||||||
from alembic import context
|
from alembic import context
|
||||||
|
|
||||||
from src.db.database import Base
|
from src.core.database import Base
|
||||||
from src.models import * # noqa
|
from src.models import * # noqa
|
||||||
|
|
||||||
# this is the Alembic Config object, which provides
|
# this is the Alembic Config object, which provides
|
||||||
|
|||||||
Reference in New Issue
Block a user