mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Created mirgration file to change the logbook table field COL_QSL_VIA from 60 char to 255
This commit is contained in:
@@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE;
|
||||
| be upgraded / downgraded to.
|
||||
|
|
||||
*/
|
||||
$config['migration_version'] = 16;
|
||||
$config['migration_version'] = 17;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
if ( ! $this->migration->latest()) {
|
||||
show_error($this->migration->error_string());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
} ?>
|
||||
|
||||
18
application/migrations/017_qslviavarchar.php
Normal file
18
application/migrations/017_qslviavarchar.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Migration_qslviavarchar extends CI_Migration {
|
||||
|
||||
public function up()
|
||||
{
|
||||
$this->db->db_debug = false;
|
||||
$this->db->query("ALTER TABLE TABLE_HRD_CONTACTS_V01 CHANGE COLUMN COL_QSL_VIA COL_QSL_VIA varchar(255) DEFAULT NULL;");
|
||||
$this->db->db_debug = true;
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
echo "Not possible, sorry.";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user