From 57c9aa38a38048fcbd66ea63f4fe5c65c01e74c7 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Wed, 29 Nov 2023 10:43:01 +0100 Subject: [PATCH] Correct migrations --- .../045_drop_delete_datetime_column_from_all_tables.php | 2 +- ...rt_rename_id_service_categories_column_of_services_table.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/migrations/045_drop_delete_datetime_column_from_all_tables.php b/application/migrations/045_drop_delete_datetime_column_from_all_tables.php index cb2044aa..777b5c02 100644 --- a/application/migrations/045_drop_delete_datetime_column_from_all_tables.php +++ b/application/migrations/045_drop_delete_datetime_column_from_all_tables.php @@ -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', diff --git a/application/migrations/047_revert_rename_id_service_categories_column_of_services_table.php b/application/migrations/047_revert_rename_id_service_categories_column_of_services_table.php index 86ec8fe8..953edcdf 100644 --- a/application/migrations/047_revert_rename_id_service_categories_column_of_services_table.php +++ b/application/migrations/047_revert_rename_id_service_categories_column_of_services_table.php @@ -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