Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
20 | public function up(Schema $schema) : void |
||
21 | { |
||
22 | // this up() migration is auto-generated, please modify it to your needs |
||
23 | $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); |
||
24 | |||
25 | $this->addSql( |
||
26 | <<<SQL |
||
27 | UPDATE roles |
||
28 | INNER JOIN performances ON performances.id = roles.performance_id |
||
29 | SET |
||
30 | roles.deletedAt = performances.deletedAt, |
||
31 | roles.deletedBy = 'migration20200131091633' |
||
32 | WHERE |
||
33 | performances.deletedAt IS NOT NULL |
||
34 | AND roles.deletedAt IS NUll |
||
35 | ; |
||
36 | SQL |
||
37 | ); |
||
38 | } |
||
39 | |||
43 |