1 | <?php |
||
12 | class MigrationsConfig extends InjectableConfig |
||
13 | { |
||
14 | /** |
||
15 | * Configuration section. |
||
16 | */ |
||
17 | const CONFIG = 'migrations'; |
||
18 | |||
19 | /** |
||
20 | * @var array |
||
21 | */ |
||
22 | protected $config = [ |
||
23 | 'directory' => '', |
||
24 | 'database' => 'default', |
||
25 | 'table' => 'migrations', |
||
26 | 'safe' => false |
||
27 | ]; |
||
28 | |||
29 | /** |
||
30 | * Migrations directory. |
||
31 | * |
||
32 | * @return string |
||
33 | */ |
||
34 | public function getDirectory(): string |
||
38 | |||
39 | /** |
||
40 | * Database to store information about executed migration. |
||
41 | * |
||
42 | * @return string |
||
43 | */ |
||
44 | public function getDatabase(): string |
||
48 | |||
49 | /** |
||
50 | * Table to store list of executed migrations. |
||
51 | * |
||
52 | * @return string |
||
53 | */ |
||
54 | public function getTable(): string |
||
58 | |||
59 | /** |
||
60 | * Is it safe to run migration without user confirmation? Attention, this option does not |
||
61 | * used in component directly and left for component consumers. |
||
62 | * |
||
63 | * @return bool |
||
64 | */ |
||
65 | public function isSafe(): bool |
||
69 | } |