mirror of
https://github.com/magicbug/Cloudlog
synced 2026-08-13 17:49:35 -04:00
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.
41 lines
1.3 KiB
PHP
41 lines
1.3 KiB
PHP
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
|
|
|
class Migration_add_config_table extends CI_Migration
|
|
{
|
|
|
|
public function up()
|
|
{
|
|
$this->dbforge->add_field('id');
|
|
|
|
$this->dbforge->add_field(array(
|
|
'lotw_download_url' => array(
|
|
'type' => 'VARCHAR',
|
|
'constraint' => 255,
|
|
),
|
|
'lotw_upload_url' => array(
|
|
'type' => 'VARCHAR',
|
|
'constraint' => 255,
|
|
),
|
|
'lotw_rcvd_mark' => array(
|
|
'type' => 'VARCHAR',
|
|
'constraint' => 1,
|
|
),
|
|
));
|
|
|
|
|
|
$this->dbforge->create_table('config');
|
|
|
|
$data = array(
|
|
'lotw_download_url' => 'https://p1k.arrl.org/lotwuser/lotwreport.adi',
|
|
'lotw_upload_url' => 'https://p1k.arrl.org/lotwuser/upload',
|
|
'lotw_rcvd_mark' => 'Y'
|
|
);
|
|
|
|
$this->db->insert('config', $data);
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
$this->dbforge->drop_table('config');
|
|
}
|
|
}
|