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
valid_xml_revision_1.php
Go to the documentation of this file.
1
<?php
6
return
[
7
'table'
=> [
8
'reference_table'
=> [
9
'column'
=> [
10
'tinyint_ref'
=> [
11
'type'
=>
'tinyint'
,
12
'name'
=>
'tinyint_ref'
,
13
'padding'
=>
'7'
,
14
'nullable'
=>
'false'
,
15
'identity'
=>
'true'
,
16
'unsigned'
=>
'false'
,
17
],
18
'tinyint_without_padding'
=> [
19
'type'
=>
'tinyint'
,
20
'name'
=>
'tinyint_without_padding'
,
21
'default'
=>
'0'
,
22
'nullable'
=>
'false'
,
23
'unsigned'
=>
'false'
,
24
],
25
'bigint_without_padding'
=> [
26
'type'
=>
'bigint'
,
27
'name'
=>
'bigint_without_padding'
,
28
'default'
=>
'0'
,
29
'nullable'
=>
'false'
,
30
'unsigned'
=>
'false'
,
31
],
32
'smallint_without_padding'
=> [
33
'type'
=>
'smallint'
,
34
'name'
=>
'smallint_without_padding'
,
35
'default'
=>
'0'
,
36
'nullable'
=>
'false'
,
37
'unsigned'
=>
'false'
,
38
],
39
'integer_without_padding'
=> [
40
'type'
=>
'int'
,
41
'name'
=>
'integer_without_padding'
,
42
'default'
=>
'0'
,
43
'nullable'
=>
'false'
,
44
'unsigned'
=>
'false'
,
45
],
46
'smallint_with_big_padding'
=> [
47
'type'
=>
'smallint'
,
48
'name'
=>
'smallint_with_big_padding'
,
49
'padding'
=>
'254'
,
50
'default'
=>
'0'
,
51
'nullable'
=>
'false'
,
52
'unsigned'
=>
'false'
,
53
],
54
'smallint_without_default'
=> [
55
'type'
=>
'smallint'
,
56
'name'
=>
'smallint_without_default'
,
57
'padding'
=>
'2'
,
58
'nullable'
=>
'true'
,
59
'unsigned'
=>
'false'
,
60
],
61
'int_without_unsigned'
=> [
62
'type'
=>
'int'
,
63
'name'
=>
'int_without_unsigned'
,
64
'padding'
=>
'2'
,
65
'nullable'
=>
'true'
,
66
],
67
'int_unsigned'
=> [
68
'type'
=>
'int'
,
69
'name'
=>
'int_unsigned'
,
70
'padding'
=>
'2'
,
71
'nullable'
=>
'true'
,
72
'unsigned'
=>
'true'
,
73
],
74
'bigint_default_nullable'
=> [
75
'type'
=>
'bigint'
,
76
'name'
=>
'bigint_default_nullable'
,
77
'padding'
=>
'2'
,
78
'nullable'
=>
'true'
,
79
'default'
=>
'1'
,
80
'unsigned'
=>
'true'
,
81
],
82
'bigint_not_default_not_nullable'
=> [
83
'type'
=>
'bigint'
,
84
'name'
=>
'bigint_not_default_not_nullable'
,
85
'padding'
=>
'2'
,
86
'nullable'
=>
'false'
,
87
'unsigned'
=>
'true'
,
88
],
89
],
90
'constraint'
=> [
91
'tinyint_primary'
=> [
92
'column'
=> [
93
'tinyint_ref'
=>
'tinyint_ref'
,
94
],
95
'type'
=>
'primary'
,
96
'referenceId'
=>
'tinyint_primary'
,
97
],
98
],
99
'name'
=>
'reference_table'
,
100
'resource'
=>
'default'
,
101
],
102
'auto_increment_test'
=> [
103
'column'
=> [
104
'int_auto_increment_with_nullable'
=> [
105
'type'
=>
'int'
,
106
'name'
=>
'int_auto_increment_with_nullable'
,
107
'identity'
=>
'true'
,
108
'padding'
=>
'12'
,
109
'unsigned'
=>
'true'
,
110
'nullable'
=>
'true'
,
111
],
112
'int_disabled_auto_increment'
=> [
113
'type'
=>
'smallint'
,
114
'name'
=>
'int_disabled_auto_increment'
,
115
'default'
=>
'0'
,
116
'identity'
=>
'false'
,
117
'padding'
=>
'12'
,
118
'unsigned'
=>
'true'
,
119
'nullable'
=>
'true'
,
120
],
121
],
122
'constraint'
=> [
123
'AUTO_INCREMENT_TEST_INT_AUTO_INCREMENT_WITH_NULLABLE'
=> [
124
'column'
=> [
125
'int_auto_increment_with_nullable'
=>
'int_auto_increment_with_nullable'
,
126
],
127
'type'
=>
'unique'
,
128
'referenceId'
=>
'AUTO_INCREMENT_TEST_INT_AUTO_INCREMENT_WITH_NULLABLE'
,
129
],
130
],
131
'name'
=>
'auto_increment_test'
,
132
'resource'
=>
'default'
,
133
],
134
'test_table'
=> [
135
'column'
=> [
136
'smallint'
=> [
137
'type'
=>
'smallint'
,
138
'identity'
=>
'true'
,
139
'name'
=>
'smallint'
,
140
'padding'
=>
'3'
,
141
'nullable'
=>
'true'
,
142
],
143
'tinyint'
=> [
144
'type'
=>
'tinyint'
,
145
'name'
=>
'tinyint'
,
146
'padding'
=>
'7'
,
147
'nullable'
=>
'true'
,
148
'unsigned'
=>
'false'
,
149
],
150
'bigint'
=> [
151
'type'
=>
'bigint'
,
152
'name'
=>
'bigint'
,
153
'default'
=>
'0'
,
154
'padding'
=>
'13'
,
155
'nullable'
=>
'true'
,
156
'unsigned'
=>
'false'
,
157
],
158
'float'
=> [
159
'type'
=>
'float'
,
160
'name'
=>
'float'
,
161
'default'
=>
'0'
,
162
'scale'
=>
'4'
,
163
'precision'
=>
'12'
,
164
],
165
'double'
=> [
166
'type'
=>
'decimal'
,
167
'name'
=>
'double'
,
168
'default'
=>
'11111111.111111'
,
169
'precision'
=>
'14'
,
170
'scale'
=>
'6'
,
171
],
172
'decimal'
=> [
173
'type'
=>
'decimal'
,
174
'name'
=>
'decimal'
,
175
'default'
=>
'0'
,
176
'scale'
=>
'4'
,
177
'precision'
=>
'15'
,
178
],
179
'date'
=> [
180
'type'
=>
'date'
,
181
'name'
=>
'date'
,
182
],
183
'timestamp'
=> [
184
'type'
=>
'timestamp'
,
185
'name'
=>
'timestamp'
,
186
'default'
=>
'CURRENT_TIMESTAMP'
,
187
'on_update'
=>
'true'
,
188
],
189
'datetime'
=> [
190
'type'
=>
'datetime'
,
191
'name'
=>
'datetime'
,
192
'default'
=>
'0'
,
193
],
194
'longtext'
=> [
195
'type'
=>
'longtext'
,
196
'name'
=>
'longtext'
,
197
],
198
'mediumtext'
=> [
199
'type'
=>
'mediumtext'
,
200
'name'
=>
'mediumtext'
,
201
],
202
'varchar'
=> [
203
'type'
=>
'varchar'
,
204
'name'
=>
'varchar'
,
205
'length'
=>
'254'
,
206
'nullable'
=>
'true'
,
207
],
208
'mediumblob'
=> [
209
'type'
=>
'mediumblob'
,
210
'name'
=>
'mediumblob'
,
211
],
212
'blob'
=> [
213
'type'
=>
'blob'
,
214
'name'
=>
'blob'
,
215
],
216
'boolean'
=> [
217
'type'
=>
'boolean'
,
218
'name'
=>
'boolean'
,
219
],
220
'varbinary_rename'
=> [
221
'type'
=>
'varbinary'
,
222
'name'
=>
'varbinary_rename'
,
223
'default'
=>
'10101'
,
224
'disabled'
=>
'true'
,
225
],
226
],
227
'constraint'
=> [
228
'TEST_TABLE_UNIQUE'
=> [
229
'column'
=> [
230
'smallint'
=>
'smallint'
,
231
'bigint'
=>
'bigint'
,
232
],
233
'type'
=>
'unique'
,
234
'referenceId'
=>
'TEST_TABLE_UNIQUE'
,
235
],
236
'TEST_TABLE_TINYINT_REFERENCE'
=> [
237
'type'
=>
'foreign'
,
238
'referenceId'
=>
'TEST_TABLE_TINYINT_REFERENCE'
,
239
'column'
=>
'tinyint'
,
240
'table'
=>
'test_table'
,
241
'referenceTable'
=>
'reference_table'
,
242
'referenceColumn'
=>
'tinyint_ref'
,
243
'onDelete'
=>
'NO ACTION'
,
244
],
245
],
246
'index'
=> [
247
'TEST_TABLE_INDEX'
=> [
248
'column'
=> [
249
'tinyint'
=>
'tinyint'
,
250
'bigint'
=>
'bigint'
,
251
],
252
'referenceId'
=>
'TEST_TABLE_INDEX'
,
253
'indexType'
=>
'btree'
,
254
],
255
],
256
'name'
=>
'test_table'
,
257
'resource'
=>
'default'
,
258
],
259
],
260
];