discourse/migrations/db
Gerhard Schlager 554977c7e6 MT: Refactor schema configuration from YAML to Ruby DSL
- Replace the YAML-based schema configuration with a Ruby DSL for defining intermediate database schemas
- Add table builders, conventions, enums, ignored tables, and output config as composable DSL files in `migrations/config/schema/`
- Implement schema resolver that combines DSL config with database introspection to produce resolved schemas
- Add generator that produces SQL schema, Ruby models, and enum files from the resolved schema
- Add scaffolder for bootstrapping new table configs and differ for comparing config against the database
- Add plugin manifest and introspection system to auto-detect plugin-owned columns
- Rewrite all schema CLI commands (`add`, `validate`, `diff`, `generate`, `list`, `ignore`, `refresh-plugins`) to use DSL infrastructure
- Add comprehensive specs and documentation (`migrations/docs/schema-configuration.md`)
- Remove old YAML config, JSON schema, and validation infrastructure
2026-03-19 18:10:26 +01:00
..
intermediate_db_schema MT: Refactor schema configuration from YAML to Ruby DSL 2026-03-19 18:10:26 +01:00
mappings_db_schema DEV: Adds a basic importer for the IntermediateDB 2025-04-07 17:22:36 +02:00
uploads_db_schema DEV: Refactor uploads_importer script (#29292) 2024-10-31 13:31:12 +00:00
README.md

Intermediate Database

TODO: Document stuff here.

Database Schema