| Total Complexity | 3 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | final class Version20250616220500 extends AbstractMigrationChamilo |
||
| 13 | { |
||
| 14 | public function getDescription(): string |
||
| 15 | { |
||
| 16 | return 'Migrate timezone from extra_field_values to user.timezone and remove the extra_field.'; |
||
| 17 | } |
||
| 18 | |||
| 19 | public function up(Schema $schema): void |
||
| 47 | DELETE FROM extra_field |
||
| 48 | WHERE variable = 'timezone' |
||
| 49 | AND item_type = 1 |
||
| 50 | "); |
||
| 51 | } |
||
| 52 | |||
| 53 | public function down(Schema $schema): void |
||
| 55 | // No rollback: the legacy extra_field will not be recreated |
||
| 56 | } |
||
| 58 |