Use basemodel
This commit is contained in:
@@ -18,10 +18,10 @@ fileConfig(config.config_file_name)
|
|||||||
# target_metadata = mymodel.Base.metadata
|
# target_metadata = mymodel.Base.metadata
|
||||||
# target_metadata = None
|
# target_metadata = None
|
||||||
|
|
||||||
from app.models import SQLModel # noqa
|
from app.models.base import BaseSQLModel # noqa
|
||||||
from app.core.config import settings # noqa
|
from app.core.config import settings # noqa
|
||||||
|
|
||||||
target_metadata = SQLModel.metadata
|
target_metadata = BaseSQLModel.metadata
|
||||||
|
|
||||||
# other values from the config, defined by the needs of env.py,
|
# other values from the config, defined by the needs of env.py,
|
||||||
# can be acquired:
|
# can be acquired:
|
||||||
|
|||||||
Reference in New Issue
Block a user