0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 13:08:40 +08:00
discourse/migrations/tooling
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/schema MT: Keep the real created_at for category moderation groups 2026-07-06 10:58:15 +02:00
lib MT: Let a generated model declare its conflict strategy in the schema DSL 2026-07-03 17:05:25 +02:00
scripts MT: Run conversion steps concurrently and split the heavy ones across cores 2026-07-03 11:48:25 +02:00
spec MT: Let a generated model declare its conflict strategy in the schema DSL 2026-07-03 17:05:25 +02:00
.rspec
Gemfile
migrations-tooling.gemspec