Skip to content

Commit

Permalink
comment out coordinates trigger code
Browse files Browse the repository at this point in the history
  • Loading branch information
hinanaya committed Jul 17, 2024
1 parent b54a8cf commit e381a8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/mediametadata_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,9 @@ public function delete($id)
$this->db->query('ALTER TABLE ' . $this->db->format_backticks('media') . ' DROP FOREIGN KEY ' . $this->db->format_backticks('fk_media_metadata_' . $field['name']));
}

if ($field['type'] === 'coordinates') {
/*if ($field['type'] === 'coordinates') {
$this->db->query('DROP TRIGGER before_insert_metadata_' . $field['name']);
}
}*/

$this->db->query('ALTER TABLE ' . $this->db->format_backticks('media') . ' DROP COLUMN ' . $this->db->format_backticks('metadata_' . $field['name']));

Expand Down

0 comments on commit e381a8c

Please sign in to comment.