Created an "lotw_certs" table to hold p12 cert data for lotw sync
这个提交包含在:
父节点
2e266f3412
当前提交
c86d95af60
共有 2 个文件被更改,包括 47 次插入 和 1 次删除
|
|
@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE;
|
|||
| be upgraded / downgraded to.
|
||||
|
|
||||
*/
|
||||
$config['migration_version'] = 40;
|
||||
$config['migration_version'] = 41;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -0,0 +1,46 @@
|
|||
<?php
|
||||
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Migration_add_lotw_certs_table extends CI_Migration {
|
||||
|
||||
public function up()
|
||||
{
|
||||
$this->dbforge->add_field(array(
|
||||
'lotw_cert_id' => array(
|
||||
'type' => 'INT',
|
||||
'constraint' => 1,
|
||||
'unsigned' => TRUE,
|
||||
'auto_increment' => TRUE
|
||||
),
|
||||
|
||||
'callsign' => array(
|
||||
'type' => 'VARCHAR',
|
||||
'constraint' => '100',
|
||||
),
|
||||
|
||||
'cert_dxcc' => array(
|
||||
'type' => 'VARCHAR',
|
||||
'constraint' => '255',
|
||||
),
|
||||
|
||||
'date_created' => array(
|
||||
'type' => 'DATETIME',
|
||||
'null' => TRUE,
|
||||
),
|
||||
|
||||
'date_expires' => array(
|
||||
'type' => 'DATETIME',
|
||||
'null' => TRUE,
|
||||
),
|
||||
));
|
||||
|
||||
$this->dbforge->add_key('lotw_cert_id', TRUE);
|
||||
$this->dbforge->create_table('lotw_certs');
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
$this->dbforge->drop_table('lotw_certs');
|
||||
}
|
||||
}
|
||||
正在加载…
在新工单中引用