kopia lustrzana https://github.com/magicbug/Cloudlog
26 wiersze
534 B
PHP
26 wiersze
534 B
PHP
<?php
|
|
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
|
|
|
/*
|
|
* This migration creates a table called options which will hold global options needed within cloudlog
|
|
* removing the need for lots of configuration files.
|
|
*/
|
|
|
|
class Migration_add_fifth_column extends CI_Migration {
|
|
|
|
public function up()
|
|
{
|
|
$fields = array(
|
|
'user_column5 varchar(32) default "Country"',
|
|
);
|
|
|
|
$this->dbforge->add_column('users', $fields);
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
$this->dbforge->drop_column('users', 'user_column5');
|
|
}
|
|
}
|