See also:
- How to rename a database table
- How to rename a database column?
- How to programmatically check whether a database table contains a specified column?
- How to add a column to a database table
- How to delete (drop) a column from a database table
- How to add an index to a database table
- How to delete (drop) an index from a database table
- How to add a foreign key to a database table
- How to delete (drop) a foreign key from a database table
- How to alter a database table
- The
\Magento\Quote\Setup\UpgradeSchema::upgrade()
method can be simplified by using themodifyColumn()
instead ofchangeColumn()
method of the\Magento\Framework\DB\Adapter\AdapterInterface
because the column need not be renamed