diff --git a/db/install.xml b/db/install.xml index 99a6467..3842add 100644 --- a/db/install.xml +++ b/db/install.xml @@ -37,7 +37,7 @@ - + diff --git a/db/upgrade.php b/db/upgrade.php index d00522f..e774665 100644 --- a/db/upgrade.php +++ b/db/upgrade.php @@ -237,7 +237,7 @@ function xmldb_attendance_upgrade($oldversion=0) { $table = new xmldb_table('attendance_sessions'); $field = new xmldb_field('studentpassword'); - $field->set_attributes(XMLDB_TYPE_CHAR, '50', null, null, null, '', 'studentscanmark'); + $field->set_attributes(XMLDB_TYPE_CHAR, '50', null, false, null, '', 'studentscanmark'); if (!$dbman->field_exists($table, $field)) { $dbman->add_field($table, $field); }