mirror of
https://github.com/283375/arcaea-offline.git
synced 2025-09-13 15:03:09 +00:00
feat(db): v4 to v5 migration
This commit is contained in:
@ -3,7 +3,7 @@ from logging.config import fileConfig
|
||||
from alembic import context
|
||||
from sqlalchemy import engine_from_config, pool
|
||||
|
||||
from arcaea_offline.database.models.base import ModelsV5Base
|
||||
from arcaea_offline.database.models._base import ModelBase
|
||||
|
||||
# this is the Alembic Config object, which provides
|
||||
# access to the values within the .ini file in use.
|
||||
@ -18,7 +18,7 @@ if config.config_file_name is not None:
|
||||
# for 'autogenerate' support
|
||||
# from myapp import mymodel
|
||||
# target_metadata = mymodel.Base.metadata
|
||||
target_metadata = [ModelsV5Base.metadata]
|
||||
target_metadata = [ModelBase.metadata]
|
||||
|
||||
# other values from the config, defined by the needs of env.py,
|
||||
# can be acquired:
|
||||
|
Reference in New Issue
Block a user