Skip to content

Commit

Permalink
Merge pull request #92 from spacedmonkey/patch-1
Browse files Browse the repository at this point in the history
Change check_table
  • Loading branch information
roborourke authored Jun 13, 2017
2 parents 671f147 + f39bf13 commit c3ec0d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mercator.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ function check_domain_mapping( $site, $domain ) {
function check_table() {
global $wpdb;

if ( get_option( 'mercator.db.version' ) === VERSION ) {
if ( get_site_option( 'mercator.db.version' ) === VERSION ) {
return 'exists';
}

Expand Down Expand Up @@ -230,7 +230,7 @@ function check_table() {
maybe_convert_table_to_utf8mb4( $wpdb->dmtable );

// Update db version option.
update_option( 'mercator.db.version', VERSION );
update_site_option( 'mercator.db.version', VERSION );

return 'created';
}
Expand Down

0 comments on commit c3ec0d2

Please sign in to comment.