| 1 | { |
| 2 | "$schema": "https://json-schema.org/schema#", |
| 3 | "description": "MediaWiki abstract database schema schema", |
| 4 | "type": "object", |
| 5 | "additionalProperties": false, |
| 6 | "properties": { |
| 7 | "comment": { |
| 8 | "type": "string", |
| 9 | "description": "Comment describing the schema change" |
| 10 | }, |
| 11 | "before": { |
| 12 | "oneOf": [ |
| 13 | { |
| 14 | "type": "object", |
| 15 | "description": "Emtpy object signifying table creation", |
| 16 | "maxProperties": 0 |
| 17 | }, |
| 18 | { |
| 19 | "type": "object", |
| 20 | "description": "Schema before the change", |
| 21 | "$ref": "abstract-schema-table.json" |
| 22 | } |
| 23 | ] |
| 24 | }, |
| 25 | "after": { |
| 26 | "type": "object", |
| 27 | "description": "Schema after the change", |
| 28 | "$ref": "abstract-schema-table.json" |
| 29 | } |
| 30 | } |
| 31 | } |