Skip to content

Commit

Permalink
PHP Warning from database setup script on existing sites
Browse files Browse the repository at this point in the history
Fixes #1344
  • Loading branch information
agapetry committed Jan 17, 2025
1 parent 6fada35 commit 6cd9042
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/PublishPress/Permissions/DB/DatabaseSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private static function updateSchema($last_db_ver = false)
";

// For existing installations, don't risk existing data violating unique key requirement
$unique = ($last_db_ver && defined('PRESSPERMIT_LEGACY_DB_SETUP')) ? '' : 'UNIQUE ';
$unique = ($last_db_ver || defined('PRESSPERMIT_LEGACY_DB_SETUP')) ? '' : 'UNIQUE ';

// User2Group table def
$tabledefs .= "CREATE TABLE $wpdb->pp_group_members (
Expand Down

0 comments on commit 6cd9042

Please sign in to comment.