updated plugin Easy Digital Downloads version 3.1.1.2

This commit is contained in:
2023-03-17 22:34:04 +00:00
committed by Gitium
parent e8a66564bd
commit 19e086d1c4
647 changed files with 20986 additions and 27305 deletions

View File

@ -54,8 +54,14 @@ class Remove_Legacy_Data extends Base {
if ( 1 === $this->step ) {
// Drop customer `payment_ids` column. It's no longer needed.
$customer_table = edd_get_component_interface( 'customer', 'table' );
if ( $customer_table instanceof \EDD\Database\Tables\Customers && $customer_table->column_exists( 'payment_ids' ) ) {
$this->get_db()->query( "ALTER TABLE {$this->get_db()->edd_customers} DROP `payment_ids`" );
if ( $customer_table instanceof \EDD\Database\Tables\Customers ) {
if ( $customer_table->column_exists( 'payment_ids' ) ) {
$this->get_db()->query( "ALTER TABLE {$this->get_db()->edd_customers} DROP `payment_ids`" );
}
if ( $customer_table->column_exists( 'notes' ) ) {
$this->get_db()->query( "ALTER TABLE {$this->get_db()->edd_customers} DROP `notes`" );
}
}
// Delete unneeded meta.