Skip to content

Commit

Permalink
Fixed the woocommerce_api_keys name
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiosanches committed May 15, 2015
1 parent c76c965 commit 41e8f69
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion includes/class-wc-install.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ private static function get_schema() {
}

return "
CREATE TABLE {$wpdb->prefix}woocommerce_api_apps (
CREATE TABLE {$wpdb->prefix}woocommerce_api_keys (
app_id bigint(20) NOT NULL auto_increment,
user_id bigint(20) NOT NULL,
description longtext NULL,
Expand Down
2 changes: 1 addition & 1 deletion includes/updates/woocommerce-update-2.4.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
// Create new apps
foreach ( $apps_keys as $app ) {
$wpdb->insert(
$wpdb->prefix . 'woocommerce_api_apps',
$wpdb->prefix . 'woocommerce_api_keys',
$app,
array(
'%d',
Expand Down
2 changes: 1 addition & 1 deletion uninstall.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
wp_trash_post( get_option( 'woocommerce_logout_page_id' ) );

// Tables
$wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}woocommerce_api_apps" );
$wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}woocommerce_api_keys" );
$wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}woocommerce_attribute_taxonomies" );
$wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}woocommerce_downloadable_product_permissions" );
$wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}woocommerce_termmeta" );
Expand Down

0 comments on commit 41e8f69

Please sign in to comment.