Skip to content
This repository
Browse code

BUGFIX: #7019 Fix SQL error when building database after adding a Mem…

…ber DataExtension in non-dev mode
  • Loading branch information...
commit 86ef281d8f2929a1d8114b6fc7975d6db56fa724 1 parent b5d4234
Andrew O'Neil authored March 21, 2012

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  security/Security.php
4  security/Security.php
@@ -809,6 +809,10 @@ public static function database_is_ready() {
809 809
 		foreach($requiredTables as $table) {
810 810
 			// if any of the tables aren't created in the database
811 811
 			if(!ClassInfo::hasTable($table)) return false;
  812
+
  813
+			// HACK: DataExtensions aren't applied until a class is instantiated for
  814
+			// the first time, so create an instance here.
  815
+			singleton($table);
812 816
 		
813 817
 			// if any of the tables don't have all fields mapped as table columns
814 818
 			$dbFields = DB::fieldList($table);

0 notes on commit 86ef281

Please sign in to comment.
Something went wrong with that request. Please try again.