Skip to content

Commit

Permalink
Merge pull request #236 from magento-extensibility/MAGETWO-34625-ee-p…
Browse files Browse the repository at this point in the history
…ackages

[Extensibility] MAGETWO-34625
  • Loading branch information
He, Joan(johe) committed Apr 21, 2015
2 parents 809a8b6 + fd0033e commit ddfab8b
Show file tree
Hide file tree
Showing 22 changed files with 307 additions and 113 deletions.
4 changes: 2 additions & 2 deletions app/code/Magento/AdminNotification/Setup/InstallSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'date_added',
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
null,
['nullable' => false],
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
'Create date'
)->addColumn(
'title',
Expand Down Expand Up @@ -112,7 +112,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'created_at',
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
null,
['nullable' => false],
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
'Create date'
)->setComment(
'Admin System Messages'
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Cron/Setup/InstallSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'created_at',
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
null,
['nullable' => false],
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
'Created At'
)->addColumn(
'scheduled_at',
Expand Down
44 changes: 22 additions & 22 deletions app/code/Magento/Customer/Setup/InstallSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'created_at',
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
null,
['nullable' => false],
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
'Created At'
)->addColumn(
'updated_at',
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
null,
['nullable' => false],
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT_UPDATE],
'Updated At'
)->addColumn(
'is_active',
Expand Down Expand Up @@ -134,7 +134,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'Customer Entity'
);
$installer->getConnection()->createTable($table);

/**
* Create table 'customer_address_entity'
*/
Expand Down Expand Up @@ -174,13 +174,13 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'created_at',
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
null,
['nullable' => false],
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
'Created At'
)->addColumn(
'updated_at',
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
null,
['nullable' => false],
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT_UPDATE],
'Updated At'
)->addColumn(
'is_active',
Expand All @@ -202,7 +202,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'Customer Address Entity'
);
$installer->getConnection()->createTable($table);

/**
* Create table 'customer_address_entity_datetime'
*/
Expand Down Expand Up @@ -287,7 +287,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'Customer Address Entity Datetime'
);
$installer->getConnection()->createTable($table);

/**
* Create table 'customer_address_entity_decimal'
*/
Expand Down Expand Up @@ -372,7 +372,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'Customer Address Entity Decimal'
);
$installer->getConnection()->createTable($table);

/**
* Create table 'customer_address_entity_int'
*/
Expand Down Expand Up @@ -447,7 +447,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'Customer Address Entity Int'
);
$installer->getConnection()->createTable($table);

/**
* Create table 'customer_address_entity_text'
*/
Expand Down Expand Up @@ -524,7 +524,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'Customer Address Entity Text'
);
$installer->getConnection()->createTable($table);

/**
* Create table 'customer_address_entity_varchar'
*/
Expand Down Expand Up @@ -609,7 +609,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'Customer Address Entity Varchar'
);
$installer->getConnection()->createTable($table);

/**
* Create table 'customer_entity_datetime'
*/
Expand Down Expand Up @@ -684,7 +684,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'Customer Entity Datetime'
);
$installer->getConnection()->createTable($table);

/**
* Create table 'customer_entity_decimal'
*/
Expand Down Expand Up @@ -759,7 +759,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'Customer Entity Decimal'
);
$installer->getConnection()->createTable($table);

/**
* Create table 'customer_entity_int'
*/
Expand Down Expand Up @@ -834,7 +834,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'Customer Entity Int'
);
$installer->getConnection()->createTable($table);

/**
* Create table 'customer_entity_text'
*/
Expand Down Expand Up @@ -906,7 +906,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'Customer Entity Text'
);
$installer->getConnection()->createTable($table);

/**
* Create table 'customer_entity_varchar'
*/
Expand Down Expand Up @@ -981,7 +981,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'Customer Entity Varchar'
);
$installer->getConnection()->createTable($table);

/**
* Create table 'customer_group'
*/
Expand Down Expand Up @@ -1009,7 +1009,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'Customer Group'
);
$installer->getConnection()->createTable($table);

/**
* Create table 'customer_eav_attribute'
*/
Expand Down Expand Up @@ -1073,7 +1073,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'Customer Eav Attribute'
);
$installer->getConnection()->createTable($table);

/**
* Create table 'customer_form_attribute'
*/
Expand Down Expand Up @@ -1104,7 +1104,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'Customer Form Attribute'
);
$installer->getConnection()->createTable($table);

/**
* Create table 'customer_eav_attribute_website'
*/
Expand Down Expand Up @@ -1165,7 +1165,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'Customer Eav Attribute Website'
);
$installer->getConnection()->createTable($table);

/**
* Create table 'customer_visitor'
*/
Expand Down Expand Up @@ -1193,8 +1193,8 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'Visitor Table'
);
$installer->getConnection()->createTable($table);

$installer->endSetup();

}
}
8 changes: 4 additions & 4 deletions app/code/Magento/Downloadable/Setup/InstallSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,14 +216,14 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'created_at',
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
null,
['nullable' => false],
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
'Date of creation'
)
->addColumn(
'updated_at',
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
null,
['nullable' => false],
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT_UPDATE],
'Date of modification'
)
->addColumn(
Expand Down Expand Up @@ -390,14 +390,14 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'created_at',
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
null,
['nullable' => false],
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
'Creation Time'
)
->addColumn(
'updated_at',
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
null,
['nullable' => false],
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT_UPDATE],
'Update Time'
)
->addIndex(
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/Eav/Setup/InstallSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,13 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'created_at',
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
null,
['nullable' => false],
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
'Created At'
)->addColumn(
'updated_at',
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
null,
['nullable' => false],
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT_UPDATE],
'Updated At'
)->addColumn(
'is_active',
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/Integration/Setup/InstallSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,13 +316,13 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'created_at',
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
null,
['nullable' => false],
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
'Creation Time'
)->addColumn(
'updated_at',
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
null,
['nullable' => false],
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_UPDATE],
'Update Time'
)->addColumn(
'setup_type',
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/Log/Setup/InstallSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'created_at',
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
null,
['nullable' => false],
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
'Creation Time'
)->addColumn(
'deleted_at',
Expand Down Expand Up @@ -147,7 +147,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'add_date',
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
null,
['nullable' => false],
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
'Date'
)->setComment(
'Log Summary Table'
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/ProductAlert/Setup/InstallSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'add_date',
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
null,
['nullable' => false],
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
'Product alert add date'
)->addColumn(
'last_send_date',
Expand Down Expand Up @@ -148,7 +148,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'add_date',
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
null,
['nullable' => false],
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
'Product alert add date'
)->addColumn(
'send_date',
Expand Down
10 changes: 5 additions & 5 deletions app/code/Magento/Reports/Setup/InstallSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'added_at',
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
null,
['nullable' => false],
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
'Added At'
)
->addIndex(
Expand Down Expand Up @@ -181,7 +181,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'added_at',
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
null,
['nullable' => false],
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
'Added At'
)
->addIndex(
Expand Down Expand Up @@ -288,7 +288,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'logged_at',
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
null,
['nullable' => false],
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
'Logged At'
)
->addColumn(
Expand Down Expand Up @@ -411,7 +411,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'added_at',
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
null,
['nullable' => false],
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
'Added At'
)
->addIndex(
Expand Down Expand Up @@ -517,7 +517,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'added_at',
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
null,
['nullable' => false],
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
'Added At'
)
->addIndex(
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Review/Setup/InstallSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'created_at',
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
null,
['nullable' => false],
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
'Review create date'
)
->addColumn(
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/Sales/Setup/InstallSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -1308,13 +1308,13 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'created_at',
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
null,
['nullable' => false],
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
'Created At'
)->addColumn(
'updated_at',
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
null,
['nullable' => false],
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT_UPDATE],
'Updated At'
)->addColumn(
'product_id',
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Search/Setup/InstallSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
'updated_at',
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
null,
['nullable' => false],
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT_UPDATE],
'Updated at'
)
->addIndex(
Expand Down
Loading

0 comments on commit ddfab8b

Please sign in to comment.