mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #253 from ajoneil/7019-member-dataextension-build-error
BUGFIX: #7019 Fix SQL error when building database after adding a Member...
This commit is contained in:
commit
673500c6b7
@ -810,6 +810,10 @@ class Security extends Controller {
|
||||
// if any of the tables aren't created in the database
|
||||
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
|
||||
$dbFields = DB::fieldList($table);
|
||||
if(!$dbFields) return false;
|
||||
|
Loading…
Reference in New Issue
Block a user