From 415151f06be63bc4be785e1ffed762a1d0c15507 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Fri, 28 Apr 2017 15:06:58 +1200 Subject: [PATCH] fix notnull values. --- db/install.xml | 2 +- db/upgrade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 65b726a..71690f4 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); }