Richard Kuo (Danswer) 28726d3fcc Merge branch 'main' of https://github.com/onyx-dot-app/onyx into feature/schema-translate-map
# Conflicts:
#	backend/onyx/onyxbot/slack/blocks.py
#	backend/onyx/onyxbot/slack/handlers/handle_buttons.py
#	backend/onyx/onyxbot/slack/handlers/handle_message.py
#	backend/onyx/onyxbot/slack/handlers/handle_regular_answer.py
#	backend/onyx/onyxbot/slack/listener.py
#	backend/onyx/onyxbot/slack/utils.py
2025-02-27 02:10:18 -08:00
..
2025-02-27 02:27:45 +00:00
2024-12-13 09:56:10 -08:00

Alembic DB Migrations

These files are for creating/updating the tables in the Relational DB (Postgres). Onyx migrations use a generic single-database configuration with an async dbapi.

To generate new migrations:

run from onyx/backend: alembic revision --autogenerate -m <DESCRIPTION_OF_MIGRATION>

More info can be found here: https://alembic.sqlalchemy.org/en/latest/autogenerate.html

Running migrations

To run all un-applied migrations: alembic upgrade head

To undo migrations: alembic downgrade -X where X is the number of migrations you want to undo from the current state