fix SQL error during update: Column "app_tables" cannot be null (1048)

This commit is contained in:
Ralf Becker 2016-02-20 14:23:19 +00:00
parent a765e1496d
commit c3a99d13a0

View File

@ -498,7 +498,7 @@ class setup
'app_name' => $appname, 'app_name' => $appname,
'app_enabled' => $enable, 'app_enabled' => $enable,
'app_order' => $setup_info[$appname]['app_order'], 'app_order' => $setup_info[$appname]['app_order'],
'app_tables' => $tables, 'app_tables' => (string)$tables, // app_tables is NOT NULL
'app_version' => $setup_info[$appname]['version'], 'app_version' => $setup_info[$appname]['version'],
'app_index' => $setup_info[$appname]['index'], 'app_index' => $setup_info[$appname]['index'],
'app_icon' => $setup_info[$appname]['icon'], 'app_icon' => $setup_info[$appname]['icon'],
@ -580,7 +580,7 @@ class setup
$this->db->update($this->applications_table,array( $this->db->update($this->applications_table,array(
'app_enabled' => $setup_info[$appname]['enable'], 'app_enabled' => $setup_info[$appname]['enable'],
'app_order' => $setup_info[$appname]['app_order'], 'app_order' => $setup_info[$appname]['app_order'],
'app_tables' => $tables, 'app_tables' => (string)$tables, // app_tables is NOT NULL
'app_version' => $setup_info[$appname]['version'], 'app_version' => $setup_info[$appname]['version'],
'app_index' => $setup_info[$appname]['index'], 'app_index' => $setup_info[$appname]['index'],
'app_icon' => $setup_info[$appname]['icon'], 'app_icon' => $setup_info[$appname]['icon'],