mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
29 lines
871 B
PHP
29 lines
871 B
PHP
<?php
|
|
|
|
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);
|
|
$db = new basis_db($this);
|
|
require_once('./system/dbupdate_3.1.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;');*/
|
|
}
|
|
} |