Download the PHP package andkon/yii2-migrate without Composer
On this page you can find all versions of the php package andkon/yii2-migrate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download andkon/yii2-migrate
More information about andkon/yii2-migrate
Files in andkon/yii2-migrate
Download andkon/yii2-migrate
More information about andkon/yii2-migrate
Files in andkon/yii2-migrate
Vendor andkon
Package yii2-migrate
Short Description Class to simplify the writing of migrations
License proprietary
Package yii2-migrate
Short Description Class to simplify the writing of migrations
License proprietary
Please rate this library. Is it a good library?
Informations about the package yii2-migrate
Add-on over standard migrations, which automatically creates migration rollback functions.
Надстройка над стандартными миграциями, позволяющая автоматически создавать функции отката миграции.
uses:
class m000000_000000_users extends \andkon\migrate\Migration
{
public function setTables()
{
return [
'users' => [
'id' => $this->primaryKey(),
'company_id' => $this->integer()->notNull(),
'position_id' => $this->integer(),
'department_id' => $this->integer(),
'login' => $this->string(255)->notNull(),
'password' => $this->string(255),
'password_salt' => $this->string(255),
'first_name' => $this->string(255),
'middle_name' => $this->string(255),
]
];
}
public function setForeignKeys()
{
return [
// user
[
'user' => 'company_id',
'company' => 'id',
],
[
'user' => 'position_id',
'position' => 'id',
'delete' => 'RESTRICT',
],
];
}
}
All versions of yii2-migrate with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4.0
The package andkon/yii2-migrate contains the following files
Loading the files please wait ....