Skip to content

Commit

Permalink
fix migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Jan 12, 2025
1 parent fd0b6a7 commit 9f1048f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion agixt/DB.py
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,10 @@ def migrate_company_agent_name():
logging.error(f"Error connecting to database: {e}")
time.sleep(5)
# Create any missing tables
migrate_company_agent_name()
try:
migrate_company_agent_name()
except Exception as e:
logging.error(f"Error during migration: {e}")
Base.metadata.create_all(engine)
setup_default_roles()
seed_data = str(getenv("SEED_DATA")).lower() == "true"
Expand Down

0 comments on commit 9f1048f

Please sign in to comment.