| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 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->addSql('ALTER TABLE departments ADD references_export_prefix VARCHAR(255) DEFAULT NULL, ADD skip_blocked_validation_tokens LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\''); |
||
| 24 | $this->addSql('ALTER TABLE payment_orders ADD booking_date DATETIME DEFAULT NULL, ADD references_exported TINYINT(1) NOT NULL'); |
||
| 25 | |||
| 26 | //Normally setting the factually correct field to 1 should be the last action done to a payment order |
||
| 27 | //This way we can determine a booking date for old payment orders. |
||
| 28 | $this->addSql('UPDATE payment_orders SET booking_date = last_modified WHERE factually_correct = 1 AND exported = 1;'); |
||
| 29 | } |
||
| 38 |