Skip to content

Commit ddfab8b

Browse files
author
He, Joan(johe)
committed
Merge pull request #236 from magento-extensibility/MAGETWO-34625-ee-packages
[Extensibility] MAGETWO-34625
2 parents 809a8b6 + fd0033e commit ddfab8b

File tree

22 files changed

+307
-113
lines changed

22 files changed

+307
-113
lines changed

app/code/Magento/AdminNotification/Setup/InstallSchema.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
4545
'date_added',
4646
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
4747
null,
48-
['nullable' => false],
48+
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
4949
'Create date'
5050
)->addColumn(
5151
'title',
@@ -112,7 +112,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
112112
'created_at',
113113
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
114114
null,
115-
['nullable' => false],
115+
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
116116
'Create date'
117117
)->setComment(
118118
'Admin System Messages'

app/code/Magento/Cron/Setup/InstallSchema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
5757
'created_at',
5858
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
5959
null,
60-
['nullable' => false],
60+
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
6161
'Created At'
6262
)->addColumn(
6363
'scheduled_at',

app/code/Magento/Customer/Setup/InstallSchema.php

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
8181
'created_at',
8282
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
8383
null,
84-
['nullable' => false],
84+
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
8585
'Created At'
8686
)->addColumn(
8787
'updated_at',
8888
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
8989
null,
90-
['nullable' => false],
90+
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT_UPDATE],
9191
'Updated At'
9292
)->addColumn(
9393
'is_active',
@@ -134,7 +134,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
134134
'Customer Entity'
135135
);
136136
$installer->getConnection()->createTable($table);
137-
137+
138138
/**
139139
* Create table 'customer_address_entity'
140140
*/
@@ -174,13 +174,13 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
174174
'created_at',
175175
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
176176
null,
177-
['nullable' => false],
177+
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
178178
'Created At'
179179
)->addColumn(
180180
'updated_at',
181181
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
182182
null,
183-
['nullable' => false],
183+
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT_UPDATE],
184184
'Updated At'
185185
)->addColumn(
186186
'is_active',
@@ -202,7 +202,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
202202
'Customer Address Entity'
203203
);
204204
$installer->getConnection()->createTable($table);
205-
205+
206206
/**
207207
* Create table 'customer_address_entity_datetime'
208208
*/
@@ -287,7 +287,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
287287
'Customer Address Entity Datetime'
288288
);
289289
$installer->getConnection()->createTable($table);
290-
290+
291291
/**
292292
* Create table 'customer_address_entity_decimal'
293293
*/
@@ -372,7 +372,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
372372
'Customer Address Entity Decimal'
373373
);
374374
$installer->getConnection()->createTable($table);
375-
375+
376376
/**
377377
* Create table 'customer_address_entity_int'
378378
*/
@@ -447,7 +447,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
447447
'Customer Address Entity Int'
448448
);
449449
$installer->getConnection()->createTable($table);
450-
450+
451451
/**
452452
* Create table 'customer_address_entity_text'
453453
*/
@@ -524,7 +524,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
524524
'Customer Address Entity Text'
525525
);
526526
$installer->getConnection()->createTable($table);
527-
527+
528528
/**
529529
* Create table 'customer_address_entity_varchar'
530530
*/
@@ -609,7 +609,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
609609
'Customer Address Entity Varchar'
610610
);
611611
$installer->getConnection()->createTable($table);
612-
612+
613613
/**
614614
* Create table 'customer_entity_datetime'
615615
*/
@@ -684,7 +684,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
684684
'Customer Entity Datetime'
685685
);
686686
$installer->getConnection()->createTable($table);
687-
687+
688688
/**
689689
* Create table 'customer_entity_decimal'
690690
*/
@@ -759,7 +759,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
759759
'Customer Entity Decimal'
760760
);
761761
$installer->getConnection()->createTable($table);
762-
762+
763763
/**
764764
* Create table 'customer_entity_int'
765765
*/
@@ -834,7 +834,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
834834
'Customer Entity Int'
835835
);
836836
$installer->getConnection()->createTable($table);
837-
837+
838838
/**
839839
* Create table 'customer_entity_text'
840840
*/
@@ -906,7 +906,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
906906
'Customer Entity Text'
907907
);
908908
$installer->getConnection()->createTable($table);
909-
909+
910910
/**
911911
* Create table 'customer_entity_varchar'
912912
*/
@@ -981,7 +981,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
981981
'Customer Entity Varchar'
982982
);
983983
$installer->getConnection()->createTable($table);
984-
984+
985985
/**
986986
* Create table 'customer_group'
987987
*/
@@ -1009,7 +1009,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
10091009
'Customer Group'
10101010
);
10111011
$installer->getConnection()->createTable($table);
1012-
1012+
10131013
/**
10141014
* Create table 'customer_eav_attribute'
10151015
*/
@@ -1073,7 +1073,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
10731073
'Customer Eav Attribute'
10741074
);
10751075
$installer->getConnection()->createTable($table);
1076-
1076+
10771077
/**
10781078
* Create table 'customer_form_attribute'
10791079
*/
@@ -1104,7 +1104,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
11041104
'Customer Form Attribute'
11051105
);
11061106
$installer->getConnection()->createTable($table);
1107-
1107+
11081108
/**
11091109
* Create table 'customer_eav_attribute_website'
11101110
*/
@@ -1165,7 +1165,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
11651165
'Customer Eav Attribute Website'
11661166
);
11671167
$installer->getConnection()->createTable($table);
1168-
1168+
11691169
/**
11701170
* Create table 'customer_visitor'
11711171
*/
@@ -1193,8 +1193,8 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
11931193
'Visitor Table'
11941194
);
11951195
$installer->getConnection()->createTable($table);
1196-
1196+
11971197
$installer->endSetup();
1198-
1198+
11991199
}
12001200
}

app/code/Magento/Downloadable/Setup/InstallSchema.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,14 +216,14 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
216216
'created_at',
217217
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
218218
null,
219-
['nullable' => false],
219+
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
220220
'Date of creation'
221221
)
222222
->addColumn(
223223
'updated_at',
224224
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
225225
null,
226-
['nullable' => false],
226+
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT_UPDATE],
227227
'Date of modification'
228228
)
229229
->addColumn(
@@ -390,14 +390,14 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
390390
'created_at',
391391
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
392392
null,
393-
['nullable' => false],
393+
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
394394
'Creation Time'
395395
)
396396
->addColumn(
397397
'updated_at',
398398
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
399399
null,
400-
['nullable' => false],
400+
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT_UPDATE],
401401
'Update Time'
402402
)
403403
->addIndex(

app/code/Magento/Eav/Setup/InstallSchema.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,13 +179,13 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
179179
'created_at',
180180
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
181181
null,
182-
['nullable' => false],
182+
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
183183
'Created At'
184184
)->addColumn(
185185
'updated_at',
186186
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
187187
null,
188-
['nullable' => false],
188+
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT_UPDATE],
189189
'Updated At'
190190
)->addColumn(
191191
'is_active',

app/code/Magento/Integration/Setup/InstallSchema.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,13 +316,13 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
316316
'created_at',
317317
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
318318
null,
319-
['nullable' => false],
319+
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
320320
'Creation Time'
321321
)->addColumn(
322322
'updated_at',
323323
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
324324
null,
325-
['nullable' => false],
325+
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_UPDATE],
326326
'Update Time'
327327
)->addColumn(
328328
'setup_type',

app/code/Magento/Log/Setup/InstallSchema.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
9595
'created_at',
9696
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
9797
null,
98-
['nullable' => false],
98+
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
9999
'Creation Time'
100100
)->addColumn(
101101
'deleted_at',
@@ -147,7 +147,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
147147
'add_date',
148148
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
149149
null,
150-
['nullable' => false],
150+
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
151151
'Date'
152152
)->setComment(
153153
'Log Summary Table'

app/code/Magento/ProductAlert/Setup/InstallSchema.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
6363
'add_date',
6464
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
6565
null,
66-
['nullable' => false],
66+
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
6767
'Product alert add date'
6868
)->addColumn(
6969
'last_send_date',
@@ -148,7 +148,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
148148
'add_date',
149149
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
150150
null,
151-
['nullable' => false],
151+
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
152152
'Product alert add date'
153153
)->addColumn(
154154
'send_date',

app/code/Magento/Reports/Setup/InstallSchema.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
7373
'added_at',
7474
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
7575
null,
76-
['nullable' => false],
76+
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
7777
'Added At'
7878
)
7979
->addIndex(
@@ -181,7 +181,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
181181
'added_at',
182182
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
183183
null,
184-
['nullable' => false],
184+
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
185185
'Added At'
186186
)
187187
->addIndex(
@@ -288,7 +288,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
288288
'logged_at',
289289
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
290290
null,
291-
['nullable' => false],
291+
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
292292
'Logged At'
293293
)
294294
->addColumn(
@@ -411,7 +411,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
411411
'added_at',
412412
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
413413
null,
414-
['nullable' => false],
414+
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
415415
'Added At'
416416
)
417417
->addIndex(
@@ -517,7 +517,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
517517
'added_at',
518518
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
519519
null,
520-
['nullable' => false],
520+
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
521521
'Added At'
522522
)
523523
->addIndex(

app/code/Magento/Review/Setup/InstallSchema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
8484
'created_at',
8585
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
8686
null,
87-
['nullable' => false],
87+
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
8888
'Review create date'
8989
)
9090
->addColumn(

app/code/Magento/Sales/Setup/InstallSchema.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1308,13 +1308,13 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
13081308
'created_at',
13091309
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
13101310
null,
1311-
['nullable' => false],
1311+
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
13121312
'Created At'
13131313
)->addColumn(
13141314
'updated_at',
13151315
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
13161316
null,
1317-
['nullable' => false],
1317+
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT_UPDATE],
13181318
'Updated At'
13191319
)->addColumn(
13201320
'product_id',

app/code/Magento/Search/Setup/InstallSchema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
104104
'updated_at',
105105
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
106106
null,
107-
['nullable' => false],
107+
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT_UPDATE],
108108
'Updated at'
109109
)
110110
->addIndex(

0 commit comments

Comments
 (0)