Cloudlog/application/migrations/052_add_user_stylesheet.php

20 wiersze
438 B
PHP

<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Migration_add_user_stylesheet extends CI_Migration {
public function up()
{
$fields = array(
'user_stylesheet varchar(255) default "bootstrap.min.css"',
);
$this->dbforge->add_column('users', $fields);
}
public function down()
{
$this->dbforge->drop_column('users', 'user_stylesheet');
}
}