Cloudlog/application/migrations/003_add_lotw_login_url.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 行
489 B
PHP

<?php defined('BASEPATH') or exit('No direct script access allowed');
class Migration_add_lotw_login_url extends CI_Migration
{
public function up()
{
$fields = array('lotw_login_url VARCHAR(244) DEFAULT NULL');
$this->dbforge->add_column('config', $fields);
$sql = "UPDATE config SET lotw_login_url = 'https://p1k.arrl.org/lotwuser/default' WHERE id=1";
$this->db->query($sql);
}
public function down()
{
$this->dbforge->drop_column('config', 'lotw_login_url');
}
}