mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-16 11:39:31 +00:00
Migration scripts and lib fixes
This commit is contained in:
@@ -527,7 +527,16 @@ class MigrationLib extends CI_Migration
|
||||
{
|
||||
if (! @$this->db->simple_query($query))
|
||||
{
|
||||
$this->printError($this->db->error());
|
||||
$error = $this->db->error();
|
||||
|
||||
if (is_array($error) && isset($error["message"]))
|
||||
{
|
||||
$this->printError($error["message"]);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->printError("Error while executing a query");
|
||||
}
|
||||
}
|
||||
|
||||
$this->printInfo("Query correctly executed");
|
||||
|
||||
@@ -54,10 +54,10 @@ class Migration_Reihungstest extends MigrationLib
|
||||
|
||||
// Add bezeichnung_mehrsprachig to testtool.tbl_gebiet
|
||||
$columns = array(
|
||||
"bezeichnung_mehrsprachig" => array("type" => "varchar(255)[]")
|
||||
"bezeichnung_mehrsprachig" => array("type" => "varchar(255)")
|
||||
);
|
||||
$this->addColumn("testtool", "tbl_gebiet", $columns);
|
||||
$this->execQuery("UPDATE tbl_gebiet set bezeichnung_mehrsprachig = cast('{\"'||bezeichnung||'\",\"'||bezeichnung||'\"}' as varchar[]);");
|
||||
$this->execQuery("UPDATE testtool.tbl_gebiet set bezeichnung_mehrsprachig = cast('{\"'||bezeichnung||'\",\"'||bezeichnung||'\"}' as varchar[]);");
|
||||
|
||||
// Create table public.tbl_rt_studienplan
|
||||
$fields = array(
|
||||
|
||||
Reference in New Issue
Block a user