1 | <?php |
||
8 | class Migration extends \yii\db\Migration |
||
9 | { |
||
10 | const TAB_USERS = 'users'; |
||
11 | const TAB_PROFILES = 'profiles'; |
||
12 | |||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $tableOptions; |
||
17 | |||
18 | protected $tableGroup = 'activeuser_'; |
||
19 | |||
20 | /** |
||
21 | * @inheritdoc |
||
22 | */ |
||
23 | public function init() |
||
38 | |||
39 | protected function stderr($string) |
||
46 | |||
47 | /** |
||
48 | * Real table name builder |
||
49 | * @param string $name table name |
||
50 | * @return string |
||
51 | */ |
||
52 | protected function tn($name) |
||
56 | |||
57 | /** |
||
58 | * Foreign key relation names generator |
||
59 | * @param string $table1 first table in relation |
||
60 | * @param string $table2 second table in relation |
||
61 | * @return string |
||
62 | */ |
||
63 | protected function fk($table1, $table2) |
||
67 | |||
68 | /** |
||
69 | * Primary key names generator |
||
70 | * @param string $table table name |
||
71 | * @return string |
||
72 | */ |
||
73 | protected function pk($table) |
||
77 | |||
78 | } |
||
79 |