discourse-ai/db
Bianca Nenciu 294c364a75
DEV: Fix mismatched column types (#868)
The primary key is usually a bigint column, but the foreign key columns
are usually of integer type. This can lead to issues when joining these
columns due to mismatched types and different value ranges.

This was using a temporary plugin / test API to make tests pass, but it
is safe to alter "ai_document_fragment_embeddings" and
"rag_document_fragments" tables because they usually have less than 1M
rows and migration is going to be fast.

Depending on the size of the community, "classification_results" table
may have more than 1M rows and the migration will lock the table for a
longer time. However, classification runs in background jobs and they
will be automatically retried if they fail due to the lock, which makes
it acceptable.
2024-10-28 15:36:42 +02:00
..
fixtures DEV: Remove old code now that features rely on LlmModels. (#729) 2024-07-30 13:44:57 -03:00
migrate DEV: Fix mismatched column types (#868) 2024-10-28 15:36:42 +02:00
post_migrate FEATURE: smarter persona tethering (#832) 2024-10-16 07:20:31 +11:00