PluginProbe
The Innovative Form Builder – IvyForms / 1.5
The Innovative Form Builder – IvyForms v1.5
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 / DB / Notification / NotificationsTable.php

NotificationsTable.php in The Innovative Form Builder – IvyForms 1.5, at backend/src/Services/InstallActions/DB/Notification/NotificationsTable.php

49 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * @copyright © Melograno Venture Studio. All rights reserved.
5 * @licence See LICENCE.md for license details.
6 */
7
8 namespace IvyForms\Services\InstallActions\DB\Notification;
9
10 use IvyForms\Services\InstallActions\DB\AbstractDatabaseTable;
11 use IvyForms\Common\Exceptions\InvalidArgumentException;
12
13 /**
14 * Class NotificationsTable
15 *
16 * @package IvyForms\Services\InstallActions\DB\Notification
17 */
18 class NotificationsTable extends AbstractDatabaseTable
19 {
20 public const TABLE = 'notifications';
21
22 /**
23 * @return string
24 * @throws InvalidArgumentException
25 *
26 */
27 public static function buildTable(): string
28 {
29 $table = self::getTableName();
30
31 return "CREATE TABLE $table (
32 `id` INT(11) NOT NULL AUTO_INCREMENT,
33 `formId` INT(11) NULL,
34 `name` VARCHAR(255) NULL,
35 `sender` VARCHAR(255) NULL,
36 `replyTo` VARCHAR(255) NULL,
37 `receiver` VARCHAR(500) NULL,
38 `cc` VARCHAR(500) NULL,
39 `bcc` VARCHAR(500) NULL,
40 `enabled` INT(1) NULL,
41 `subject` VARCHAR(255) NULL,
42 `message` TEXT NOT NULL,
43 `showEmptyFields` INT(1) NULL DEFAULT 0,
44 `smartLogic` TEXT NULL,
45 PRIMARY KEY (`id`)
46 ) DEFAULT CHARSET=utf8 COLLATE utf8_general_ci";
47 }
48 }
49