kopia lustrzana https://github.com/magicbug/Cloudlog
Merge pull request #360 from dg9vh/patch-2
Set COL_MODE from varchar(10) to varchar(12)pull/366/head
commit
2c4b64a723
|
@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE;
|
|||
| be upgraded / downgraded to.
|
||||
|
|
||||
*/
|
||||
$config['migration_version'] = 34;
|
||||
$config['migration_version'] = 35;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
class Migration_col_mode_tooshort extends CI_Migration {
|
||||
public function up()
|
||||
{
|
||||
$fields = array(
|
||||
'COL_MODE' => array(
|
||||
'name' => 'COL_MODE',
|
||||
'type' => 'VARCHAR',
|
||||
'constraint' => '12',
|
||||
)
|
||||
);
|
||||
$this->dbforge->modify_column($this->config->item('table_name'), $fields);
|
||||
}
|
||||
public function down()
|
||||
{
|
||||
echo "Not possible, sorry.";
|
||||
}
|
||||
}
|
Ładowanie…
Reference in New Issue