mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-05-30 17:50:27 +02:00
* Added TTL to EE Celery tasks * fixed alembic files * fixed frontend build issue and reworked file deletion * FileD * revert change * reworked delete chatmessage * added orphan cleanup * ensured syntax * default value to None * made all deletions manual * added fix * Use tremor buttons now * removed words * Update 23957775e5f5_remove_feedback_foreignkey_constraint.py * fixed alembic version
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