Added core migration class.

This commit is contained in:
Alex Tselegidis 2021-10-29 10:19:10 +02:00
parent 9a528e6734
commit 18348e02a5
23 changed files with 90 additions and 158 deletions

View file

@ -0,0 +1,64 @@
<?php defined('BASEPATH') or exit('No direct script access allowed');
/* ----------------------------------------------------------------------------
* Easy!Appointments - Open Source Web Scheduler
*
* @package EasyAppointments
* @author A.Tselegidis <alextselegidis@gmail.com>
* @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 {
//
}

View file

@ -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.
*/

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*/

View file

@ -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.
*/

View file

@ -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.
*/

View file

@ -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.
*/

View file

@ -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.
*/

View file

@ -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.
*/

View file

@ -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.
*/

View file

@ -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.
*/

View file

@ -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.
*/

View file

@ -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.
*/

View file

@ -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.
*/

View file

@ -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.
*

View file

@ -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.
*/

View file

@ -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.
*/

View file

@ -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.
*/

View file

@ -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.
*/

View file

@ -4,20 +4,14 @@
* Easy!Appointments - Open Source Web Scheduler
*
* @package EasyAppointments
* @author T. Saedt <https://github.com/Tthecreator>
* @author A.Tselegidis <alextselegidis@gmail.com>
* @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'
]);
}
/**