| 1 | <?php |
||
| 12 | class Version20150616093200 extends AbstractMigrationChamilo |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @param Schema $schema |
||
| 16 | */ |
||
| 17 | public function up(Schema $schema) |
||
| 18 | { |
||
| 19 | $this->addSql("INSERT INTO extra_field ( |
||
| 20 | extra_field_type, field_type, variable, display_text, visible, changeable, created_at) |
||
| 21 | VALUES (2, 19, 'video_url', 'VideoUrl', 1, 1, NOW())"); |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param Schema $schema |
||
| 26 | */ |
||
| 27 | public function down(Schema $schema) |
||
| 28 | { |
||
| 29 | $this->addSql("DELETE FROM extra_field |
||
| 30 | WHERE variable = 'video_url' AND |
||
| 31 | extra_field_type = 2 AND |
||
| 32 | field_type = 19"); |
||
| 33 | } |
||
| 34 | |||
| 35 | } |
||
| 36 |