PHP code example of gozoro / yii2-sql-migrations
1. Go to this page and download the library: Download gozoro/yii2-sql-migrations library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
gozoro / yii2-sql-migrations example snippets
...
$config = [
...
'components' => [
...
],
'controllerMap' => [
'migrate' => [
'class' => 'gozoro\sql_migrations\MigrateController',
//'migrationTable' => 'other_migration_table',
//'migrationPath' => '@app/other_migration_path',
//'db' => 'other_database_name'
],
],
...
];
return $config