2019-06-30 21:02:07 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
|
|
|
|
|
|
|
class Migration_forceint_wrongtype extends CI_Migration {
|
|
|
|
|
|
|
|
public function up()
|
|
|
|
{
|
|
|
|
$fields = array(
|
|
|
|
'COL_FORCE_INIT' => array(
|
|
|
|
'name' => 'COL_FORCE_INIT',
|
|
|
|
'type' => 'VARCHAR',
|
|
|
|
'constraint' => '2',
|
|
|
|
),
|
|
|
|
|
|
|
|
'COL_SWL' => array(
|
|
|
|
'name' => 'COL_SWL',
|
|
|
|
'type' => 'VARCHAR',
|
|
|
|
'constraint' => '2',
|
|
|
|
),
|
|
|
|
);
|
2019-07-24 08:33:10 +00:00
|
|
|
$this->dbforge->modify_column($this->config->item('table_name'), $fields);
|
2019-06-30 21:02:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
echo "Not possible, sorry.";
|
|
|
|
}
|
|
|
|
}
|