mirror of
https://github.com/discourse/discourse.git
synced 2026-08-07 13:19:19 +08:00
Some databases only mirror a handful of live tables by design. files_db, for example, just needs uploads and optimized_images because that's all disco's upload writer touches. With the current DSL the only way to keep `schema diff` quiet is to list every remaining core table in ignored.rb, which would be hundreds of entries that go stale on every core change. This adds an `all_other_tables <reason>` declaration to the ignored DSL. When it's set, the Differ treats every live table that isn't configured or explicitly ignored as ignored, so there's no unconfigured-table noise. Explicit `table`/`tables`/`plugin` entries still work alongside it and keep their per-table reasons and stale-ignore checks. The reason is mandatory and it can only be declared once. I added ignored.rb for files_db using the new declaration. |
||
|---|---|---|
| .. | ||
| config/schema | ||
| lib | ||
| scripts | ||
| spec | ||
| .rspec | ||
| Gemfile | ||
| migrations-tooling.gemspec | ||