PluginProbe
The Innovative Form Builder – IvyForms / 1.4
The Innovative Form Builder – IvyForms v1.4
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.4, at backend/src/Services/InstallActions/ActivationDatabaseHook.php

64 lines 2.4 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\Services\InstallActions\DB\Confirmation\ConfirmationsTable;
10 use IvyForms\Services\InstallActions\DB\Entry\EntriesTable;
11 use IvyForms\Services\InstallActions\DB\EntryField\EntryFieldsTable;
12 use IvyForms\Services\InstallActions\DB\Field\FieldsTable;
13 use IvyForms\Services\InstallActions\DB\Form\FormsTable;
14 use IvyForms\Services\InstallActions\DB\Notification\NotificationsTable;
15 use IvyForms\Services\InstallActions\DB\FieldOptions\FieldOptionsTable;
16 use IvyForms\Services\InstallActions\DB\GoogleSheets\GoogleSheetsTable;
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\AddStyleSettingsToForms;
21 use IvyForms\Services\InstallActions\Migrations\AddShowEmptyFieldsToNotifications;
22 use IvyForms\Services\InstallActions\Migrations\AddFormTypeToForms;
23 use IvyForms\Services\InstallActions\Migrations\ConvertNotificationSmartLogicToText;
24 use IvyForms\Services\InstallActions\Migrations\AddPageIdToFields;
25 use IvyForms\Services\InstallActions\Migrations\AddNamePositionToConfirmations;
26 use IvyForms\Services\InstallActions\Migrations\AddCcBccToNotifications;
27 use IvyForms\Services\InstallActions\Migrations\ExpandReceiverColumnInNotifications;
28
29 /**
30 * Class ActivationHook
31 *
32 * @package IvyForms\Services\InstallActions
33 */
34 class ActivationDatabaseHook
35 {
36 /**
37 * Initialize the plugin
38 */
39 public static function init(): void
40 {
41 FormsTable::init();
42 FieldsTable::init();
43 NotificationsTable::init();
44 ConfirmationsTable::init();
45 EntriesTable::init();
46 EntryFieldsTable::init();
47 FieldOptionsTable::init();
48 GoogleSheetsTable::init();
49
50 // Run migrations
51 AddRowColumnLayoutToFields::run();
52 SeedRowIndexForFields::run();
53 AddReplyToToNotifications::run();
54 AddStyleSettingsToForms::run();
55 AddShowEmptyFieldsToNotifications::run();
56 AddFormTypeToForms::run();
57 ConvertNotificationSmartLogicToText::run();
58 AddPageIdToFields::run();
59 AddNamePositionToConfirmations::run();
60 AddCcBccToNotifications::run();
61 ExpandReceiverColumnInNotifications::run();
62 }
63 }
64