Skip to content

Commit f9ec707

Browse files
authored
Update the schema update to account for the changed table.
1 parent 1a3edad commit f9ec707

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/wp-admin/includes/upgrade.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3741,7 +3741,7 @@ function pre_schema_upgrade() {
37413741
}
37423742

37433743
// Multisite schema upgrades.
3744-
if ( $wp_current_db_version < 60497 && is_multisite() && wp_should_upgrade_global_tables() ) {
3744+
if ( $wp_current_db_version < 60498 && is_multisite() && wp_should_upgrade_global_tables() ) { // TODO: Update with commit.
37453745

37463746
// Upgrade versions prior to 3.7.
37473747
if ( $wp_current_db_version < 25179 ) {
@@ -3769,6 +3769,9 @@ function pre_schema_upgrade() {
37693769
$wpdb->query( "ALTER TABLE $wpdb->sitemeta MODIFY site_id bigint(20) unsigned NOT NULL default 0" );
37703770
$wpdb->query( "ALTER TABLE $wpdb->signups MODIFY signup_id bigint(20) unsigned NOT NULL auto_increment" );
37713771
}
3772+
if ( $wp_current_db_version < 60498 ) { // TODO: Update with commit.
3773+
$wpdb->query( "ALTER TABLE $wpdb->registration_log MODIFY IP varchar(39) NOT NULL default ''" );
3774+
}
37723775
}
37733776

37743777
// Upgrade versions prior to 4.2.

0 commit comments

Comments
 (0)