diff --git a/application/migrations/005_fhc30.php b/application/migrations/005_fhc30.php
index c4ebca5b9..96d366920 100644
--- a/application/migrations/005_fhc30.php
+++ b/application/migrations/005_fhc30.php
@@ -2,13 +2,14 @@
if (! defined('BASEPATH')) exit('No direct script access allowed');
+require_once(dirname(__FILE__).'/../../include/basis_db.class.php');
+
class Migration_fhc30 extends CI_Migration
{
public function up()
{
echo '
Update to FHC 3.0
';
$this->db=$this->load->database('system', true);
- $this->load->helper('fhcdb');
$db = new basis_db($this);
require_once('./system/dbupdate_3.0.php');
}
diff --git a/application/migrations/006_fhc31.php b/application/migrations/006_fhc31.php
index 0556f80d9..5264bada1 100644
--- a/application/migrations/006_fhc31.php
+++ b/application/migrations/006_fhc31.php
@@ -2,13 +2,14 @@
if (! defined('BASEPATH')) exit('No direct script access allowed');
+require_once(dirname(__FILE__).'/../../include/basis_db.class.php');
+
class Migration_fhc31 extends CI_Migration
{
public function up()
{
echo '
Update to FHC 3.1
';
$this->db=$this->load->database('system', true);
- $this->load->helper('fhcdb');
$db = new basis_db($this);
require_once('./system/dbupdate_3.1.php');
}
diff --git a/application/migrations/007_fhc32.php b/application/migrations/007_fhc32.php
index b924b9a10..2da5d429c 100644
--- a/application/migrations/007_fhc32.php
+++ b/application/migrations/007_fhc32.php
@@ -2,13 +2,14 @@
if (! defined('BASEPATH')) exit('No direct script access allowed');
+require_once(dirname(__FILE__).'/../../include/basis_db.class.php');
+
class Migration_fhc32 extends CI_Migration
{
public function up()
{
echo '
Update to FHC 3.2
';
$this->db=$this->load->database('system', true);
- $this->load->helper('fhcdb');
$db = new basis_db($this);
require_once('./system/dbupdate_3.2.php');
}
diff --git a/application/migrations/008_fhc33.php b/application/migrations/008_fhc33.php
new file mode 100644
index 000000000..bd4d7a040
--- /dev/null
+++ b/application/migrations/008_fhc33.php
@@ -0,0 +1,29 @@
+Update to FHC 3.3
';
+ $this->db=$this->load->database('system', true);
+ $db = new basis_db($this);
+ require_once('./system/dbupdate_3.3.php');
+ }
+
+ public function down()
+ {
+ /*$this->db->simple_query('DROP SCHEMA bis;');
+ $this->db->simple_query('DROP SCHEMA campus;');
+ $this->db->simple_query('DROP SCHEMA fue;');
+ $this->db->simple_query('DROP SCHEMA kommune;');
+ $this->db->simple_query('DROP SCHEMA lehre;');
+ $this->db->simple_query('DROP SCHEMA sync;');
+ $this->db->simple_query('DROP SCHEMA system;');
+ $this->db->simple_query('DROP SCHEMA testtool;');
+ $this->db->simple_query('DROP SCHEMA wawi;');*/
+ }
+}
\ No newline at end of file