Cloudlog/application/migrations/049_add_users_measurement_base.php

20 lines
427 B
PHP

<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Migration_add_users_measurement_base extends CI_Migration {
public function up()
{
$fields = array(
'user_measurement_base varchar(1)',
);
$this->dbforge->add_column('users', $fields);
}
public function down()
{
$this->dbforge->drop_column('users', 'user_measurement_base');
}
}