aboutsummaryrefslogtreecommitdiffstats
path: root/docs/abstract-schema-table.json
Commit message (Collapse)AuthorAgeFilesLines
* abstract schema: Improve validation of json fileUmherirrender2022-07-261-5/+14
| | | | | | | | | | | | The boolean type is unwanted, but it is needed in the schema to allow "boolean" as old value in an schema change (example 88e30dc) The key "options" and "unique" are used without check in DoctrineAbstractSchemaTrait There are only two values for the "flags" key. Change-Id: I7cbd0c1cdf770185fdc006f34cf405af88dc3dab
* abstract schema validation: Add decimal as valid typeUmherirrender2022-06-191-0/+11
| | | | | | Include scale and precision usable on this type Change-Id: If55fdf89e1050a0bada4f963e600b5e73ffc01bf
* Add validation for abstract schemamainframe982022-02-221-0/+208
This adds an option to the schema generating maintenance scripts to validate abstract schemas and schema changes and a structure test to validate exisiting schemas and schema changes. Schemas are also validated when generating. The validation for the schema doesn't impose limits on table, index or column names as I couldn't find any reliable conventions for them. The structure tests only cover MediaWiki itself as there is no convention on where extensions store their abstract schema. Ideally, auto detection would be possible for sql/, but for now extensions have to define their own (thankfully trivial) tests. A couple of invalid definitions were fixed thanks to these tests. I aimed to be thorough, but not all parts of the abstract schema are completely clear, and Doctrine's documentation is not complete. As a result, not everything has a description field. Bug: T298320 Change-Id: I681d265317d4d1584869142ebb23d4098c06885f