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()
