Total Complexity | 9 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | final class Version20240114212100 extends AbstractMigrationChamilo |
||
11 | { |
||
12 | public function getDescription(): string |
||
15 | } |
||
16 | |||
17 | public function up(Schema $schema): void |
||
18 | { |
||
19 | |||
20 | if ($schema->hasTable('contact_form_contact_category')) { |
||
21 | $this->addSql( |
||
22 | 'ALTER TABLE contact_form_contact_category CHANGE name title VARCHAR(255) NOT NULL' |
||
23 | ); |
||
24 | } |
||
25 | |||
26 | if ($schema->hasTable('fos_group')) { |
||
27 | $this->addSql( |
||
28 | 'ALTER TABLE fos_group CHANGE name title VARCHAR(255) NOT NULL' |
||
29 | ); |
||
30 | } |
||
31 | |||
32 | if ($schema->hasTable('resource_file')) { |
||
33 | $this->addSql( |
||
34 | 'ALTER TABLE fos_group CHANGE name title VARCHAR(255) NOT NULL' |
||
35 | ); |
||
36 | } |
||
37 | |||
38 | } |
||
39 | |||
40 | public function down(Schema $schema): void |
||
56 | } |
||
57 | |||
60 |