wiki.techinc.nl/maintenance/abstractSchemaChanges/patch-objectcache-modtoken.json

64 lines
1.4 KiB
JSON
Raw Normal View History

{
"comment": "Add objectcache.modtime and objectcache.token fields (T274174)",
"before": {
"name": "objectcache",
"comment": "For a few generic cache operations if not using Memcached",
"columns": [
{
"name": "keyname",
"type": "binary",
"options": { "notnull": true, "default": "", "length": 255 }
},
{
"name": "value",
"type": "blob",
"options": { "notnull": false, "length": 16777215 }
},
{
"name": "exptime",
"type": "mwtimestamp",
"options": { "notnull": true }
}
],
"indexes": [
{ "name": "exptime", "columns": [ "exptime" ], "unique": false }
],
"pk": [ "keyname" ]
},
"after": {
"name": "objectcache",
"comment": "For a few generic cache operations if not using Memcached",
"columns": [
{
"name": "keyname",
"type": "binary",
"options": { "notnull": true, "default": "", "length": 255 }
},
{
"name": "value",
"type": "blob",
"options": { "notnull": false, "length": 16777215 }
},
{
"name": "exptime",
"type": "mwtimestamp",
"options": { "notnull": true }
},
{
"name": "modtoken",
"type": "string",
"options": { "notnull": true, "length": 17, "default": "00000000000000000" }
},
{
"name": "flags",
"type": "integer",
"options": { "notnull": false, "unsigned": true, "default": null }
}
],
"indexes": [
{ "name": "exptime", "columns": [ "exptime" ], "unique": false }
],
"pk": [ "keyname" ]
}
}