Skip to content

Commit

Permalink
Use CREATE TABLE IF NOT EXISTS so to avoid warnings if the table does…
Browse files Browse the repository at this point in the history
… already exist
  • Loading branch information
willmot committed Feb 6, 2014
1 parent a7fb00b commit 7026da0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hm-core.termmeta.php
Expand Up @@ -33,7 +33,7 @@ function hm_create_term_meta_table() {
return;

$wpdb->query( "
CREATE TABLE `{$wpdb->prefix}termmeta` (
CREATE TABLE IF NOT EXISTS `{$wpdb->prefix}termmeta` (
`meta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`term_id` bigint(20) unsigned NOT NULL DEFAULT '0',
`meta_key` varchar(255) DEFAULT NULL,
Expand Down

0 comments on commit 7026da0

Please sign in to comment.