| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 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('CREATE TABLE project__details (project_id INT NOT NULL, need_description LONGTEXT NOT NULL, target_description LONGTEXT NOT NULL, goal_description LONGTEXT NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, PRIMARY KEY(project_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB'); |
||
| 19 | $this->addSql('ALTER TABLE project__details ADD CONSTRAINT FK_3B20612C166D1F9C FOREIGN KEY (project_id) REFERENCES developtech_agility__projects (id)'); |
||
| 20 | } |
||
| 30 |