← All changes
|
backend/src/Services/InstallActions/ActivationDatabaseHook.php
+18
-2
1.1.1
→
1.5
View file →
| @@ -5,9 +5,8 @@ | ||
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | 7 | namespace IvyForms\Services\InstallActions; |
| 8 | 8 | |
| 9 | -use IvyForms\Common\Exceptions\InvalidArgumentException; | |
| 10 | 9 | use IvyForms\Services\InstallActions\DB\Confirmation\ConfirmationsTable; |
| 11 | 10 | use IvyForms\Services\InstallActions\DB\Entry\EntriesTable; |
| 12 | 11 | use IvyForms\Services\InstallActions\DB\EntryField\EntryFieldsTable; |
| 13 | 12 | use IvyForms\Services\InstallActions\DB\Field\FieldsTable; |
| @@ -13,14 +12,23 @@ | ||
| 13 | 12 | use IvyForms\Services\InstallActions\DB\Field\FieldsTable; |
| 14 | 13 | use IvyForms\Services\InstallActions\DB\Form\FormsTable; |
| 15 | 14 | use IvyForms\Services\InstallActions\DB\Notification\NotificationsTable; |
| 16 | 15 | use IvyForms\Services\InstallActions\DB\FieldOptions\FieldOptionsTable; |
| 16 | +use IvyForms\Services\InstallActions\DB\GoogleSheets\GoogleSheetsTable; | |
| 17 | +use IvyForms\Services\InstallActions\DB\Payment\OrdersTable; | |
| 18 | +use IvyForms\Services\InstallActions\DB\Payment\PaymentsTable; | |
| 19 | +use IvyForms\Services\InstallActions\Migrations\PaymentSchemaMigrations; | |
| 17 | 20 | use IvyForms\Services\InstallActions\Migrations\AddRowColumnLayoutToFields; |
| 18 | 21 | use IvyForms\Services\InstallActions\Migrations\SeedRowIndexForFields; |
| 19 | 22 | use IvyForms\Services\InstallActions\Migrations\AddReplyToToNotifications; |
| 23 | +use IvyForms\Services\InstallActions\Migrations\AddStyleSettingsToForms; | |
| 20 | 24 | use IvyForms\Services\InstallActions\Migrations\AddShowEmptyFieldsToNotifications; |
| 25 | +use IvyForms\Services\InstallActions\Migrations\AddFormTypeToForms; | |
| 21 | 26 | use IvyForms\Services\InstallActions\Migrations\ConvertNotificationSmartLogicToText; |
| 22 | 27 | use IvyForms\Services\InstallActions\Migrations\AddPageIdToFields; |
| 28 | +use IvyForms\Services\InstallActions\Migrations\AddNamePositionToConfirmations; | |
| 29 | +use IvyForms\Services\InstallActions\Migrations\AddCcBccToNotifications; | |
| 30 | +use IvyForms\Services\InstallActions\Migrations\ExpandReceiverColumnInNotifications; | |
| 23 | 31 | |
| 24 | 32 | /** |
| 25 | 33 | * Class ActivationHook |
| 26 | 34 | * |
| @@ -29,9 +37,8 @@ | ||
| 29 | 37 | class ActivationDatabaseHook |
| 30 | 38 | { |
| 31 | 39 | /** |
| 32 | 40 | * Initialize the plugin |
| 33 | - * @throws InvalidArgumentException | |
| 34 | 41 | */ |
| 35 | 42 | public static function init(): void |
| 36 | 43 | { |
| 37 | 44 | FormsTable::init(); |
| @@ -40,14 +47,23 @@ | ||
| 40 | 47 | ConfirmationsTable::init(); |
| 41 | 48 | EntriesTable::init(); |
| 42 | 49 | EntryFieldsTable::init(); |
| 43 | 50 | FieldOptionsTable::init(); |
| 51 | + GoogleSheetsTable::init(); | |
| 52 | + PaymentsTable::init(); | |
| 53 | + OrdersTable::init(); | |
| 44 | 54 | |
| 45 | 55 | // Run migrations |
| 46 | 56 | AddRowColumnLayoutToFields::run(); |
| 47 | 57 | SeedRowIndexForFields::run(); |
| 48 | 58 | AddReplyToToNotifications::run(); |
| 59 | + AddStyleSettingsToForms::run(); | |
| 49 | 60 | AddShowEmptyFieldsToNotifications::run(); |
| 61 | + AddFormTypeToForms::run(); | |
| 62 | + PaymentSchemaMigrations::run(); | |
| 50 | 63 | ConvertNotificationSmartLogicToText::run(); |
| 51 | 64 | AddPageIdToFields::run(); |
| 65 | + AddNamePositionToConfirmations::run(); | |
| 66 | + AddCcBccToNotifications::run(); | |
| 67 | + ExpandReceiverColumnInNotifications::run(); | |
| 52 | 68 | } |
| 53 | 69 | } |