From df031fa5a1858abb3d78f23f9d1861b03cbff617 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Sat, 2 May 2020 13:18:05 +0200 Subject: [PATCH] The same migration names need to be used so that existing installations do not have problems with multiple migration numbers laying on the server. --- ...tabase_structure.php => 001_specific_calendar_sync.php} | 7 +++++-- ...s_table.php => 007_add_service_availabilities_type.php} | 4 ++-- ...ces_table.php => 008_add_service_attendants_number.php} | 4 ++-- 3 files changed, 9 insertions(+), 6 deletions(-) rename application/migrations/{001_initial_database_structure.php => 001_specific_calendar_sync.php} (98%) rename application/migrations/{007_add_availabilities_type_to_services_table.php => 007_add_service_availabilities_type.php} (91%) rename application/migrations/{008_add_attendants_number_to_services_table.php => 008_add_service_attendants_number.php} (90%) diff --git a/application/migrations/001_initial_database_structure.php b/application/migrations/001_specific_calendar_sync.php similarity index 98% rename from application/migrations/001_initial_database_structure.php rename to application/migrations/001_specific_calendar_sync.php index f22ee682..77cf788d 100644 --- a/application/migrations/001_initial_database_structure.php +++ b/application/migrations/001_specific_calendar_sync.php @@ -12,12 +12,15 @@ * ---------------------------------------------------------------------------- */ /** - * Class Migration_Initial_database_structure + * Class Migration_Specific_calendar_sync + * + * Notice: This first migration got altered to include the creation of the initial database structure so that external + * SQL are not required. * * @property CI_DB_query_builder db * @property CI_DB_forge dbforge */ -class Migration_Initial_database_structure extends CI_Migration { +class Migration_Specific_calendar_sync extends CI_Migration { /** * Upgrade method. */ diff --git a/application/migrations/007_add_availabilities_type_to_services_table.php b/application/migrations/007_add_service_availabilities_type.php similarity index 91% rename from application/migrations/007_add_availabilities_type_to_services_table.php rename to application/migrations/007_add_service_availabilities_type.php index baedfc63..459b4cf2 100644 --- a/application/migrations/007_add_availabilities_type_to_services_table.php +++ b/application/migrations/007_add_service_availabilities_type.php @@ -12,12 +12,12 @@ * ---------------------------------------------------------------------------- */ /** - * Class Migration_Add_availabilities_type_to_services_table + * Class Migration_Add_service_availabilities_type * * @property CI_DB_query_builder db * @property CI_DB_forge dbforge */ -class Migration_Add_availabilities_type_to_services_table extends CI_Migration { +class Migration_Add_service_availabilities_type extends CI_Migration { /** * Upgrade method. */ diff --git a/application/migrations/008_add_attendants_number_to_services_table.php b/application/migrations/008_add_service_attendants_number.php similarity index 90% rename from application/migrations/008_add_attendants_number_to_services_table.php rename to application/migrations/008_add_service_attendants_number.php index 7704f814..60266f11 100644 --- a/application/migrations/008_add_attendants_number_to_services_table.php +++ b/application/migrations/008_add_service_attendants_number.php @@ -12,12 +12,12 @@ * ---------------------------------------------------------------------------- */ /** - * Class Migration_Add_attendants_number_to_services_table + * Class Migration_Add_service_attendants_number * * @property CI_DB_query_builder db * @property CI_DB_forge dbforge */ -class Migration_Add_attendants_number_to_services_table extends CI_Migration { +class Migration_Add_service_attendants_number extends CI_Migration { /** * Upgrade method. */