diff --git a/application/config/migration.php b/application/config/migration.php index 4e2bbf83c..b8f51a4af 100644 --- a/application/config/migration.php +++ b/application/config/migration.php @@ -22,7 +22,7 @@ $config['migration_enabled'] = TRUE; | */ -$config['migration_version'] = 262; +$config['migration_version'] = 263; /* |-------------------------------------------------------------------------- diff --git a/application/migrations/263_longer_dok.php b/application/migrations/263_longer_dok.php new file mode 100644 index 000000000..2a2903e99 --- /dev/null +++ b/application/migrations/263_longer_dok.php @@ -0,0 +1,22 @@ +dbtry("ALTER TABLE ".$this->config->item('table_name')." MODIFY COLUMN COL_DARC_DOK varchar(20);"); + $this->dbtry("ALTER TABLE ".$this->config->item('table_name')." MODIFY COLUMN COL_MY_DARC_DOK varchar(20);"); + } + + public function down(){ + } + + function dbtry($what) { + try { + $this->db->query($what); + } catch (Exception $e) { + log_message("error", "Something gone wrong while altering the QSO table: ".$e." // Executing: ".$this->db->last_query()); + } + } +}