PluginProbe
The Innovative Form Builder – IvyForms / 1.5.1
The Innovative Form Builder – IvyForms v1.5.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 / DB / EntryField / EntryFieldsTable.php

EntryFieldsTable.php in The Innovative Form Builder – IvyForms 1.5.1, at backend/src/Services/InstallActions/DB/EntryField/EntryFieldsTable.php

39 lines 1018 B
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\EntryField;
9
10 use IvyForms\Common\Exceptions\InvalidArgumentException;
11 use IvyForms\Services\InstallActions\DB\AbstractDatabaseTable;
12
13 /**
14 * Class EntryFieldsTable
15 *
16 * @package IvyForms\Services\InstallActions\DB\Entry
17 */
18 class EntryFieldsTable extends AbstractDatabaseTable
19 {
20 public const TABLE = 'entry_fields';
21
22 /**
23 * @return string
24 * @throws InvalidArgumentException
25 */
26 public static function buildTable(): string
27 {
28 $table = self::getTableName();
29
30 return "CREATE TABLE $table (
31 `id` INT(11) NOT NULL AUTO_INCREMENT,
32 `entryId` INT(11) NOT NULL,
33 `fieldId` INT(11) NOT NULL,
34 `fieldValue` TEXT NOT NULL,
35 PRIMARY KEY (`id`)
36 ) DEFAULT CHARSET=utf8 COLLATE utf8_general_ci";
37 }
38 }
39