Skip to:
Content

BuddyPress.org

Changeset 14100


Ignore:
Timestamp:
02/16/2025 04:13:47 PM (10 months ago)
Author:
espellcaste
Message:

MySQL: fix an error when creating the invitations API tables.

MySQL 8+ introduced a change where it no longer accepts a string as the default value for the TEXT data type. A literal default needs to be specified as expression instead.

To avoid breaking back-compat, we will default the data type to NULL, similar to how we do it in similar schema deta types in BuddyPress.

Fixes #9261
See https://github.com/buddypress/wp-cli-buddypress/pull/113

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/admin/bp-core-admin-schema.php

    r14077 r14100  
    576576        secondary_item_id bigint(20) DEFAULT NULL,
    577577        type varchar(12) NOT NULL DEFAULT 'invite',
    578         content longtext DEFAULT '',
     578        content longtext DEFAULT NULL,
    579579        date_modified datetime NOT NULL,
    580580        invite_sent tinyint(1) NOT NULL DEFAULT '0',
Note: See TracChangeset for help on using the changeset viewer.