mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Added run part
This commit is contained in:
@@ -62,6 +62,18 @@ class Migration_adif_3_1_6 extends CI_Migration {
|
||||
log_message('info', 'Column "COL_EQSL_AG" already exists, skipping ALTER TABLE.');
|
||||
}
|
||||
|
||||
// Run the querys
|
||||
try {
|
||||
foreach ($qso_fields as $query) {
|
||||
$this->db->query($query);
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
$this->db->trans_rollback();
|
||||
log_message('error', 'Migration failed: ' . $e->getMessage());
|
||||
log_message('error', 'The query was: ' . $query);
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function down() {
|
||||
|
||||
Reference in New Issue
Block a user