From 51751271f14f30628c3c77607ae2724d92cbec28 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 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); }