refactor(alembic): the migration environment ships inside the package - a pip install could never migrate from repo-root alembic/

This commit is contained in:
SToneX
2026-08-29 17:29:17 +08:00
parent 459325ea6e
commit 9be2330cc5
15 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
[alembic] [alembic]
script_location = %(here)s/alembic script_location = %(here)s/src/treg/alembic
prepend_sys_path = . prepend_sys_path = .
path_separator = os path_separator = os
sqlalchemy.url = sqlalchemy.url =
-3
View File
@@ -1,3 +0,0 @@
Alembic migrations for the tools-registry server schema.
The application continues to run treg.db.init_db at startup until refactor stage 5.
+4
View File
@@ -0,0 +1,4 @@
Alembic migrations for the tools-registry server schema.
This directory ships inside the wheel. treg.maintenance runs Alembic before release tasks.
The frozen treg.db.init_db path remains for legacy adoption and temporary lifespan/worker redundancy.
+1
View File
@@ -0,0 +1 @@
"""Alembic migration environment shipped inside the server package."""