-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMigrateController.php
More file actions
56 lines (51 loc) · 1.15 KB
/
MigrateController.php
File metadata and controls
56 lines (51 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
namespace svbackend\console;
use yii\console\controllers\MigrateController as BaseMigrateController;
/**
* MigrateController
* Use at application config
*
* ```
* 'controlerMap' => [
* 'migrate' => [
* 'class' => 'dee\console\MigrateController',
* 'migrationLookup' => [
* '@yii/rbac/migrations',
* '@mdm/autonumber/migrations',
* '@mdm/upload/migrations',
* ]
* ]
* ]
* ```
* Or simply add `migrationLookup` to application params
* ```
* // file config/params.php
*
* return [
* 'dee.migration.path' => [
* '@yii/rbac/migrations',
* '@mdm/autonumber/migrations',
* '@mdm/upload/migrations',
* ]
* ];
* ```
*
* @author Misbahul D Munir <misbahuldmunir@gmail.com>
* @since 1.0
*/
class MigrateController extends BaseMigrateController
{
use MigrateTrait;
/**
* @var string
*/
public $extraFile = '@runtime/dee-migration/path.php';
/**
* @var string
*/
protected $lookupParamName = 'dee.migration.path';
/**
* @var string
*/
protected $nsParamName = 'dee.migration.ns';
}