Total Complexity | 2 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class ConvertDatetimeToTimetamp extends Migration |
||
8 | { |
||
9 | /** @var array[] Fields that require DATETIME to TIMESTAMP conversion. */ |
||
10 | private $tableColumns = [ |
||
11 | 'callback_query' => ['created_at'], |
||
12 | 'chosen_inline_result' => ['created_at'], |
||
13 | 'edited_message' => ['edit_date'], |
||
14 | 'inline_query' => ['created_at'], |
||
15 | 'message' => ['date', 'forward_date'], |
||
16 | 'request_limiter' => ['created_at'], |
||
17 | ]; |
||
18 | |||
19 | public function up(): void |
||
22 | } |
||
23 | |||
24 | public function down(): void |
||
29 |