function commerce_reports_tax_update_7300 in Commerce Reporting 7.3
Same name and namespace in other branches
- 7.4 modules/tax/commerce_reports_tax.install \commerce_reports_tax_update_7300()
Changes to the database structure.
File
- modules/
tax/ commerce_reports_tax.install, line 56 - Install, update, and uninstall functions for the commerce_reports_tax module.
Code
function commerce_reports_tax_update_7300(&$sandbox) {
// Delete all tables that existed in the alpha4 release.
$previous_tables = array(
'commerce_reports_tax',
'commerce_reports_tax_rate_orders',
'commerce_reports_tax_rate_aggregate',
'commerce_reports_tax_rate',
);
foreach ($previous_tables as $table) {
if (db_table_exists($table)) {
db_drop_table($table);
}
}
// Install the new database schema.
drupal_install_schema('commerce_reports_tax');
}