kopia lustrzana https://github.com/magicbug/Cloudlog
[Migration] Fixes issue when user_id already exists with the api table.
rodzic
d998a7f8a2
commit
e46152003f
|
@ -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()
|
||||
|
|
Ładowanie…
Reference in New Issue