1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- namespace Application\Migrations\Schema\V111;
- use Application\Migrations\AbstractMigrationChamilo;
- use Doctrine\DBAL\Schema\Schema;
- use Doctrine\DBAL\Types\Type;
- class Version20160628220000 extends AbstractMigrationChamilo
- {
-
- public function up(Schema $schema)
- {
- $this
- ->connection
- ->executeQuery("UPDATE c_lp_item SET item_type = 'dir' WHERE item_type = 'dokeos_chapter'");
- $this
- ->connection
- ->executeQuery("UPDATE c_lp_item SET item_type = 'dir' WHERE item_type = 'dokeos_module'");
- $this
- ->connection
- ->executeQuery("UPDATE c_lp_item SET item_type = 'dir' WHERE item_type = 'chapter'");
- $this
- ->connection
- ->executeQuery("UPDATE c_lp_item SET item_type = 'dir' WHERE item_type = 'module'");
- }
-
- public function down(Schema $schema)
- {
- }
- }
|