openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 21dd7e6668eaa9e23f227fefd017c73b3a7651ff
parent 7e791d587e3d6d23354201768a4f1d3b400fcfe9
Author: Jan Dankert <devnull@localhost>
Date:   Tue,  1 Sep 2015 23:37:32 +0200

Fix: Spalte 'installed' ist nicht nullable und muss immer gefüllt sein.

Diffstat:
db/DbUpdate.class.php | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/db/DbUpdate.class.php b/db/DbUpdate.class.php @@ -25,8 +25,9 @@ class DbUpdate { if ( $installVersion > 2 ) { - $sql = new Sql('INSERT INTO {t_version} (id,version,status) VALUES( {version},{version},0 )',$db->id); + $sql = new Sql('INSERT INTO {t_version} (id,version,status,installed) VALUES( {version},{version},0,{time} )',$db->id); $sql->setInt('version', $installVersion); + $sql->setInt('time' , time() ); $db->query( $sql ); $db->commit(); }