Commit af7618f1 authored by Michael Iseard's avatar Michael Iseard
Browse files

Fix business_name not allowed to be null

parent 55aacfa4
......@@ -107,6 +107,15 @@ class ActivatorService {
}
if ( version_compare( $old_version, '2.3.7', '<' ) ) {
// Change business_name to allow NULL
global $wpdb;
$donor_table = DonorEntity::get_table_name();
$wpdb->query( "ALTER TABLE $donor_table MODIFY `business_name` VARCHAR(255)" );
}
}
/**
......@@ -127,7 +136,7 @@ class ActivatorService {
last_updated datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
email VARCHAR(320) NOT NULL,
name VARCHAR(255) NOT NULL,
business_name VARCHAR(255) NOT NULL,
business_name VARCHAR(255),
street VARCHAR(255),
postcode VARCHAR(255),
city VARCHAR(255),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment