kopia lustrzana https://github.com/magicbug/Cloudlog
Email col far to short
rodzic
3e30310d01
commit
33f967d664
|
@ -0,0 +1,23 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
class Migration_col_email_tooshort extends CI_Migration {
|
||||||
|
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
$fields = array(
|
||||||
|
'COL_EMAIL' => array(
|
||||||
|
'name' => 'COL_EMAIL',
|
||||||
|
'type' => 'VARCHAR',
|
||||||
|
'constraint' => '255',
|
||||||
|
)
|
||||||
|
);
|
||||||
|
$this->dbforge->modify_column($this->config->item('table_name'), $fields);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
echo "Not possible, sorry.";
|
||||||
|
}
|
||||||
|
}
|
Ładowanie…
Reference in New Issue