Свойство | Тип | Описание | |
---|---|---|---|
$commonTables | array | List of the tables that are commonly found in the dump schema and the current schema | |
$currentSchema | array | Array of \Cake\Database\Schema\Table objects from the current state of the database | |
$dumpSchema | array | Array of \Cake\Database\Schema\Table objects from the dump file which represents the state of the database after the last migrate / rollback command | |
$migratedItems | array | Array of migrations that have already been migrated | |
$migrationsFiles | array | Migration files that are stored in the self::migrationsPath | |
$migrationsPath | string | Path to the migration files | |
$phinxTable | string | Name of the phinx log table | |
$tables | array | List the tables the connection currently holds | |
$templateData | {@inheritDoc} |
Метод | Описание | |
---|---|---|
bake ( $name ) | {@inheritDoc} | |
getCollection ( string $connection ) : Cake\Database\Schema\Collection | Get a collection from a database. | |
getOptionParser ( ) : Cake\Console\ConsoleOptionParser | Gets the option parser instance and configures it. | |
setup ( ) : void | Sets up everything the baking process needs | |
template ( ) | {@inheritDoc} | |
templateData ( ) : array | Process and prepare the data needed for the bake template to be generated. |
Метод | Описание | |
---|---|---|
bakeSnapshot ( $name ) : integer | Fallback method called to bake a snapshot when the phinx log history is empty and there are no migration files. | |
calculateDiff ( ) : void | This methods runs the various methods needed to calculate a diff between the current state of the database and the schema dump file. | |
checkSync ( ) : boolean | Checks that the migrations history is in sync with the migrations files | |
getColumns ( ) : void | Calculate the diff between columns in existing tables. | |
getConstraints ( ) : void | Calculate the diff between contraints in existing tables. | |
getCurrentSchema ( ) : array | Reflects the current database schema. | |
getDumpSchema ( ) : array | Fetch the correct schema dump based on the arguments and options passed to the shell call and returns it as an array | |
getIndexes ( ) : void | Calculate the diff between indexes in existing tables. | |
getTables ( ) : void | Calculate the diff between the current state of the database and the schema dump by returning an array containing the full \Cake\Database\Schema\Table definitions of tables to be created and removed in the diff file. |
protected bakeSnapshot ( $name ) : integer | ||
Результат | integer | Value of the snapshot baking dispatch process |
protected calculateDiff ( ) : void | ||
Результат | void |
public getCollection ( string $connection ) : Cake\Database\Schema\Collection | ||
$connection | string | Database connection name. |
Результат | Cake\Database\Schema\Collection |
protected getColumns ( ) : void | ||
Результат | void |
protected getConstraints ( ) : void | ||
Результат | void |
protected getCurrentSchema ( ) : array | ||
Результат | array | Full database schema : the key is the name of the table and the value is an instance of \Cake\Database\Schema\Table. |
protected getDumpSchema ( ) : array | ||
Результат | array | Full database schema : the key is the name of the table and the value is an instance of \Cake\Database\Schema\Table. |
protected getIndexes ( ) : void | ||
Результат | void |
public getOptionParser ( ) : Cake\Console\ConsoleOptionParser | ||
Результат | Cake\Console\ConsoleOptionParser |
public templateData ( ) : array | ||
Результат | array |
protected array $commonTables | ||
Результат | array |
protected array $currentSchema | ||
Результат | array |
protected array $dumpSchema | ||
Результат | array |
protected array $migratedItems | ||
Результат | array |
protected array $migrationsFiles | ||
Результат | array |
protected string $migrationsPath | ||
Результат | string |
protected string $phinxTable | ||
Результат | string |
protected array $tables | ||
Результат | array |