mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-18 00:31:36 +02:00
* fix input prompts * assistant ordering validation * k * Revert "fix input prompts" This reverts commit a4b577bdd742fc0221b875b44dadc1c9174434a6. * fix alembic * foreign key updates * Revert "foreign key updates" This reverts commit fe17795a037f831790d69229e1067ccb5aab5bd9. * improve e2e tests * fix admin
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