Engine
in package
Table of Contents
Properties
- $databaseVersion : string
- データベースのシステムバージョン
- $systemVersion : string
- システムファイルのバージョン
- $configServerPath : string
- config.server.php のパス
- $createdTables : array<string|int, mixed>
- 新規追加されたテーブル
- $logger : LoggerInterface
- $schema : Schema
- データベーススキーマ
- $unusedColumn : array<string|int, mixed>
- 使用していないカラム
Methods
- __construct() : mixed
- Constructor
- checkUpdates() : bool
- バージョンチェック
- compareDatabase() : bool
- データベース定義と現在のデータベースに差異があるかチェック
- dbUpdate() : mixed
- setUpdateVersion() : mixed
- update() : mixed
- データベースのアップデート実行
- validate() : mixed
- データベースのアップデートできるかチェック
- createTables() : mixed
- 新しいテーブルの作成
- updateColumns() : mixed
- データベースのカラムをアップデート
- updateConfigServerPhp() : mixed
- config.server.php のアップデート
- updateEngines() : mixed
- テーブルのエンジンをアップデート
- updateIndexs() : mixed
- データベースのインデックス情報をアップデート
- updateNames() : mixed
- データベースのカラム名のアップデート
- updateSepecificRule() : mixed
- 例外的なルールのアップデート処理
- updateSequenceSystemVersion() : mixed
- sequenceテーブルのバージョンをアップデート
Properties
$databaseVersion
データベースのシステムバージョン
public
string
$databaseVersion
$systemVersion
システムファイルのバージョン
public
string
$systemVersion
$configServerPath
config.server.php のパス
protected
string
$configServerPath
$createdTables
新規追加されたテーブル
protected
array<string|int, mixed>
$createdTables
= []
$logger
protected
LoggerInterface
$logger
$schema
データベーススキーマ
protected
Schema
$schema
$unusedColumn
使用していないカラム
protected
array<string|int, mixed>
$unusedColumn
Methods
__construct()
Constructor
public
__construct(LoggerInterface $logger) : mixed
Parameters
- $logger : LoggerInterface
checkUpdates()
バージョンチェック
public
checkUpdates() : bool
Tags
Return values
boolcompareDatabase()
データベース定義と現在のデータベースに差異があるかチェック
public
compareDatabase() : bool
Return values
booldbUpdate()
public
dbUpdate() : mixed
Tags
setUpdateVersion()
public
setUpdateVersion(string $version) : mixed
Parameters
- $version : string
update()
データベースのアップデート実行
public
update() : mixed
validate()
データベースのアップデートできるかチェック
public
validate([bool $skipVersion = false ]) : mixed
Parameters
- $skipVersion : bool = false
Tags
createTables()
新しいテーブルの作成
protected
createTables() : mixed
updateColumns()
データベースのカラムをアップデート
protected
updateColumns() : mixed
updateConfigServerPhp()
config.server.php のアップデート
protected
updateConfigServerPhp() : mixed
updateEngines()
テーブルのエンジンをアップデート
protected
updateEngines() : mixed
updateIndexs()
データベースのインデックス情報をアップデート
protected
updateIndexs() : mixed
updateNames()
データベースのカラム名のアップデート
protected
updateNames() : mixed
updateSepecificRule()
例外的なルールのアップデート処理
protected
updateSepecificRule() : mixed
updateSequenceSystemVersion()
sequenceテーブルのバージョンをアップデート
protected
updateSequenceSystemVersion() : mixed