15 lines
376 B
Python
15 lines
376 B
Python
from __future__ import annotations
|
|
|
|
from govoplan_core.db.migrations import migrate_database
|
|
|
|
|
|
def main() -> None:
|
|
result = migrate_database()
|
|
if result.reconciled_revision:
|
|
print(f"Reconciled legacy database marker to {result.reconciled_revision}.")
|
|
print(f"Database schema upgraded to {result.current_revision}.")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|