Running task 'Upgrade SiteTree Permissions Schema'...

GET /dev/tasks/UpgradeSiteTreePermissionSchemaTask

[User Error] Couldn't run query: UPDATE "SiteTree" SET "CanViewType" = 'Viewers'; No database selected

GET /dev/tasks/UpgradeSiteTreePermissionSchemaTask

Line 562 in /home/modern_marianas/kegare.modernmarianas.com/sapphire/model/MySQLDatabase.php

Source

553 	}
554 
555 	function databaseError($msg, $errorLevel = E_USER_ERROR) {
556 		// try to extract and format query
557 		if(preg_match('/Couldn\'t run query: ([^\|]*)\|\s*(.*)/', $msg, $matches)) {
558 			$formatter = new SQLFormatter();
559 			$msg = "Couldn't run query: \n" . $formatter->formatPlain($matches[1]) . "\n\n" . $matches[2];
560 		}
561 
562 		user_error($msg, $errorLevel);
563 	}
564 
565 	/**
566 	 * Return a boolean type-formatted string
567 	 *
568 	 * @param array $values Contains a tokenised list of info about this data type

Trace