mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-09 17:42:21 +03:00
fix missing migration db prefix
This commit is contained in:
parent
e086de4d60
commit
9a9f0b6afd
1 changed files with 3 additions and 2 deletions
|
@ -36,10 +36,11 @@ class Migration_Add_price_column_to_appointments_table extends EA_Migration
|
|||
$this->dbforge->add_column('appointments', $fields);
|
||||
|
||||
// Update existing records
|
||||
$sql = "UPDATE `appointments`
|
||||
JOIN `services` ON `appointments`.`id_services` = `services`.`id`
|
||||
$sql = "UPDATE `" . $this->db->dbprefix('appointments') . "` AS `appointments`
|
||||
JOIN `" . $this->db->dbprefix('services') . "` AS `services` ON `appointments`.`id_services` = `services`.`id`
|
||||
SET `appointments`.`price` = `services`.`price`,
|
||||
`appointments`.`currency` = `services`.`currency`";
|
||||
|
||||
$this->db->query($sql);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue