Conditions | 1 |
Paths | 1 |
Total Lines | 35 |
Code Lines | 26 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function install(SchemaSetupInterface $setup, ModuleContextInterface $context) |
||
21 | { |
||
22 | $installer = $setup; |
||
23 | |||
24 | $installer->startSetup(); |
||
25 | |||
26 | $table = $installer->getConnection() |
||
27 | ->newTable($installer->getTable(self::CONFIG_TABLE)) |
||
28 | ->addColumn( |
||
29 | 'id', |
||
30 | \Magento\Framework\DB\Ddl\Table::TYPE_INTEGER, |
||
31 | null, |
||
32 | ['identity' => true, 'unsigned' => true, 'nullable' => |
||
33 | false, 'primary' => true], |
||
34 | 'Entity ID' |
||
35 | ) |
||
36 | ->addColumn( |
||
37 | 'config', |
||
38 | \Magento\Framework\DB\Ddl\Table::TYPE_TEXT, |
||
39 | 60, |
||
40 | ['nullable' => false], |
||
41 | 'Config' |
||
42 | ) |
||
43 | ->addColumn( |
||
44 | 'value', |
||
45 | \Magento\Framework\DB\Ddl\Table::TYPE_TEXT, |
||
46 | 1000, |
||
47 | ['nullable' => false], |
||
48 | 'Value' |
||
49 | ) |
||
50 | ->setComment('Pagantis config table'); |
||
51 | |||
52 | $installer->getConnection()->createTable($table); |
||
53 | |||
54 | $installer->endSetup(); |
||
55 | } |
||
57 |