Skip to content

Commit

Permalink
Merge pull request #34 from experius/installScriptBug
Browse files Browse the repository at this point in the history
[BUGFIX] Changed installschema back to old version
  • Loading branch information
Derrick Heesbeen authored Sep 16, 2019
2 parents 1987837 + 2bc70a9 commit 6348b91
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions Setup/InstallSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,85 +8,71 @@
* http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* Please see LICENSE.txt for the full text of the OSL 3.0 license
*/

namespace Experius\EmailCatcher\Setup;

use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Framework\Setup\SchemaSetupInterface;
use Magento\Framework\Setup\InstallSchemaInterface;

class InstallSchema implements InstallSchemaInterface
{



public function install(
SchemaSetupInterface $setup,
ModuleContextInterface $context
) {
$installer = $setup;
$installer->startSetup();

$table_experius_emailcatcher = $setup->getConnection()->newTable($setup->getTable('experius_emailcatcher'));

$table_experius_emailcatcher->addColumn(
'emailcatcher_id',
\Magento\Framework\DB\Ddl\Table::TYPE_INTEGER,
null,
['identity' => true,'nullable' => false,'primary' => true,'unsigned' => true,],
'Entity ID'
);

$table_experius_emailcatcher->addColumn(
'recipient',
'to',
\Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
null,
[],
'To Email Address'
);

$table_experius_emailcatcher->addColumn(
'sender',
'from',
\Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
null,
[],
'From Email Address'
);

$table_experius_emailcatcher->addColumn(
'subject',
\Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
null,
[],
'Subject'
);

$table_experius_emailcatcher->addColumn(
'body',
\Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
null,
[],
'Email Body'
);

$table_experius_emailcatcher->addColumn(
'created_at',
\Magento\Framework\DB\Ddl\Table::TYPE_DATETIME,
null,
[],
'Created At'
);

$table_experius_emailcatcher->addColumn(
'store_id',
\Magento\Framework\DB\Ddl\Table::TYPE_INTEGER,
null,
[],
'Store Id'
);

$setup->getConnection()->createTable($table_experius_emailcatcher);

$setup->endSetup();
}
}
}

0 comments on commit 6348b91

Please sign in to comment.