0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 13:08:40 +08:00
discourse/migrations/importer
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
..
config MT: Add a TUI progress reporter and use it in the importer too 2026-06-25 17:46:04 +02:00
lib MT: Keep the real created_at for category moderation groups 2026-07-06 10:58:15 +02:00
spec MT: Add typed placeholder model for deferred post embeds 2026-06-29 16:52:41 +02:00
.rspec MT: Split the migrations tooling into separate gems (#40492) 2026-06-02 22:20:03 +02:00
Gemfile MT: Split the migrations tooling into separate gems (#40492) 2026-06-02 22:20:03 +02:00
migrations-importer.gemspec MT: Split the migrations tooling into separate gems (#40492) 2026-06-02 22:20:03 +02:00