Added Last Upload DataTime field to LoTW_certs table to store when last sync took place

这个提交包含在:
Peter Goodhall 2020-08-17 17:09:00 +01:00
父节点 90831f407b
当前提交 5179a72c37
共有 3 个文件被更改,包括 28 次插入1 次删除

查看文件

@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE;
| 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 { ?>
<span class="badge badge-dark">Expired</span>
<?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>
<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>