1 | <?php |
||
27 | class MigrateController extends BaseMigrateController |
||
28 | { |
||
29 | /** |
||
30 | * @var Connection The database connection |
||
31 | */ |
||
32 | public $db = 'db'; |
||
33 | |||
34 | /** |
||
35 | * @inheritdoc |
||
36 | */ |
||
37 | public $migrationTable = '{{%auth_migration}}'; |
||
38 | |||
39 | /** |
||
40 | * @inheritdoc |
||
41 | */ |
||
42 | public $migrationPath = '@app/rbac/migrations'; |
||
43 | |||
44 | /** |
||
45 | * @inheritdoc |
||
46 | */ |
||
47 | public $templateFile = '@vendor/yii2mod/yii2-rbac/views/migration.php'; |
||
48 | |||
49 | /** |
||
50 | * @inheritdoc |
||
51 | */ |
||
52 | public function init() |
||
58 | |||
59 | /** |
||
60 | * @return Connection |
||
61 | */ |
||
62 | public function getDb(): Connection |
||
66 | |||
67 | /** |
||
68 | * @inheritdoc |
||
69 | */ |
||
70 | protected function getMigrationHistory($limit) |
||
88 | |||
89 | /** |
||
90 | * @inheritdoc |
||
91 | */ |
||
92 | protected function addMigrationHistory($version) |
||
99 | |||
100 | /** |
||
101 | * @inheritdoc |
||
102 | */ |
||
103 | protected function removeMigrationHistory($version) |
||
109 | |||
110 | /** |
||
111 | * Creates the migration history table. |
||
112 | */ |
||
113 | protected function createMigrationHistoryTable() |
||
131 | } |
||
132 |