Total Complexity | 5 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | final class Version20230124123419 extends AbstractMigrationChamilo |
||
11 | { |
||
12 | public function getDescription(): string |
||
13 | { |
||
14 | return 'Rename c_lp.publicated_on to c_lp.published_on'; |
||
15 | } |
||
16 | |||
17 | public function up(Schema $schema): void |
||
18 | { |
||
19 | if ($schema->hasTable('c_lp')) { |
||
20 | $this->addSql( |
||
21 | 'ALTER TABLE c_lp CHANGE publicated_on published_on datetime NULL;' |
||
22 | ); |
||
23 | } |
||
24 | } |
||
25 | |||
26 | public function down(Schema $schema): void |
||
31 | ); |
||
32 | } |
||
33 | } |
||
35 |