aboutsummaryrefslogtreecommitdiffstats
path: root/sql/abstractSchemaChanges/patch-user_autocreate_serial-uas_year.json
diff options
context:
space:
mode:
Diffstat (limited to 'sql/abstractSchemaChanges/patch-user_autocreate_serial-uas_year.json')
-rw-r--r--sql/abstractSchemaChanges/patch-user_autocreate_serial-uas_year.json49
1 files changed, 49 insertions, 0 deletions
diff --git a/sql/abstractSchemaChanges/patch-user_autocreate_serial-uas_year.json b/sql/abstractSchemaChanges/patch-user_autocreate_serial-uas_year.json
new file mode 100644
index 000000000000..734f1969808a
--- /dev/null
+++ b/sql/abstractSchemaChanges/patch-user_autocreate_serial-uas_year.json
@@ -0,0 +1,49 @@
+{
+ "comment": "Add uas_year to user_autocreate_serial table",
+ "before": {
+ "name": "user_autocreate_serial",
+ "comment": "Table for sequential name generation for auto-created temporary users",
+ "columns": [
+ {
+ "name": "uas_shard",
+ "comment": "The segment of ID space, ID mod N, referred to by this row",
+ "type": "integer",
+ "options": { "unsigned": true, "notnull": true }
+ },
+ {
+ "name": "uas_value",
+ "comment": "The maximum allocated ID value",
+ "type": "integer",
+ "options": { "unsigned": true, "notnull": true }
+ }
+ ],
+ "indexes": [],
+ "pk": [ "uas_shard" ]
+ },
+ "after": {
+ "name": "user_autocreate_serial",
+ "comment": "Table for sequential name generation for auto-created temporary users",
+ "columns": [
+ {
+ "name": "uas_shard",
+ "comment": "The segment of ID space, ID mod N, referred to by this row",
+ "type": "integer",
+ "options": { "unsigned": true, "notnull": true }
+ },
+ {
+ "name": "uas_year",
+ "comment": "The year to which this row belongs, if $wgAutoCreateTempUser['serialProvider']['useYear'] is true.",
+ "type": "smallint",
+ "options": { "unsigned": true, "notnull": true }
+ },
+ {
+ "name": "uas_value",
+ "comment": "The maximum allocated ID value",
+ "type": "integer",
+ "options": { "unsigned": true, "notnull": true }
+ }
+ ],
+ "indexes": [],
+ "pk": [ "uas_shard", "uas_year" ]
+ }
+}