Updated migration files to use consistent PSR-12 code style, including brace placement, indentation, and spacing. Removed closing PHP tags and standardized 'or' in exit statements. No functional changes were made.
21 行
481 B
PHP
21 行
481 B
PHP
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
|
|
|
class Migration_add_lotw_credentials extends CI_Migration
|
|
{
|
|
|
|
public function up()
|
|
{
|
|
$fields = array(
|
|
'user_lotw_name VARCHAR(32) DEFAULT NULL',
|
|
'user_lotw_password VARCHAR(64) DEFAULT NULL'
|
|
);
|
|
|
|
$this->dbforge->add_column('users', $fields);
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
$this->dbforge->drop_column('users', 'user_lotw_name');
|
|
$this->dbforge->drop_column('users', 'user_lotw_password');
|
|
}
|
|
}
|