Merge pull request #2927 from phl0/fixMigration

Fix migration
这个提交包含在:
Peter Goodhall 2024-01-20 13:04:45 +00:00 提交者 GitHub
当前提交 c98b2804ab
找不到此签名对应的密钥
GPG 密钥 ID: B5690EEEBB952194

查看文件

@ -10,12 +10,15 @@ class Migration_add_key_to_lotw_certs extends CI_Migration {
'cert_key TEXT', 'cert_key TEXT',
); );
if (!$this->db->field_exists('cert_key', 'lotw_certs')) {
$this->dbforge->add_column('lotw_certs', $fields); $this->dbforge->add_column('lotw_certs', $fields);
}
} }
public function down() public function down()
{ {
$this->dbforge->drop_column('lotw_certs', 'key'); if ($this->db->field_exists('cert_key', 'lotw_certs')) {
$this->dbforge->drop_column('lotw_certs', 'cert_key');
}
} }
} }