mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-27 18:22:55 +01:00
* Github action to run integration tests * Improve * Fix build * Add pull * Fix readiness script * Add IT runner * Add IT runner * Add logs * update * Fix * Fix path * file path * test * fix * fix * fix * test * network * fix * cleanup * fix * test * Fix downgrade * Add OpenAI API key * Add VESPA_HOST * test pulling first * Add API server host * Cache tweak * Fix pull/push settings: * Stop pushing to latest tag * test cache change * test * test * test * remove cache temporarily * Fix * Enable EE * test * Remove duplicate funcs * add back build * Update all * Fix stop cmd * Add to merge queue * Cleanup image tag
Alembic DB Migrations
These files are for creating/updating the tables in the Relational DB (Postgres). Danswer migrations use a generic single-database configuration with an async dbapi.
To generate new migrations:
run from danswer/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