| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | final class Version20201216122011 extends AbstractMigrationChamilo |
||
| 21 | { |
||
| 22 | public function getDescription(): string |
||
| 23 | { |
||
| 24 | return 'Create and modify tables for peer assessment, autogroups, learning paths, group relations, and student publications.'; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function up(Schema $schema): void |
||
| 28 | { |
||
| 29 | $this->addSql(" |
||
| 30 | ALTER TABLE c_lp |
||
| 31 | ADD IF NOT EXISTS subscribe_user_by_date TINYINT(1) DEFAULT 0 NOT NULL, |
||
| 32 | ADD IF NOT EXISTS display_not_allowed_lp TINYINT(1) DEFAULT 0 |
||
| 33 | "); |
||
| 34 | } |
||
| 35 | |||
| 36 | public function down(Schema $schema): void |
||
| 39 | ALTER TABLE c_lp |
||
| 40 | DROP IF EXISTS subscribe_user_by_date, |
||
| 41 | DROP IF EXISTS display_not_allowed_lp |
||
| 45 |