mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Extend DOK-Columns to 20 Characters
This commit is contained in:
@@ -22,7 +22,7 @@ $config['migration_enabled'] = TRUE;
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$config['migration_version'] = 262;
|
$config['migration_version'] = 263;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|||||||
22
application/migrations/263_longer_dok.php
Normal file
22
application/migrations/263_longer_dok.php
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
class Migration_longer_dok extends CI_Migration {
|
||||||
|
|
||||||
|
public function up() {
|
||||||
|
$this->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());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user