Correct migrations

This commit is contained in:
Alex Tselegidis 2023-11-29 10:43:01 +01:00
parent c8a9e2c24b
commit 57c9aa38a3
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ class Migration_Drop_delete_datetime_column_from_all_tables extends EA_Migration
*/
protected $tables = [
'appointments',
'service_categories',
'categories',
'consents',
'roles',
'services',

View file

@ -74,7 +74,7 @@ class Migration_Revert_rename_id_service_categories_column_of_services_table ext
$this->db->dbprefix('services') .
'`
ADD CONSTRAINT `services_categories` FOREIGN KEY (`id_categories`) REFERENCES `' .
$this->db->dbprefix('categories') .
$this->db->dbprefix('service_categories') .
'` (`id`)
ON DELETE SET NULL
ON UPDATE CASCADE