In the context of T202265: Add 'tmp1' index that is in WMF production to the Wikibase install SQL files the need for a better structure came up.
Decide upon a better structure for *.sql files, and or use new MediaWiki abstract schema change features where appropriate
Goal should be:
- Better oversight
- Bundling of relevant files
- Error avoidance
- Remove the old schema changes that we no longer need (things from before the last supported version of MW)(currently 1.31)
Links:
Acceptance criteria:
- all SQL files are in a sensible location according to their database type
- all SQL files are generated by [maintenance/generateSchemaSql.php] from JSON sources