Added Last Upload DataTime field to LoTW_certs table to store when last sync took place
这个提交包含在:
父节点
90831f407b
当前提交
5179a72c37
共有 3 个文件被更改,包括 28 次插入 和 1 次删除
|
|
@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE;
|
||||||
| be upgraded / downgraded to.
|
| be upgraded / downgraded to.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
$config['migration_version'] = 43;
|
$config['migration_version'] = 44;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,21 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
class Migration_add_last_upload_to_lotw_certs extends CI_Migration {
|
||||||
|
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
$fields = array(
|
||||||
|
'last_upload DATETIME DEFAULT NULL',
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
$this->dbforge->add_column('lotw_certs', $fields);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
$this->dbforge->drop_column('lotw_certs', 'last_upload');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -61,6 +61,12 @@
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<span class="badge badge-dark">Expired</span>
|
<span class="badge badge-dark">Expired</span>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
<?php if ($row->last_upload) { ?>
|
||||||
|
<span class="badge badge-success"><?php echo $row->last_upload; ?></span>
|
||||||
|
<?php } else { ?>
|
||||||
|
<span class="badge badge-warning">Not Synced</span>
|
||||||
|
<?php } ?>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<a class="btn btn-primary btn-sm" href="<?php echo site_url('lotw/delete_cert/'.$row->lotw_cert_id); ?>" role="button"><i class="far fa-trash-alt"></i> Delete</a>
|
<a class="btn btn-primary btn-sm" href="<?php echo site_url('lotw/delete_cert/'.$row->lotw_cert_id); ?>" role="button"><i class="far fa-trash-alt"></i> Delete</a>
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用