feat(db): v4 to v5 migration

This commit is contained in:
2025-05-31 15:36:12 +08:00
parent ebb649aef6
commit a680a6fd7d
3 changed files with 536 additions and 2 deletions

View File

@ -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: