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

pull/1218/head
Peter Goodhall 2021-10-06 11:16:54 +01:00
rodzic d998a7f8a2
commit e46152003f
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -9,7 +9,9 @@ class Migration_add_userid_to_api extends CI_Migration
'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()