Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
trigger_rollback.php
Go to the documentation of this file.
1 <?php
9 
10 $setup = Bootstrap::getObjectManager()->get(Setup::class);
11 $tableName = $setup->getTable('test_table_with_custom_trigger');
12 $setup->getConnection()->dropTrigger('test_custom_trigger');
13 $setup->getConnection()->dropTable($tableName);
$tableName