From ef11a5269eac411678ed79aa4a98fcf55955d6d1 Mon Sep 17 00:00:00 2001 From: Andreas Date: Fri, 20 Sep 2019 14:51:18 +0200 Subject: [PATCH] fixed problem --- dev_mvc/model/testactions/TA_CreateDB.php | 2 +- dev_mvc/model/testactions/TA_PopulateDB.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dev_mvc/model/testactions/TA_CreateDB.php b/dev_mvc/model/testactions/TA_CreateDB.php index 636d113..f90efb0 100644 --- a/dev_mvc/model/testactions/TA_CreateDB.php +++ b/dev_mvc/model/testactions/TA_CreateDB.php @@ -53,7 +53,7 @@ class TA_CreateDB extends TestAction{ `email` varchar(256) NOT NULL, `password` varchar(256) NOT NULL, `reg_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, - `logMessagein_date` datetime NOT NULL, + `login_date` datetime NOT NULL, `reg_ip` varchar(256) NOT NULL, `permissions` int(11) NOT NULL DEFAULT '-1', `active` tinyint(1) DEFAULT '0', diff --git a/dev_mvc/model/testactions/TA_PopulateDB.php b/dev_mvc/model/testactions/TA_PopulateDB.php index f1a344d..6545c33 100644 --- a/dev_mvc/model/testactions/TA_PopulateDB.php +++ b/dev_mvc/model/testactions/TA_PopulateDB.php @@ -29,17 +29,17 @@ class TA_PopulateDB extends TestAction{ self::logMessage('table doesnt exist', "OK"); - $query = $con->query("INSERT INTO users (`username`, `email`, `password`, `login_date`, `reg_ip`, `active`) VALUES + $query = $con->query("INSERT INTO users ( `username`, `email`, `password`, `login_date`, `reg_ip`, `active`) VALUES ( 'andreas', 'andreas@andreas.nl', 'jenk', '2019-01-01 14:35:33', '192.168.0.2', 1), ( 'bram', 'bram@bram.nl', 'jenk', '2019-01-01 14:35:33', '192.168.0.1', 1)"); self::logMessage("created test users", "OK"); - $query = $con->query("INSERT INTO `board` (`name`, `description`, `permLevel`) VALUES ('General Discussion', 'Plek om algemene discussie te voeren.', '0'), + $query = $con->query("INSERT INTO `board` ( `name`, `description`, `permLevel`) VALUES ('General Discussion', 'Plek om algemene discussie te voeren.', '0'), ('Off Topic', 'Voor alle irrelevante zooi.', '0')"); self::logMessage("created test boards", "OK"); - $query = $con->query("INSERT INTO `thread` (`users_ID`, `board_ID`, `title`, `text`, `date_created`) VALUES ('1', '1', 'Test thread', 'Deze thread is een test.', '2019-06-20 13:55:37'), + $query = $con->query("INSERT INTO `thread` ( `users_ID`, `board_ID`, `title`, `text`, `date_created`) VALUES ('1', '1', 'Test thread', 'Deze thread is een test.', '2019-06-20 13:55:37'), ('1', '2', 'Waa', 'Frist niffo', '2019-06-20 13:56:42')"); self::logMessage("created test threads", "OK"); - $query = $con->query("INSERT INTO `reply` (`thread_ID`, `users_ID`, `content`, `date_created`) VALUES ('1', '1', 'heehee eks dee', '2019-06-21 11:01:57'), + $query = $con->query("INSERT INTO `reply` ( `thread_ID`, `users_ID`, `content`, `date_created`) VALUES ('1', '1', 'heehee eks dee', '2019-06-21 11:01:57'), ('1', '1', 'hoi\r\n', '2019-06-21 11:07:25'), ('2', '2', 'fristi niBBa', '2019-06-21 11:08:08'), ('1', '1', 'was jouw prebleem', '2019-06-21 14:41:00'),