PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 1.2.20
Booking for Appointments and Events Calendar – Amelia v1.2.20
2.4.3 2.4.2 2.4.1 2.4 trunk 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 1.2.22 1.2.23 1.2.24 1.2.25 1.2.26 1.2.27 1.2.28 1.2.29 1.2.3 1.2.30 1.2.31 1.2.32 1.2.33 1.2.34 1.2.35 1.2.36 1.2.37 1.2.38 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.3
ameliabooking / src / Infrastructure / WP / InstallActions / DeleteDatabaseHook.php
ameliabooking / src / Infrastructure / WP / InstallActions Last commit date
DB 1 year ago ActivationDatabaseHook.php 2 years ago ActivationMultisite.php 7 years ago ActivationNewSiteMultisite.php 7 years ago ActivationRolesHook.php 7 years ago ActivationSettingsHook.php 1 year ago AutoUpdateHook.php 3 years ago DeleteDatabaseHook.php 2 years ago DeletionMultisite.php 5 years ago
DeleteDatabaseHook.php
199 lines
1 <?php
2 /**
3 * Database hook for activation
4 */
5
6 namespace AmeliaBooking\Infrastructure\WP\InstallActions;
7
8 use AmeliaBooking\Domain\Common\Exceptions\InvalidArgumentException;
9 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Bookable\PackagesCustomersServicesTable;
10 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Bookable\PackagesCustomersTable;
11 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Bookable\PackagesServicesLocationsTable;
12 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Bookable\PackagesServicesProvidersTable;
13 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Bookable\PackagesServicesTable;
14 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Bookable\PackagesTable;
15 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Bookable\ResourcesTable;
16 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Bookable\ResourcesToEntitiesTable;
17 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Bookable\ServicesTable;
18 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Bookable\CategoriesTable;
19 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Bookable\ExtrasTable;
20 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Bookable\ServicesViewsTable;
21 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Booking\AppointmentsTable;
22 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Booking\CustomerBookingsTable;
23 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Booking\CustomerBookingsToEventsPeriodsTable;
24 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Booking\CustomerBookingsToExtrasTable;
25 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Booking\CustomerBookingToEventsTicketsTable;
26 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Booking\EventsPeriodsTable;
27 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Booking\EventsProvidersTable;
28 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Booking\EventsTable;
29 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Booking\EventsTagsTable;
30 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Booking\EventsTicketsTable;
31 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Cache\CacheTable;
32 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Coupon\CouponsToEventsTable;
33 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Coupon\CouponsToPackagesTable;
34 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\CustomField\CustomFieldsEventsTable;
35 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\CustomField\CustomFieldsOptionsTable;
36 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\CustomField\CustomFieldsServicesTable;
37 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\CustomField\CustomFieldsTable;
38 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Gallery\GalleriesTable;
39 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Coupon\CouponsTable;
40 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Coupon\CouponsToServicesTable;
41 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Location\LocationsTable;
42 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Location\LocationsViewsTable;
43 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Notification\NotificationsLogTable;
44 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Notification\NotificationsSMSHistoryTable;
45 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Notification\NotificationsTable;
46 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Notification\NotificationsTableInsertRows;
47 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Notification\NotificationsToEntitiesTable;
48 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Payment\PaymentsTable;
49 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Tax\TaxesTable;
50 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\Tax\TaxesToEntitiesTable;
51 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\User\Provider\ProvidersGoogleCalendarTable;
52 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\User\Provider\ProvidersLocationTable;
53 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\User\Provider\ProvidersOutlookCalendarTable;
54 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\User\Provider\ProvidersPeriodLocationTable;
55 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\User\Provider\ProvidersPeriodServiceTable;
56 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\User\Provider\ProvidersPeriodTable;
57 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\User\Provider\ProvidersSpecialDayPeriodLocationTable;
58 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\User\Provider\ProvidersSpecialDayPeriodServiceTable;
59 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\User\Provider\ProvidersSpecialDayPeriodTable;
60 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\User\Provider\ProvidersSpecialDayTable;
61 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\User\Provider\ProvidersViewsTable;
62 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\User\UsersTable;
63 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\User\Provider\ProvidersServiceTable;
64 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\User\Provider\ProvidersWeekDayTable;
65 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\User\Provider\ProvidersTimeOutTable;
66 use AmeliaBooking\Infrastructure\WP\InstallActions\DB\User\Provider\ProvidersDayOffTable;
67
68 /**
69 * Class DeleteDatabaseHook
70 *
71 * @package AmeliaBooking\Infrastructure\WP\InstallActions
72 */
73 class DeleteDatabaseHook
74 {
75 /**
76 * Delete the plugin tables
77 *
78 * @throws InvalidArgumentException
79 */
80 public static function delete()
81 {
82 CustomFieldsEventsTable::delete();
83
84 CustomFieldsServicesTable::delete();
85
86 CustomFieldsOptionsTable::delete();
87
88 CustomFieldsTable::delete();
89
90 NotificationsSMSHistoryTable::delete();
91
92 NotificationsLogTable::delete();
93
94 LocationsViewsTable::delete();
95
96 PaymentsTable::delete();
97
98 CustomerBookingsToEventsPeriodsTable::delete();
99
100 CustomerBookingsToExtrasTable::delete();
101
102 CustomerBookingToEventsTicketsTable::delete();
103
104 CustomerBookingsTable::delete();
105
106 CouponsToEventsTable::delete();
107
108 CouponsToPackagesTable::delete();
109
110 EventsProvidersTable::delete();
111
112 EventsPeriodsTable::delete();
113
114 EventsTagsTable::delete();
115
116 EventsTicketsTable::delete();
117
118 EventsTable::delete();
119
120 AppointmentsTable::delete();
121
122 ExtrasTable::delete();
123
124 PackagesTable::delete();
125
126 PackagesServicesTable::delete();
127
128 PackagesServicesProvidersTable::delete();
129
130 PackagesServicesLocationsTable::delete();
131
132 PackagesCustomersTable::delete();
133
134 PackagesCustomersServicesTable::delete();
135
136 ResourcesToEntitiesTable::delete();
137
138 ResourcesTable::delete();
139
140 ProvidersServiceTable::delete();
141
142 CouponsToServicesTable::delete();
143
144 ServicesViewsTable::delete();
145
146 ProvidersSpecialDayPeriodServiceTable::delete();
147
148 ProvidersSpecialDayPeriodLocationTable::delete();
149
150 ProvidersPeriodServiceTable::delete();
151
152 ProvidersPeriodLocationTable::delete();
153
154 ServicesTable::delete();
155
156 CategoriesTable::delete();
157
158 ProvidersOutlookCalendarTable::delete();
159
160 ProvidersGoogleCalendarTable::delete();
161
162 ProvidersViewsTable::delete();
163
164 ProvidersSpecialDayPeriodTable::delete();
165
166 ProvidersPeriodTable::delete();
167
168 ProvidersTimeOutTable::delete();
169
170 ProvidersSpecialDayTable::delete();
171
172 ProvidersWeekDayTable::delete();
173
174 ProvidersLocationTable::delete();
175
176 ProvidersDayOffTable::delete();
177
178 NotificationsTableInsertRows::delete();
179
180 NotificationsTable::delete();
181
182 NotificationsToEntitiesTable::delete();
183
184 LocationsTable::delete();
185
186 CouponsTable::delete();
187
188 GalleriesTable::delete();
189
190 UsersTable::delete();
191
192 CacheTable::delete();
193
194 TaxesToEntitiesTable::delete();
195
196 TaxesTable::delete();
197 }
198 }
199