aboutsummaryrefslogtreecommitdiffstats
path: root/sql/abstractSchemaChanges/patch-site_identifiers-rename-indexes.json
diff options
context:
space:
mode:
Diffstat (limited to 'sql/abstractSchemaChanges/patch-site_identifiers-rename-indexes.json')
-rw-r--r--sql/abstractSchemaChanges/patch-site_identifiers-rename-indexes.json61
1 files changed, 61 insertions, 0 deletions
diff --git a/sql/abstractSchemaChanges/patch-site_identifiers-rename-indexes.json b/sql/abstractSchemaChanges/patch-site_identifiers-rename-indexes.json
new file mode 100644
index 000000000000..76a561a00448
--- /dev/null
+++ b/sql/abstractSchemaChanges/patch-site_identifiers-rename-indexes.json
@@ -0,0 +1,61 @@
+{
+ "comment": "Rename indexes to have uniform si_ prefix with the columns (T270033)",
+ "before": {
+ "name": "site_identifiers",
+ "comment": "Links local site identifiers to their corresponding site.",
+ "columns": [
+ {
+ "name": "si_type",
+ "comment": "local key type, ie 'interwiki' or 'langlink'",
+ "type": "binary",
+ "options": { "length": 32, "notnull": true }
+ },
+ {
+ "name": "si_key",
+ "comment": "local key value, ie 'en' or 'wiktionary'",
+ "type": "binary",
+ "options": { "length": 32, "notnull": true }
+ },
+ {
+ "name": "si_site",
+ "comment": "Key on sites.site_id",
+ "type": "integer",
+ "options": { "unsigned": true, "notnull": true }
+ }
+ ],
+ "indexes": [
+ { "name": "site_ids_site", "columns": [ "si_site" ], "unique": false },
+ { "name": "site_ids_key", "columns": [ "si_key" ], "unique": false }
+ ],
+ "pk": [ "si_type", "si_key" ]
+ },
+ "after": {
+ "name": "site_identifiers",
+ "comment": "Links local site identifiers to their corresponding site.",
+ "columns": [
+ {
+ "name": "si_type",
+ "comment": "local key type, ie 'interwiki' or 'langlink'",
+ "type": "binary",
+ "options": { "length": 32, "notnull": true }
+ },
+ {
+ "name": "si_key",
+ "comment": "local key value, ie 'en' or 'wiktionary'",
+ "type": "binary",
+ "options": { "length": 32, "notnull": true }
+ },
+ {
+ "name": "si_site",
+ "comment": "Key on sites.site_id",
+ "type": "integer",
+ "options": { "unsigned": true, "notnull": true }
+ }
+ ],
+ "indexes": [
+ { "name": "si_site", "columns": [ "si_site" ], "unique": false },
+ { "name": "si_key", "columns": [ "si_key" ], "unique": false }
+ ],
+ "pk": [ "si_type", "si_key" ]
+ }
+}