| Conditions | 2 |
| Paths | 2 |
| Total Lines | 21 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | public function up(Schema $schema): void |
||
| 13 | { |
||
| 14 | |||
| 15 | // user.id => bookable_tag.id |
||
| 16 | $map = [ |
||
| 17 | '11055' => '6004', |
||
| 18 | '11056' => '6003', |
||
| 19 | '11057' => '6001', |
||
| 20 | '11058' => '6000', |
||
| 21 | '11059' => '6005', |
||
| 22 | '11060' => '6006', |
||
| 23 | '11061' => '6043', |
||
| 24 | '11062' => '6038', |
||
| 25 | ]; |
||
| 26 | |||
| 27 | foreach ($map as $userId => $bookableTagId) { |
||
| 28 | $this->addSql( |
||
| 29 | "UPDATE bookable |
||
| 30 | INNER JOIN bookable_tag_bookable btb ON bookable.id = btb.bookable_id |
||
| 31 | SET bookable.owner_id = {$userId} |
||
| 32 | WHERE btb.bookable_tag_id = {$bookableTagId}", |
||
| 33 | ); |
||
| 38 |