lib/private/legacy/db.php
/**
	 * update the database schema
	 * @param string $file file to read structure from
	 * @throws Exception
	 * @return string|boolean
	 */
update the database schema
@param string $file file to read structure from
@throws Exception
@return string|boolean
update the database schema @param string $file file to read structure from @throws Exception @return string|boolean
public static function updateDbFromStructure($file) {
		$schemaManager = self::getMDB2SchemaManager();
		try {
			$result = $schemaManager->updateDbFromStructure($file);
		} catch (Exception $e) {
			\OCP\Util::writeLog('core', 'Failed to update database structure ('.$e.')', \OCP\Util::FATAL);
			throw $e;
		}
		return $result;
	}
public static function updateDbFromStructure ( $ file ) { $ schemaManager = self :: getMDB2SchemaManager ( ) ; try { $ result = $ schemaManager -> updateDbFromStructure ( $ file ) ; } catch ( Exception $ e ) { \ OCP \ Util :: writeLog ( 'core' , 'Failed to update database structure (' . $ e . ')' , \ OCP \ Util :: FATAL ) ; throw $ e ; } return $ result ; }
update the database schema
 @param string $file file to read structure from
 @throws Exception
 @return string|boolean
update the database schema @param string $file file to read structure from @throws Exception @return string|boolean