MDL-36941 core: Remove default for convhash field in upgrade.php
authorJun Pataleta <jun@moodle.com>
Fri, 23 Mar 2018 06:14:49 +0000 (14:14 +0800)
committerJun Pataleta <jun@moodle.com>
Fri, 23 Mar 2018 06:14:49 +0000 (14:14 +0800)
lib/db/upgrade.php

index deff6eb..42039ad 100644 (file)
@@ -2134,7 +2134,7 @@ function xmldb_main_upgrade($oldversion) {
     if ($oldversion < 2018032200.04) {
         // Define table 'message_conversations' to be updated.
         $table = new xmldb_table('message_conversations');
     if ($oldversion < 2018032200.04) {
         // Define table 'message_conversations' to be updated.
         $table = new xmldb_table('message_conversations');
-        $field = new xmldb_field('convhash', XMLDB_TYPE_CHAR, '40', null, XMLDB_NOTNULL, null, 0, 'id');
+        $field = new xmldb_field('convhash', XMLDB_TYPE_CHAR, '40', null, XMLDB_NOTNULL, null, null, 'id');
 
         // Conditionally launch add field 'convhash'.
         if (!$dbman->field_exists($table, $field)) {
 
         // Conditionally launch add field 'convhash'.
         if (!$dbman->field_exists($table, $field)) {