| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public function up(Schema $schema): void |
||
| 12 | { |
||
| 13 | $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); |
||
| 14 | |||
| 15 | $this->addSql('ALTER TABLE user ADD status ENUM(\'inactive\', \'active\', \'new\', \'archived\') DEFAULT \'new\' NOT NULL COMMENT \'(DC2Type:UserStatus)\''); |
||
| 16 | $this->addSql('ALTER TABLE user CHANGE role role ENUM(\'booking_only\', \'member\', \'responsible\', \'administrator\') DEFAULT \'member\' NOT NULL COMMENT \'(DC2Type:UserRole)\''); |
||
| 17 | } |
||
| 19 |