woocommerce/includes
James Collins 45972cf92b Fix duplicate key errors during db upgrade/install
Running phpunit tests currently outputs the following errors/warnings:

WordPress database error Duplicate key name 'session_id' for query ALTER TABLE wptests_woocommerce_sessions ADD UNIQUE KEY  session_id (session_id) made by PHPUnit_TextUI_Command::main, PHPUnit_TextUI_Command->run, PHPUnit_TextUI_Command->handleArguments, PHPUnit_TextUI_Command->handleBootstrap, PHPUnit_Util_Fileloader::checkAndLoad, PHPUnit_Util_Fileloader::load, include_once('/srv/www/woocommerce/htdocs/wp-content/plugins/woocommerce/tests/bootstrap.php'), WC_Unit_Tests_Bootstrap::instance, WC_Unit_Tests_Bootstrap->__construct, require_once('/srv/www/wordpress-develop/tests/phpunit/includes/bootstrap.php'), require_once('wp-settings.php'), do_action('setup_theme'), call_user_func_array, WC_Unit_Tests_Bootstrap->install_wc, WC_Install::install, WC_Install::create_tables, dbDelta
WordPress database error Multiple primary key defined for query ALTER TABLE wptests_woocommerce_sessions ADD PRIMARY KEY  session_key (session_key) made by PHPUnit_TextUI_Command::main, PHPUnit_TextUI_Command->run, PHPUnit_TextUI_Command->handleArguments, PHPUnit_TextUI_Command->handleBootstrap, PHPUnit_Util_Fileloader::checkAndLoad, PHPUnit_Util_Fileloader::load, include_once('/srv/www/woocommerce/htdocs/wp-content/plugins/woocommerce/tests/bootstrap.php'), WC_Unit_Tests_Bootstrap::instance, WC_Unit_Tests_Bootstrap->__construct, require_once('/srv/www/wordpress-develop/tests/phpunit/includes/bootstrap.php'), require_once('wp-settings.php'), do_action('setup_theme'), call_user_func_array, WC_Unit_Tests_Bootstrap->install_wc, WC_Install::install, WC_Install::create_tables, dbDelta

WordPress database error Duplicate key name 'session_id' for query ALTER TABLE wptests_woocommerce_sessions ADD UNIQUE KEY  session_id (session_id) made by PHPUnit_TextUI_Command::main, PHPUnit_TextUI_Command->run, PHPUnit_TextUI_TestRunner->doRun, PHPUnit_Framework_TestSuite->run, PHPUnit_Framework_TestSuite->run, PHPUnit_Framework_TestCase->run, PHPUnit_Framework_TestResult->run, PHPUnit_Framework_TestCase->runBare, PHPUnit_Framework_TestCase->runTest, ReflectionMethod->invokeArgs, WooCommerce\Tests\Util\WC_Tests_Install->test_check_version, WC_Install::check_version, WC_Install::install, WC_Install::create_tables, dbDelta
WordPress database error Multiple primary key defined for query ALTER TABLE wptests_woocommerce_sessions ADD PRIMARY KEY  session_key (session_key) made by PHPUnit_TextUI_Command::main, PHPUnit_TextUI_Command->run, PHPUnit_TextUI_TestRunner->doRun, PHPUnit_Framework_TestSuite->run, PHPUnit_Framework_TestSuite->run, PHPUnit_Framework_TestCase->run, PHPUnit_Framework_TestResult->run, PHPUnit_Framework_TestCase->runBare, PHPUnit_Framework_TestCase->runTest, ReflectionMethod->invokeArgs, WooCommerce\Tests\Util\WC_Tests_Install->test_check_version, WC_Install::check_version, WC_Install::install, WC_Install::create_tables, dbDelta
.WordPress database error Duplicate key name 'session_id' for query ALTER TABLE wptests_woocommerce_sessions ADD UNIQUE KEY  session_id (session_id) made by PHPUnit_TextUI_Command::main, PHPUnit_TextUI_Command->run, PHPUnit_TextUI_TestRunner->doRun, PHPUnit_Framework_TestSuite->run, PHPUnit_Framework_TestSuite->run, PHPUnit_Framework_TestCase->run, PHPUnit_Framework_TestResult->run, PHPUnit_Framework_TestCase->runBare, PHPUnit_Framework_TestCase->runTest, ReflectionMethod->invokeArgs, WooCommerce\Tests\Util\WC_Tests_Install->test_install, WC_Install::install, WC_Install::create_tables, dbDelta
WordPress database error Multiple primary key defined for query ALTER TABLE wptests_woocommerce_sessions ADD PRIMARY KEY  session_key (session_key) made by PHPUnit_TextUI_Command::main, PHPUnit_TextUI_Command->run, PHPUnit_TextUI_TestRunner->doRun, PHPUnit_Framework_TestSuite->run, PHPUnit_Framework_TestSuite->run, PHPUnit_Framework_TestCase->run, PHPUnit_Framework_TestResult->run, PHPUnit_Framework_TestCase->runBare, PHPUnit_Framework_TestCase->runTest, ReflectionMethod->invokeArgs, WooCommerce\Tests\Util\WC_Tests_Install->test_install, WC_Install::install, WC_Install::create_tables, dbDelta

dbDelta requires very specific syntax (as per http://codex.wordpress.org/Creating_Tables_with_Plugins).
2015-11-05 13:43:56 +08:00
..
abstracts Tweak the dockblocks and periodic-ending fix 2015-11-04 00:05:08 +05:45
admin Tweak the dockblocks and periodic-ending fix 2015-11-04 00:05:08 +05:45
api wc_transaction_query function 2015-11-04 14:11:40 +00:00
cli wc_transaction_query function 2015-11-04 14:11:40 +00:00
emails Merge remote-tracking branch 'origin/master' 2015-11-03 16:09:01 +00:00
gateways Fixed php docs standards 2015-11-03 11:31:20 -02:00
libraries Removed period for file headers 2015-11-03 11:53:50 -02:00
shipping Fixed php docs standards 2015-11-03 11:31:20 -02:00
shortcodes Removed period for file headers 2015-11-03 11:53:50 -02:00
updates Removed period for file headers 2015-11-03 11:53:50 -02:00
walkers Removed period for file headers 2015-11-03 11:53:50 -02:00
widgets Fixed php docs standards 2015-11-03 11:31:20 -02:00
class-wc-ajax.php Hide SQL errors during ajax requests 2015-11-04 13:35:32 +00:00
class-wc-api.php Removed period for file headers 2015-11-03 11:53:50 -02:00
class-wc-auth.php Removed period for file headers 2015-11-03 11:53:50 -02:00
class-wc-autoloader.php Better Documentation: Period Endings 2015-11-01 00:01:46 +05:00
class-wc-breadcrumb.php Fixed php docs standards 2015-11-03 11:31:20 -02:00
class-wc-cache-helper.php Fixed php docs standards 2015-11-03 11:31:20 -02:00
class-wc-cart.php Removed period for file headers 2015-11-03 11:53:50 -02:00
class-wc-checkout.php wc_transaction_query function 2015-11-04 14:11:40 +00:00
class-wc-cli.php Added tool subcommand. 2015-10-01 15:46:04 +02:00
class-wc-comments.php Removed period for file headers 2015-11-03 11:53:50 -02:00
class-wc-countries.php Removed period for file headers 2015-11-03 11:53:50 -02:00
class-wc-coupon.php Removed period for file headers 2015-11-03 11:53:50 -02:00
class-wc-customer.php Removed period for file headers 2015-11-03 11:53:50 -02:00
class-wc-download-handler.php Fixed php docs standards 2015-11-03 11:31:20 -02:00
class-wc-emails.php Merge remote-tracking branch 'origin/master' 2015-11-03 16:09:01 +00:00
class-wc-form-handler.php Fixed php docs standards 2015-11-03 11:31:20 -02:00
class-wc-frontend-scripts.php Improved how geolocation js check for pages where shouldn't load 2015-11-04 01:51:54 -02:00
class-wc-geo-ip.php Fixed undefined error on WC_Geo_IP 2015-11-03 13:55:26 -02:00
class-wc-geolocation.php Removed period for file headers 2015-11-03 11:53:50 -02:00
class-wc-https.php Fixed php docs standards 2015-11-03 11:31:20 -02:00
class-wc-install.php Fix duplicate key errors during db upgrade/install 2015-11-05 13:43:56 +08:00
class-wc-integrations.php Removed period for file headers 2015-11-03 11:53:50 -02:00
class-wc-logger.php Removed period for file headers 2015-11-03 11:53:50 -02:00
class-wc-order-factory.php Removed period for file headers 2015-11-03 11:53:50 -02:00
class-wc-order-item-meta.php Removed period for file headers 2015-11-03 11:53:50 -02:00
class-wc-order-refund.php Removed period for file headers 2015-11-03 11:53:50 -02:00
class-wc-order.php Removed period for file headers 2015-11-03 11:53:50 -02:00
class-wc-payment-gateways.php Removed period for file headers 2015-11-03 11:53:50 -02:00
class-wc-post-data.php Fixed php docs standards 2015-11-03 11:31:20 -02:00
class-wc-post-types.php Removed period for file headers 2015-11-03 11:53:50 -02:00
class-wc-product-external.php Fixed php docs standards 2015-11-03 11:31:20 -02:00
class-wc-product-factory.php Removed period for file headers 2015-11-03 11:53:50 -02:00
class-wc-product-grouped.php Fixed php docs standards 2015-11-03 11:31:20 -02:00
class-wc-product-simple.php Fixed php docs standards 2015-11-03 11:31:20 -02:00
class-wc-product-variable.php Fixed php docs standards 2015-11-03 11:31:20 -02:00
class-wc-product-variation.php Fixed php docs standards 2015-11-03 11:31:20 -02:00
class-wc-query.php Removed period for file headers 2015-11-03 11:53:50 -02:00
class-wc-session-handler.php Fixed php docs standards 2015-11-03 11:31:20 -02:00
class-wc-shipping-rate.php Fixed php docs standards 2015-11-03 11:31:20 -02:00
class-wc-shipping.php Removed period for file headers 2015-11-03 11:53:50 -02:00
class-wc-shortcodes.php Removed period for file headers 2015-11-03 11:53:50 -02:00
class-wc-tax.php Removed period for file headers 2015-11-03 11:53:50 -02:00
class-wc-template-loader.php Removed period for file headers 2015-11-03 11:53:50 -02:00
class-wc-tracker.php Removed period for file headers 2015-11-03 11:53:50 -02:00
class-wc-validation.php Removed period for file headers 2015-11-03 11:53:50 -02:00
class-wc-webhook.php Fixed php docs standards 2015-11-03 11:31:20 -02:00
wc-attribute-functions.php Removed period for file headers 2015-11-03 11:53:50 -02:00
wc-cart-functions.php Removed period for file headers 2015-11-03 11:53:50 -02:00
wc-conditional-functions.php Removed period for file headers 2015-11-03 11:53:50 -02:00
wc-core-functions.php wc_transaction_query function 2015-11-04 14:11:40 +00:00
wc-coupon-functions.php Removed period for file headers 2015-11-03 11:53:50 -02:00
wc-deprecated-functions.php Removed period for file headers 2015-11-03 11:53:50 -02:00
wc-formatting-functions.php Removed period for file headers 2015-11-03 11:53:50 -02:00
wc-notice-functions.php Removed period for file headers 2015-11-03 11:53:50 -02:00
wc-order-functions.php Removed period for file headers 2015-11-03 11:53:50 -02:00
wc-page-functions.php Removed period for file headers 2015-11-03 11:53:50 -02:00
wc-product-functions.php Removed period for file headers 2015-11-03 11:53:50 -02:00
wc-template-functions.php Removed period for file headers 2015-11-03 11:53:50 -02:00
wc-template-hooks.php Removed period for file headers 2015-11-03 11:53:50 -02:00
wc-term-functions.php Removed period for file headers 2015-11-03 11:53:50 -02:00
wc-user-functions.php Removed period for file headers 2015-11-03 11:53:50 -02:00
wc-webhook-functions.php Removed period for file headers 2015-11-03 11:53:50 -02:00
wc-widget-functions.php Removed period for file headers 2015-11-03 11:53:50 -02:00