discourse/plugins/chat/db
Bianca Nenciu da43deb9ea
DEV: Fix mismatched column types (#29477)
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. After
more careful consideration, we concluded that it is safe to alter the
tables directly.

Even for larger communities, with about 1M chat messages, the
slowest `ALTER` query runs in about 15 seconds, which well under the 30
seconds query timeout limit. As a result, chat messages will be delayed
for a few seconds, but the system will remain operational.
2024-11-06 20:00:40 +02:00
..
fixtures
migrate DEV: Fix mismatched column types (#29477) 2024-11-06 20:00:40 +02:00
post_migrate DEV: Remove logical OR assignment of constants (#29201) 2024-10-16 10:09:07 +08:00