Class Upgrades
Handles the upgrade process to bring the current database up to the requirements of the installed files.
Copyright: Copyright (c) 2010, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at components/upgrades/upgrades.php
Methods summary
public
|
|
public
|
#
start( mixed $from, mixed $to )
Starts the upgrade process, befor beginning invokes Upgrades::check() to ensure that all of the files required are present. |
public
|
#
processSql( string $file, callable $callback = null )
Processes the given SQL file, executes the given callback after each query by passing the current query number being executed and the total number of queries to be executed for that file. |
Methods inherited from AppModel
_()
,
__construct()
,
boolToInt()
,
currencyToDecimal()
,
dateToUtc()
,
errors()
,
getPerPage()
,
ifSet()
,
loadCrypto()
,
setDefaultIfEmpty()
,
setPerPage()
,
setRulesIfSet()
,
strToBool()
,
systemDecrypt()
,
systemEncrypt()
,
systemHash()
,
truncateDecimal()
,
validateExists()
,
validateStateCountry()
Methods inherited from Model
affectedRows()
,
begin()
,
commit()
,
getConnection()
,
lastInsertId()
,
makeDSN()
,
prepare()
,
query()
,
rollBack()
,
setAttribute()
,
setFetchMode()