wiki.techinc.nl/tests/phpunit/data/db
mainframe98 de0c4819d1 Add validation for abstract schema
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
2022-02-22 17:41:08 +00:00
..
mysql Start generateSchemaChangeSql.php 2020-11-01 21:14:53 +01:00
postgres DoctrineSchemaBuilder: Do not add prefix placeholder for Postgres at all 2021-04-06 00:23:14 +00:00
sqlite Add 1.36 and 1.37 snapshots to sqlite db tests 2021-09-29 20:13:38 +02:00
notschema.txt Add validation for abstract schema 2022-02-22 17:41:08 +00:00
patch-drop-ct_tag.json Start generateSchemaChangeSql.php 2020-11-01 21:14:53 +01:00
tables.json Add validation for abstract schema 2022-02-22 17:41:08 +00:00