chore: change migration logs
This commit is contained in:
parent
24a359ecd3
commit
bbd2f7dbfc
1 changed files with 2 additions and 1 deletions
|
|
@ -100,9 +100,10 @@ def setup_stream_state(current_notebook: Notebook) -> ChatSession:
|
||||||
def check_migration():
|
def check_migration():
|
||||||
if "migration_required" not in st.session_state:
|
if "migration_required" not in st.session_state:
|
||||||
st.session_state["migration_required"] = None
|
st.session_state["migration_required"] = None
|
||||||
logger.critical("Running migration check")
|
logger.debug("Running migration check")
|
||||||
mm = MigrationManager()
|
mm = MigrationManager()
|
||||||
if mm.needs_migration:
|
if mm.needs_migration:
|
||||||
|
logger.critical("Migration required")
|
||||||
st.warning("The Open Notebook database needs a migration to run properly.")
|
st.warning("The Open Notebook database needs a migration to run properly.")
|
||||||
if st.button("Run Migration"):
|
if st.button("Run Migration"):
|
||||||
mm.run_migration_up()
|
mm.run_migration_up()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue