Ecodev /
my-ichtus
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace Application\Migration; |
||
| 6 | |||
| 7 | use Doctrine\DBAL\Schema\Schema; |
||
| 8 | use Doctrine\Migrations\AbstractMigration; |
||
| 9 | |||
| 10 | class Version20210810094509 extends AbstractMigration |
||
| 11 | { |
||
| 12 | public function up(Schema $schema): void |
||
| 13 | { |
||
| 14 | $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); |
||
|
0 ignored issues
–
show
|
|||
| 15 | |||
| 16 | $this->addSql('ALTER TABLE expense_claim ADD reviewer_id INT DEFAULT NULL AFTER `updater_id`'); |
||
| 17 | $this->addSql('ALTER TABLE expense_claim ADD CONSTRAINT FK_461791D70574616 FOREIGN KEY (reviewer_id) REFERENCES user (id) ON DELETE SET NULL'); |
||
| 18 | $this->addSql('CREATE INDEX IDX_461791D70574616 ON expense_claim (reviewer_id)'); |
||
| 19 | $this->addSql('ALTER TABLE expense_claim CHANGE `type` `type` ENUM(\'expenseClaim\', \'refund\', \'invoice\') DEFAULT \'expenseClaim\' NOT NULL COMMENT \'(DC2Type:ExpenseClaimType)\''); |
||
| 20 | } |
||
| 21 | } |
||
| 22 |
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.