Database schema upgrade

- Magento 2

Magento 2 Development

The following Magento 2 tutorial will help you upgrade script for a new version of your extension by adding new tables and columns to a database. 

1. Go to the Setup folder and create a new UpgradeSchema.php file:

2. In module.xml change setup_version

3. Open CLI and run the following command:

Source (Magento Stackexchange Question) (Praful Rajput)

More Magento 2 tips