Cloudlog/application/migrations/001_add_lotw_credentials.php
Peter Goodhall 1ebb3a9942 Refactor migration files for code style consistency
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.
2025-08-18 14:07:43 +01:00

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');
}
}