diff --git a/application/core/EA_Migration.php b/application/core/EA_Migration.php new file mode 100644 index 00000000..00c5a961 --- /dev/null +++ b/application/core/EA_Migration.php @@ -0,0 +1,64 @@ + + * @copyright Copyright (c) 2013 - 2020, Alex Tselegidis + * @license https://opensource.org/licenses/GPL-3.0 - GPLv3 + * @link https://easyappointments.org + * @since v1.4.0 + * ---------------------------------------------------------------------------- */ + +/** + * Easy!Appointments migration. + * + * @property CI_Benchmark $benchmark + * @property CI_Cache $cache + * @property CI_Calendar $calendar + * @property CI_Config $config + * @property CI_DB_forge $dbforge + * @property CI_DB_query_builder $db + * @property CI_DB_utility $dbutil + * @property CI_Email $email + * @property CI_Encrypt $encrypt + * @property CI_Encryption $encryption + * @property CI_Exceptions $exceptions + * @property CI_Hooks $hooks + * @property CI_Input $input + * @property CI_Lang $lang + * @property CI_Loader $load + * @property CI_Log $log + * @property CI_Migration $migration + * @property CI_Output $output + * @property CI_Profiler $profiler + * @property CI_Router $router + * @property CI_Security $security + * @property CI_Session $session + * @property CI_URI $uri + * @property CI_Upload $upload + * + * @property Admins_model $admins_model + * @property Appointments_model $appointments_model + * @property Consents_model $consents_model + * @property Customers_model $customers_model + * @property Providers_model $providers_model + * @property Roles_model $roles_model + * @property Secretaries_model $secretaries_model + * @property Service_categories_model $service_categories_model + * @property Services_model $services_model + * @property Settings_model $settings_model + * @property Users_model $users_model + * + * @property Accounts $accounts + * @property Availability $availability + * @property Google_Sync $google_sync + * @property Ics_file $ics_file + * @property Notifications $notifications + * @property Synchronization $synchronization + * @property Timezones $timezones + */ +class EA_Migration extends CI_Migration { + // +} diff --git a/application/migrations/001_specific_calendar_sync.php b/application/migrations/001_specific_calendar_sync.php index ae0a8076..47232d27 100644 --- a/application/migrations/001_specific_calendar_sync.php +++ b/application/migrations/001_specific_calendar_sync.php @@ -11,16 +11,12 @@ * @since v1.4.0 * ---------------------------------------------------------------------------- */ -/** - * 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_Specific_calendar_sync extends CI_Migration { + +class Migration_Specific_calendar_sync extends EA_Migration { /** * Upgrade method. */ diff --git a/application/migrations/002_add_google_analytics_setting.php b/application/migrations/002_add_google_analytics_setting.php index 74950d28..fed58fe7 100644 --- a/application/migrations/002_add_google_analytics_setting.php +++ b/application/migrations/002_add_google_analytics_setting.php @@ -11,13 +11,7 @@ * @since v1.1.0 * ---------------------------------------------------------------------------- */ -/** - * Class Migration_Add_google_analytics_setting - * - * @property CI_DB_query_builder $db - * @property CI_DB_forge $dbforge - */ -class Migration_Add_google_analytics_setting extends CI_Migration { +class Migration_Add_google_analytics_setting extends EA_Migration { /** * Upgrade method. * diff --git a/application/migrations/003_add_customer_notifications_setting.php b/application/migrations/003_add_customer_notifications_setting.php index 0eab1da0..3e02c98e 100644 --- a/application/migrations/003_add_customer_notifications_setting.php +++ b/application/migrations/003_add_customer_notifications_setting.php @@ -11,13 +11,7 @@ * @since v1.1.0 * ---------------------------------------------------------------------------- */ -/** - * Class Migration_Add_customer_notifications_setting - * - * @property CI_DB_query_builder $db - * @property CI_DB_forge $dbforge - */ -class Migration_Add_customer_notifications_setting extends CI_Migration { +class Migration_Add_customer_notifications_setting extends EA_Migration { /** * Upgrade method. * diff --git a/application/migrations/004_add_date_format_setting.php b/application/migrations/004_add_date_format_setting.php index 8ebc46ce..e8131387 100644 --- a/application/migrations/004_add_date_format_setting.php +++ b/application/migrations/004_add_date_format_setting.php @@ -11,13 +11,7 @@ * @since v1.1.0 * ---------------------------------------------------------------------------- */ -/** - * Class Migration_Add_date_format_setting - * - * @property CI_DB_query_builder $db - * @property CI_DB_forge $dbforge - */ -class Migration_Add_date_format_setting extends CI_Migration { +class Migration_Add_date_format_setting extends EA_Migration { /** * Upgrade method. * diff --git a/application/migrations/005_add_require_captcha_setting.php b/application/migrations/005_add_require_captcha_setting.php index fc69ae16..4ef02a9c 100644 --- a/application/migrations/005_add_require_captcha_setting.php +++ b/application/migrations/005_add_require_captcha_setting.php @@ -11,13 +11,7 @@ * @since v1.1.0 * ---------------------------------------------------------------------------- */ -/** - * Class Migration_Add_require_captcha_setting - * - * @property CI_DB_query_builder $db - * @property CI_DB_forge $dbforge - */ -class Migration_Add_require_captcha_setting extends CI_Migration { +class Migration_Add_require_captcha_setting extends EA_Migration { /** * Upgrade method. * diff --git a/application/migrations/006_add_calendar_view_setting.php b/application/migrations/006_add_calendar_view_setting.php index 2cffaeb7..88755dfd 100644 --- a/application/migrations/006_add_calendar_view_setting.php +++ b/application/migrations/006_add_calendar_view_setting.php @@ -11,13 +11,7 @@ * @since v1.2.0 * ---------------------------------------------------------------------------- */ -/** - * Class Migration_Add_calendar_view_setting - * - * @property CI_DB_query_builder $db - * @property CI_DB_forge $dbforge - */ -class Migration_Add_calendar_view_setting extends CI_Migration { +class Migration_Add_calendar_view_setting extends EA_Migration { /** * Upgrade method. */ diff --git a/application/migrations/007_add_service_availabilities_type.php b/application/migrations/007_add_service_availabilities_type.php index 74773858..b7383f37 100644 --- a/application/migrations/007_add_service_availabilities_type.php +++ b/application/migrations/007_add_service_availabilities_type.php @@ -11,13 +11,7 @@ * @since v1.2.0 * ---------------------------------------------------------------------------- */ -/** - * Class Migration_Add_service_availabilities_type - * - * @property CI_DB_query_builder $db - * @property CI_DB_forge $dbforge - */ -class Migration_Add_service_availabilities_type extends CI_Migration { +class Migration_Add_service_availabilities_type extends EA_Migration { /** * Upgrade method. */ diff --git a/application/migrations/008_add_service_attendants_number.php b/application/migrations/008_add_service_attendants_number.php index 547dbeba..d6620cf6 100644 --- a/application/migrations/008_add_service_attendants_number.php +++ b/application/migrations/008_add_service_attendants_number.php @@ -11,13 +11,7 @@ * @since v1.2.0 * ---------------------------------------------------------------------------- */ -/** - * Class Migration_Add_service_attendants_number - * - * @property CI_DB_query_builder $db - * @property CI_DB_forge $dbforge - */ -class Migration_Add_service_attendants_number extends CI_Migration { +class Migration_Add_service_attendants_number extends EA_Migration { /** * Upgrade method. */ diff --git a/application/migrations/009_change_column_types.php b/application/migrations/009_change_column_types.php index fe104601..8764afd3 100644 --- a/application/migrations/009_change_column_types.php +++ b/application/migrations/009_change_column_types.php @@ -11,13 +11,7 @@ * @since v1.3.0 * ---------------------------------------------------------------------------- */ -/** - * Class Migration_Change_column_types - * - * @property CI_DB_query_builder $db - * @property CI_DB_forge $dbforge - */ -class Migration_Change_column_types extends CI_Migration { +class Migration_Change_column_types extends EA_Migration { /** * Upgrade method. */ diff --git a/application/migrations/010_add_time_format_setting.php b/application/migrations/010_add_time_format_setting.php index f1f32f5e..92f29569 100644 --- a/application/migrations/010_add_time_format_setting.php +++ b/application/migrations/010_add_time_format_setting.php @@ -11,13 +11,7 @@ * @since v1.3.0 * ---------------------------------------------------------------------------- */ -/** - * Class Migration_Add_time_format_setting - * - * @property CI_DB_query_builder $db - * @property CI_DB_forge $dbforge - */ -class Migration_Add_time_format_setting extends CI_Migration { +class Migration_Add_time_format_setting extends EA_Migration { /** * Upgrade method. */ diff --git a/application/migrations/011_remove_prefix_from_fkey_constraints.php b/application/migrations/011_remove_prefix_from_fkey_constraints.php index 78426890..242c4016 100644 --- a/application/migrations/011_remove_prefix_from_fkey_constraints.php +++ b/application/migrations/011_remove_prefix_from_fkey_constraints.php @@ -11,13 +11,7 @@ * @since v1.3.0 * ---------------------------------------------------------------------------- */ -/** - * Class Migration_Remove_prefix_from_foreign_keys - * - * @property CI_DB_query_builder $db - * @property CI_DB_forge $dbforge - */ -class Migration_Remove_prefix_from_fkey_constraints extends CI_Migration { +class Migration_Remove_prefix_from_fkey_constraints extends EA_Migration { /** * Upgrade method. */ diff --git a/application/migrations/012_legal_contents.php b/application/migrations/012_legal_contents.php index ed7a0823..ad0016ab 100644 --- a/application/migrations/012_legal_contents.php +++ b/application/migrations/012_legal_contents.php @@ -11,13 +11,7 @@ * @since v1.3.2 * ---------------------------------------------------------------------------- */ -/** - * Class Migration_Create_consents_table - * - * @property CI_DB_query_builder $db - * @property CI_DB_forge $dbforge - */ -class Migration_Legal_contents extends CI_Migration { +class Migration_Legal_contents extends EA_Migration { /** * Upgrade method. */ diff --git a/application/migrations/013_add_weekday_start_setting.php b/application/migrations/013_add_weekday_start_setting.php index 4f38da8d..7e5ba221 100644 --- a/application/migrations/013_add_weekday_start_setting.php +++ b/application/migrations/013_add_weekday_start_setting.php @@ -11,13 +11,7 @@ * @since v1.3.2 * ---------------------------------------------------------------------------- */ -/** - * Class Migration_Add_weekday_start_setting - * - * @property CI_DB_query_builder $db - * @property CI_DB_forge $dbforge - */ -class Migration_Add_weekday_start_setting extends CI_Migration { +class Migration_Add_weekday_start_setting extends EA_Migration { /** * Upgrade method. */ diff --git a/application/migrations/014_create_appointment_location_column.php b/application/migrations/014_create_appointment_location_column.php index 47fa18b4..d0912247 100644 --- a/application/migrations/014_create_appointment_location_column.php +++ b/application/migrations/014_create_appointment_location_column.php @@ -11,13 +11,7 @@ * @since v1.4.0 * ---------------------------------------------------------------------------- */ -/** - * Class Migration_Create_appointment_location_column - * - * @property CI_DB_query_builder $db - * @property CI_DB_forge $dbforge - */ -class Migration_Create_appointment_location_column extends CI_Migration { +class Migration_Create_appointment_location_column extends EA_Migration { /** * Upgrade method. */ diff --git a/application/migrations/015_add_working_plan_exceptions_to_user_settings.php b/application/migrations/015_add_working_plan_exceptions_to_user_settings.php index 31214d26..6bae236c 100644 --- a/application/migrations/015_add_working_plan_exceptions_to_user_settings.php +++ b/application/migrations/015_add_working_plan_exceptions_to_user_settings.php @@ -11,13 +11,7 @@ * @since v1.2.0 * ---------------------------------------------------------------------------- */ -/** - * Class Migration_Add_working_plan_exceptions_to_user_settings - * - * @property CI_DB_query_builder $db - * @property CI_DB_forge $dbforge - */ -class Migration_Add_working_plan_exceptions_to_user_settings extends CI_Migration { +class Migration_Add_working_plan_exceptions_to_user_settings extends EA_Migration { /** * Upgrade method. */ diff --git a/application/migrations/016_add_require_phone_number_setting.php b/application/migrations/016_add_require_phone_number_setting.php index 42f7712a..f39ae62d 100644 --- a/application/migrations/016_add_require_phone_number_setting.php +++ b/application/migrations/016_add_require_phone_number_setting.php @@ -11,13 +11,7 @@ * @since v1.4.0 * ---------------------------------------------------------------------------- */ -/** - * Class Migration_Add_require_phone_number_setting - * - * @property CI_DB_query_builder $db - * @property CI_DB_forge $dbforge - */ -class Migration_Add_require_phone_number_setting extends CI_Migration { +class Migration_Add_require_phone_number_setting extends EA_Migration { /** * Upgrade method. */ diff --git a/application/migrations/017_add_api_token_setting.php b/application/migrations/017_add_api_token_setting.php index 7ba49e5a..6c67b387 100644 --- a/application/migrations/017_add_api_token_setting.php +++ b/application/migrations/017_add_api_token_setting.php @@ -11,13 +11,7 @@ * @since v1.4.0 * ---------------------------------------------------------------------------- */ -/** - * Class Migration_Add_api_token_setting - * - * @property CI_DB_query_builder $db - * @property CI_DB_forge $dbforge - */ -class Migration_Add_api_token_setting extends CI_Migration { +class Migration_Add_api_token_setting extends EA_Migration { /** * Upgrade method. * diff --git a/application/migrations/018_add_timezone_to_users.php b/application/migrations/018_add_timezone_to_users.php index 000f9876..abe22078 100644 --- a/application/migrations/018_add_timezone_to_users.php +++ b/application/migrations/018_add_timezone_to_users.php @@ -11,13 +11,7 @@ * @since v1.4.0 * ---------------------------------------------------------------------------- */ -/** - * Class Migration_Add_timezone_to_users - * - * @property CI_DB_query_builder $db - * @property CI_DB_forge $dbforge - */ -class Migration_Add_timezone_to_users extends CI_Migration { +class Migration_Add_timezone_to_users extends EA_Migration { /** * Upgrade method. */ diff --git a/application/migrations/019_add_display_any_provider_setting.php b/application/migrations/019_add_display_any_provider_setting.php index 015dada9..55c1cce5 100644 --- a/application/migrations/019_add_display_any_provider_setting.php +++ b/application/migrations/019_add_display_any_provider_setting.php @@ -11,13 +11,7 @@ * @since v1.4.0 * ---------------------------------------------------------------------------- */ -/** - * Class Migration_Add_display_any_provider_setting - * - * @property CI_DB_query_builder $db - * @property CI_DB_forge $dbforge - */ -class Migration_Add_display_any_provider_setting extends CI_Migration { +class Migration_Add_display_any_provider_setting extends EA_Migration { /** * Upgrade method. */ diff --git a/application/migrations/020_add_language_to_users.php b/application/migrations/020_add_language_to_users.php index bede7aab..52c55aed 100644 --- a/application/migrations/020_add_language_to_users.php +++ b/application/migrations/020_add_language_to_users.php @@ -11,13 +11,7 @@ * @since v1.4.0 * ---------------------------------------------------------------------------- */ -/** - * Class Migration_Add_language_to_users - * - * @property CI_DB_query_builder $db - * @property CI_DB_forge $dbforge - */ -class Migration_Add_language_to_users extends CI_Migration { +class Migration_Add_language_to_users extends EA_Migration { /** * Upgrade method. */ diff --git a/application/migrations/021_modify_sync_period_columns.php b/application/migrations/021_modify_sync_period_columns.php index 58754164..f2042fbb 100644 --- a/application/migrations/021_modify_sync_period_columns.php +++ b/application/migrations/021_modify_sync_period_columns.php @@ -11,13 +11,7 @@ * @since v1.4.0 * ---------------------------------------------------------------------------- */ -/** - * Class Migration_Modify_sync_period_columns - * - * @property CI_DB_query_builder $db - * @property CI_DB_forge $dbforge - */ -class Migration_Modify_sync_period_columns extends CI_Migration { +class Migration_Modify_sync_period_columns extends EA_Migration { /** * Upgrade method. */ diff --git a/application/migrations/022_add_show_fields_setting.php b/application/migrations/022_add_show_fields_setting.php index 03e393d7..7e8d683d 100644 --- a/application/migrations/022_add_show_fields_setting.php +++ b/application/migrations/022_add_show_fields_setting.php @@ -4,20 +4,14 @@ * Easy!Appointments - Open Source Web Scheduler * * @package EasyAppointments - * @author T. Saedt + * @author A.Tselegidis * @copyright Copyright (c) 2013 - 2020, Alex Tselegidis * @license http://opensource.org/licenses/GPL-3.0 - GPLv3 * @link http://easyappointments.org - * @since v1.4.2 + * @since v1.5.0 * ---------------------------------------------------------------------------- */ -/** - * Class Migration_Add_show_fields_setting - * - * @property CI_DB_query_builder $db - * @property CI_DB_forge $dbforge - */ -class Migration_Add_show_fields_setting extends CI_Migration { +class Migration_Add_show_fields_setting extends EA_Migration { /** * Upgrade method. */ @@ -47,8 +41,6 @@ class Migration_Add_show_fields_setting extends CI_Migration { 'name' => 'show_notes', 'value' => '1' ]); - - } /**