Corrected field name in the downgrade method of a migration class

This commit is contained in:
Alex Tselegidis 2021-12-20 07:09:23 +01:00
parent 6017abea45
commit 745a2f7c67

View file

@ -58,7 +58,7 @@ class Migration_Rename_id_service_categories_column_of_services_table extends EA
$this->dbforge->modify_column('services', $fields);
$this->db->query('ALTER TABLE `' . $this->db->dbprefix('services') . '`
ADD CONSTRAINT `services_service_categories` FOREIGN KEY (`id_categories`) REFERENCES `' . $this->db->dbprefix('categories') . '` (`id`)
ADD CONSTRAINT `services_service_categories` FOREIGN KEY (`id_service_categories`) REFERENCES `' . $this->db->dbprefix('categories') . '` (`id`)
ON DELETE SET NULL
ON UPDATE CASCADE');
}