mirror of
https://github.com/discourse/discourse.git
synced 2024-12-20 20:26:31 +08:00
da43deb9ea
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. |
||
---|---|---|
.. | ||
fixtures | ||
migrate | ||
post_migrate |