kopia lustrzana https://github.com/magicbug/Cloudlog
29 wiersze
887 B
PHP
29 wiersze
887 B
PHP
<?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',
|
|
),
|
|
);
|
|
$this->dbforge->modify_column('TABLE_HRD_CONTACTS_V01', $fields);
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
echo "Not possible, sorry.";
|
|
}
|
|
} |