mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX: #7019 Fix SQL error when building database after adding a Member DataExtension in non-dev mode
This commit is contained in:
parent
b5d4234dfd
commit
86ef281d8f
@ -809,6 +809,10 @@ class Security extends Controller {
|
|||||||
foreach($requiredTables as $table) {
|
foreach($requiredTables as $table) {
|
||||||
// if any of the tables aren't created in the database
|
// if any of the tables aren't created in the database
|
||||||
if(!ClassInfo::hasTable($table)) return false;
|
if(!ClassInfo::hasTable($table)) return false;
|
||||||
|
|
||||||
|
// HACK: DataExtensions aren't applied until a class is instantiated for
|
||||||
|
// the first time, so create an instance here.
|
||||||
|
singleton($table);
|
||||||
|
|
||||||
// if any of the tables don't have all fields mapped as table columns
|
// if any of the tables don't have all fields mapped as table columns
|
||||||
$dbFields = DB::fieldList($table);
|
$dbFields = DB::fieldList($table);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user