mirror of
https://github.com/magicbug/Cloudlog
synced 2024-11-23 01:59:14 +00:00
26 lines
534 B
PHP
26 lines
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');
|
|
}
|
|
}
|