| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | public function up(Schema $schema): void |
||
| 13 | { |
||
| 14 | $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); |
||
|
|
|||
| 15 | |||
| 16 | $this->addSql('ALTER TABLE transaction ADD transaction_date DATETIME NOT NULL'); |
||
| 17 | $this->addSql('UPDATE transaction SET transaction_date = transactionDate'); |
||
| 18 | $this->addSql('ALTER TABLE transaction DROP transactionDate'); |
||
| 19 | |||
| 20 | $this->addSql('ALTER TABLE transaction_line ADD transaction_date DATETIME NOT NULL'); |
||
| 21 | $this->addSql('UPDATE transaction_line SET transaction_date = transactionDate'); |
||
| 22 | $this->addSql('ALTER TABLE transaction_line DROP transactionDate'); |
||
| 23 | } |
||
| 25 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.