Properties

$systemVersion

$systemVersion : string

システムファイルのバージョン

Type

string

$databaseVersion

$databaseVersion : string

データベースのシステムバージョン

Type

string

$unusedColumn

$unusedColumn : array

使用していないカラム

Type

array

$configServerPath

$configServerPath : string

config.server.php のパス

Type

string

$schema

$schema : \ACMS\Services\Update\Schema

データベーススキーマ

Type

\ACMS\Services\Update\Schema

Methods

setUpdateVersion()

setUpdateVersion(string  $version) 

Parameters

string $version

checkUpdates()

checkUpdates() : boolean

バージョンチェック

Throws

\RuntimeException

Returns

boolean

validate()

validate(boolean  $skipVersion = false) 

データベースのアップデートできるかチェック

Parameters

boolean $skipVersion

Throws

\RuntimeException

update()

update() 

データベースのアップデート実行

dbUpdate()

dbUpdate() 

Throws

\Exception

compareDatabase()

compareDatabase() : boolean

データベース定義と現在のデータベースに差異があるかチェック

Returns

boolean

createTables()

createTables() 

新しいテーブルの作成

updateNames()

updateNames() 

データベースのカラム名のアップデート

updateEngines()

updateEngines() 

テーブルのエンジンをアップデート

updateColumns()

updateColumns() 

データベースのカラムをアップデート

updateIndexs()

updateIndexs() 

データベースのインデックス情報をアップデート

updateConfigServerPhp()

updateConfigServerPhp() 

config.server.php のアップデート

updateSepecificRule()

updateSepecificRule() 

例外的なルールのアップデート処理

updateSequenceSystemVersion()

updateSequenceSystemVersion() 

sequenceテーブルのバージョンをアップデート