| Total Complexity | 4 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | final class Version20210625075607 extends AbstractMigration |
||
| 14 | { |
||
| 15 | public function getDescription(): string |
||
| 16 | { |
||
| 17 | return ''; |
||
| 18 | } |
||
| 19 | |||
| 20 | public function postUp(Schema $schema): void { |
||
| 21 | $this->connection->executeQuery("UPDATE user_type SET icon = 'fas fa-user-tie' WHERE alias = 'parent'"); |
||
| 22 | $this->connection->executeQuery("UPDATE user_type SET icon = 'fas fa-chalkboard-teacher' WHERE alias = 'teacher'"); |
||
| 23 | $this->connection->executeQuery("UPDATE user_type SET icon = 'fas fa-user-graduate' WHERE alias = 'student'"); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function up(Schema $schema): void |
||
| 27 | { |
||
| 28 | // this up() migration is auto-generated, please modify it to your needs |
||
| 29 | $this->addSql('ALTER TABLE user_type ADD icon VARCHAR(255) DEFAULT NULL'); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function down(Schema $schema): void |
||
| 36 | } |
||
| 37 | } |
||
| 38 |