20 行
504 B
PHP
20 行
504 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||
|
|
|
||
|
|
class Migration_addfield_to_logbooks_default extends CI_Migration {
|
||
|
|
|
||
|
|
public function up()
|
||
|
|
{
|
||
|
|
$fields = array(
|
||
|
|
'default_logbook tinyint(1) DEFAULT NULL',
|
||
|
|
);
|
||
|
|
|
||
|
|
$this->dbforge->add_column('logbooks', $fields);
|
||
|
|
}
|
||
|
|
|
||
|
|
public function down()
|
||
|
|
{
|
||
|
|
$this->dbforge->drop_column('default_logbook', 'logbooks');
|
||
|
|
}
|
||
|
|
}
|