open-webui/backend/open_webui/migrations
Classic298 06657b8109
fix: handle non-dict history/messages in chat_message migration (#22588)
Some databases contain chat records where 'history' or 'messages' are
stored as lists instead of dicts. This causes an AttributeError
('list' object has no attribute 'items') during the
8452d01d26d7_add_chat_message_table migration.

Add isinstance checks to skip chat records with unexpected data shapes
gracefully, matching the existing pattern used for individual message
validation.
2026-03-11 14:24:21 -05:00
..
versions fix: handle non-dict history/messages in chat_message migration (#22588) 2026-03-11 14:24:21 -05:00
env.py feat: add LOG_FORMAT=json for structured JSON logging (#21747) 2026-02-22 17:40:17 -06:00
README refac: mv backend files to /open_webui dir 2024-09-04 16:54:48 +02:00
script.py.mako wip 2024-12-10 00:54:13 -08:00
util.py feat: project migration 2024-10-01 17:35:10 -07:00

Generic single-database configuration.

Create new migrations with
DATABASE_URL=<replace with actual url> alembic revision --autogenerate -m "a description"