Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
magento2-base
dev
tests
setup-integration
_files
Magento
TestSetupDeclarationModule1
fixture
declarative_installer
column_modification.php
Go to the documentation of this file.
1
<?php
6
return
[
7
'auto_increment_test'
=>
'CREATE TABLE `auto_increment_test` (
8
`int_auto_increment_with_nullable` int(15) unsigned DEFAULT NULL,
9
`int_disabled_auto_increment` smallint(12) unsigned DEFAULT \'0\',
10
UNIQUE KEY `AUTO_INCREMENT_TEST_INT_AUTO_INCREMENT_WITH_NULLABLE` (`int_auto_increment_with_nullable`)
11
) ENGINE=InnoDB DEFAULT CHARSET=utf8'
,
12
'reference_table'
=>
'CREATE TABLE `reference_table` (
13
`tinyint_ref` tinyint(7) NOT NULL AUTO_INCREMENT,
14
`tinyint_without_padding` tinyint(2) NOT NULL,
15
`bigint_without_padding` bigint(20) NOT NULL DEFAULT \'0\',
16
`smallint_without_padding` smallint(5) NOT NULL DEFAULT \'0\',
17
`integer_without_padding` int(11) NOT NULL DEFAULT \'0\',
18
`smallint_with_big_padding` smallint(254) NOT NULL DEFAULT \'0\',
19
`smallint_without_default` smallint(2) DEFAULT NULL,
20
`int_without_unsigned` int(2) DEFAULT NULL,
21
`int_unsigned` int(2) unsigned DEFAULT NULL,
22
`bigint_default_nullable` bigint(2) unsigned DEFAULT \'123\',
23
`bigint_not_default_not_nullable` bigint(20) NOT NULL,
24
PRIMARY KEY (`tinyint_ref`)
25
) ENGINE=InnoDB DEFAULT CHARSET=utf8'
,
26
'test_table'
=>
'CREATE TABLE `test_table` (
27
`smallint` smallint(3) NOT NULL AUTO_INCREMENT,
28
`tinyint` tinyint(7) DEFAULT NULL,
29
`bigint` bigint(13) DEFAULT \'0\',
30
`float` float(12,10) DEFAULT \'0.0000000000\',
31
`double` double(245,10) DEFAULT NULL,
32
`decimal` decimal(15,4) DEFAULT \'0.0000\',
33
`date` date DEFAULT NULL,
34
`timestamp` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
35
`datetime` datetime DEFAULT \'0000-00-00 00:00:00\',
36
`longtext` longtext,
37
`mediumtext` mediumtext,
38
`varchar` varchar(100) DEFAULT NULL,
39
`mediumblob` mediumblob,
40
`blob` blob,
41
`boolean` tinyint(1) DEFAULT \'1\',
42
UNIQUE KEY `TEST_TABLE_SMALLINT_BIGINT` (`smallint`,`bigint`),
43
KEY `TEST_TABLE_TINYINT_BIGINT` (`tinyint`,`bigint`),
44
CONSTRAINT `TEST_TABLE_TINYINT_REFERENCE_TABLE_TINYINT_REF` FOREIGN KEY (`tinyint`)
45
REFERENCES `reference_table` (`tinyint_ref`) ON DELETE NO ACTION
46
) ENGINE=InnoDB DEFAULT CHARSET=utf8'
,
47
];