1 | <?php |
||
20 | class AlterEnvironments extends Migration |
||
21 | { |
||
22 | /** |
||
23 | * The state column name |
||
24 | */ |
||
25 | const COLUMN_NAME = 'environment'; |
||
26 | |||
27 | /** |
||
28 | * @inheritdoc |
||
29 | * @throws \Throwable |
||
30 | * @throws \yii\db\StaleObjectException |
||
31 | */ |
||
32 | public function safeUp() |
||
55 | |||
56 | /** |
||
57 | * @param array $environments |
||
58 | * @throws \Throwable |
||
59 | * @throws \yii\db\StaleObjectException |
||
60 | */ |
||
61 | protected function deleteOldEnvironments(array $environments) |
||
66 | |||
67 | /** |
||
68 | * @param array $environments |
||
69 | * @throws \Throwable |
||
70 | * @throws \yii\db\StaleObjectException |
||
71 | */ |
||
72 | private function deleteOldTokenEnvironments(array $environments) |
||
86 | |||
87 | /** |
||
88 | * @param array $environments |
||
89 | * @throws \Throwable |
||
90 | * @throws \yii\db\StaleObjectException |
||
91 | */ |
||
92 | private function deleteOldProviderEnvironments(array $environments) |
||
106 | |||
107 | /** |
||
108 | * @inheritdoc |
||
109 | */ |
||
110 | public function safeDown() |
||
114 | } |
||
115 |