Skip to content

Instantly share code, notes, and snippets.

@asterion
Created June 11, 2021 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asterion/fc834554e279c99ca1c9d327e7f62d0d to your computer and use it in GitHub Desktop.
Save asterion/fc834554e279c99ca1c9d327e7f62d0d to your computer and use it in GitHub Desktop.
add column
<?php
$setup->getConnection()->addColumn(
$setup->getTable('sales_order'),
'preorder_enable',
[
'type' => \Magento\Framework\DB\Ddl\Table::TYPE_INTEGER,
'nullable' => false,
'comment' => 'Pre-Venta',
]
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment