0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 13:08:40 +08:00
discourse/migrations/core/db
Gerhard Schlager 4c96dc29e4 MT: Keep the real created_at for category moderation groups
Importing category_moderation_groups crashed: its created_at/updated_at are
NOT NULL, but the importer copied only category_id and group_id.

group_users already carries created_at through the IntermediateDB — this table
just ignored it. So I stop ignoring it, the converter carries the source value,
and the importer writes it (CopyStep only fills created_at with NOW() when
column_names lists a timestamp, so I add them there), with updated_at derived
from it. A source without a created_at falls back to the import time.
2026-07-06 10:58:15 +02:00
..
intermediate_db_schema MT: Keep the real created_at for category moderation groups 2026-07-06 10:58:15 +02:00
mappings_db_schema
uploads_db_schema
README.md

Intermediate Database

TODO: Document stuff here.

Database Schema