From 642ba3a2dc7610c2ccc0150af79720ace0f2dacc Mon Sep 17 00:00:00 2001 From: Paminger Date: Mon, 29 Feb 2016 17:02:19 +0100 Subject: [PATCH] BugFix --- application/config/database.php | 1 + application/config/migration.php | 2 +- .../migrations/20160101010103_create_basedb.php | 13 ++++++++----- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/application/config/database.php b/application/config/database.php index 79b48cb44..77cdc502b 100755 --- a/application/config/database.php +++ b/application/config/database.php @@ -1,5 +1,6 @@ load->helper('file'); - $sqlfile = read_file('./system/fhcomplete3.0.sql'); - - if (!$this->db->simple_query($sqlfile)) + if (!$this->db->table_exists('tbl_person')) { - echo "Error creating Basis DB-Schema!"; + $this->load->helper('file'); + $sqlfile = read_file('./system/fhcomplete3.0.sql'); + + if (!$this->db->simple_query($sqlfile)) + { + echo "Error creating Basis DB-Schema!"; + } } }