| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 13 | public function up(Schema $schema) : void |
||
| 14 | { |
||
| 15 | // this up() migration is auto-generated, please modify it to your needs |
||
| 16 | $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); |
||
| 17 | |||
| 18 | $this->addSql('ALTER TABLE sylius_customer ADD enroller_id INT DEFAULT NULL'); |
||
| 19 | $this->addSql('ALTER TABLE sylius_customer ADD CONSTRAINT FK_7E82D5E6687083A9 FOREIGN KEY (enroller_id) REFERENCES sylius_customer (id)'); |
||
| 20 | $this->addSql('CREATE INDEX IDX_7E82D5E6687083A9 ON sylius_customer (enroller_id)'); |
||
| 21 | } |
||
| 33 |