getTable('tax/tax_order_aggregated_created'); $installer->getConnection()->truncate($table); $installer->getConnection()->addKey($table, 'UNQ_PERIOD_STORE_CODE_ORDER_STATUS', array('period', 'store_id', 'code', 'percent', 'order_status'), 'unique' );