PluginProbe
The Innovative Form Builder – IvyForms / 1.1
The Innovative Form Builder – IvyForms v1.1
1.5.1 1.5 1.4.1 1.4 trunk 0.1.2 0.2 0.2.1 0.3 0.3.1 0.4 0.5 0.6 0.6.1 0.6.1-backup 0.6.1.1 0.7 0.8 0.8.1 0.8.2 0.9 0.9.1 1.0 1.1 1.1.1 All 27 releases
ivyforms / backend / src / Services / InstallActions / ActivationDatabaseHook.php

ActivationDatabaseHook.php in The Innovative Form Builder – IvyForms 1.1, at backend/src/Services/InstallActions/ActivationDatabaseHook.php

54 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Database hook for activation
5 */
6
7 namespace IvyForms\Services\InstallActions;
8
9 use IvyForms\Common\Exceptions\InvalidArgumentException;
10 use IvyForms\Services\InstallActions\DB\Confirmation\ConfirmationsTable;
11 use IvyForms\Services\InstallActions\DB\Entry\EntriesTable;
12 use IvyForms\Services\InstallActions\DB\EntryField\EntryFieldsTable;
13 use IvyForms\Services\InstallActions\DB\Field\FieldsTable;
14 use IvyForms\Services\InstallActions\DB\Form\FormsTable;
15 use IvyForms\Services\InstallActions\DB\Notification\NotificationsTable;
16 use IvyForms\Services\InstallActions\DB\FieldOptions\FieldOptionsTable;
17 use IvyForms\Services\InstallActions\Migrations\AddRowColumnLayoutToFields;
18 use IvyForms\Services\InstallActions\Migrations\SeedRowIndexForFields;
19 use IvyForms\Services\InstallActions\Migrations\AddReplyToToNotifications;
20 use IvyForms\Services\InstallActions\Migrations\AddShowEmptyFieldsToNotifications;
21 use IvyForms\Services\InstallActions\Migrations\ConvertNotificationSmartLogicToText;
22 use IvyForms\Services\InstallActions\Migrations\AddPageIdToFields;
23
24 /**
25 * Class ActivationHook
26 *
27 * @package IvyForms\Services\InstallActions
28 */
29 class ActivationDatabaseHook
30 {
31 /**
32 * Initialize the plugin
33 * @throws InvalidArgumentException
34 */
35 public static function init(): void
36 {
37 FormsTable::init();
38 FieldsTable::init();
39 NotificationsTable::init();
40 ConfirmationsTable::init();
41 EntriesTable::init();
42 EntryFieldsTable::init();
43 FieldOptionsTable::init();
44
45 // Run migrations
46 AddRowColumnLayoutToFields::run();
47 SeedRowIndexForFields::run();
48 AddReplyToToNotifications::run();
49 AddShowEmptyFieldsToNotifications::run();
50 ConvertNotificationSmartLogicToText::run();
51 AddPageIdToFields::run();
52 }
53 }
54