aboutsummaryrefslogtreecommitdiffstats
path: root/sql/abstractSchemaChanges/patch-page_props-pp_page.json
diff options
context:
space:
mode:
Diffstat (limited to 'sql/abstractSchemaChanges/patch-page_props-pp_page.json')
-rw-r--r--sql/abstractSchemaChanges/patch-page_props-pp_page.json65
1 files changed, 65 insertions, 0 deletions
diff --git a/sql/abstractSchemaChanges/patch-page_props-pp_page.json b/sql/abstractSchemaChanges/patch-page_props-pp_page.json
new file mode 100644
index 000000000000..e3c70fd3696f
--- /dev/null
+++ b/sql/abstractSchemaChanges/patch-page_props-pp_page.json
@@ -0,0 +1,65 @@
+{
+ "comment": "Set unsigned true for pp_page in page_props table",
+ "before": {
+ "name": "page_props",
+ "comment": "Name/value pairs indexed by page_id",
+ "columns": [
+ {
+ "name": "pp_page",
+ "type": "integer",
+ "options": { "notnull": true }
+ },
+ {
+ "name": "pp_propname",
+ "type": "binary",
+ "options": { "length": 60, "notnull": true }
+ },
+ {
+ "name": "pp_value",
+ "type": "blob",
+ "options": { "length": 65530, "notnull": true }
+ },
+ {
+ "name": "pp_sortkey",
+ "type": "float",
+ "options": { "notnull": false }
+ }
+ ],
+ "indexes": [
+ { "name": "pp_propname_page", "columns": [ "pp_propname", "pp_page" ], "unique": true },
+ { "name": "pp_propname_sortkey_page", "columns": [ "pp_propname", "pp_sortkey", "pp_page" ], "unique": true, "options": { "where": "(pp_sortkey IS NOT NULL)" } }
+ ],
+ "pk": [ "pp_page", "pp_propname" ]
+ },
+ "after": {
+ "name": "page_props",
+ "comment": "Name/value pairs indexed by page_id",
+ "columns": [
+ {
+ "name": "pp_page",
+ "type": "integer",
+ "options": { "notnull": true, "unsigned": true }
+ },
+ {
+ "name": "pp_propname",
+ "type": "binary",
+ "options": { "length": 60, "notnull": true }
+ },
+ {
+ "name": "pp_value",
+ "type": "blob",
+ "options": { "length": 65530, "notnull": true }
+ },
+ {
+ "name": "pp_sortkey",
+ "type": "float",
+ "options": { "notnull": false }
+ }
+ ],
+ "indexes": [
+ { "name": "pp_propname_page", "columns": [ "pp_propname", "pp_page" ], "unique": true },
+ { "name": "pp_propname_sortkey_page", "columns": [ "pp_propname", "pp_sortkey", "pp_page" ], "unique": true, "options": { "where": "(pp_sortkey IS NOT NULL)" } }
+ ],
+ "pk": [ "pp_page", "pp_propname" ]
+ }
+}