[Migration] Fixes issue when user_id already exists with the api table.

这个提交包含在:
Peter Goodhall 2021-10-06 11:16:54 +01:00
父节点 d998a7f8a2
当前提交 e46152003f

查看文件

@ -9,7 +9,9 @@ class Migration_add_userid_to_api extends CI_Migration
'user_id BIGINT(20) DEFAULT NULL', 'user_id BIGINT(20) DEFAULT NULL',
); );
$this->dbforge->add_column('api', $fields); if (!$this->db->field_exists('user_id', 'api')) {
$this->dbforge->add_column('api', $fields);
}
} }
public function down() public function down()