Migration scripts updated and fixed

This commit is contained in:
bison-paolo
2017-03-06 14:49:30 +01:00
parent 3183936715
commit f7e0898cf4
4 changed files with 35 additions and 3 deletions
+2 -1
View File
@@ -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 '<br/><h1>Update to FHC 3.0</h1><br/>';
$this->db=$this->load->database('system', true);
$this->load->helper('fhcdb');
$db = new basis_db($this);
require_once('./system/dbupdate_3.0.php');
}
+2 -1
View File
@@ -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 '<br/><h1>Update to FHC 3.1</h1><br/>';
$this->db=$this->load->database('system', true);
$this->load->helper('fhcdb');
$db = new basis_db($this);
require_once('./system/dbupdate_3.1.php');
}
+2 -1
View File
@@ -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 '<br/><h1>Update to FHC 3.2</h1><br/>';
$this->db=$this->load->database('system', true);
$this->load->helper('fhcdb');
$db = new basis_db($this);
require_once('./system/dbupdate_3.2.php');
}
+29
View File
@@ -0,0 +1,29 @@
<?php
if (! defined('BASEPATH')) exit('No direct script access allowed');
require_once(dirname(__FILE__).'/../../include/basis_db.class.php');
class Migration_fhc33 extends CI_Migration
{
public function up()
{
echo '<br/><h1>Update to FHC 3.3</h1><br/>';
$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;');*/
}
}