123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- /* For licensing terms, see /license.txt */
- namespace Application\Migrations\Schema\V111;
- use Application\Migrations\AbstractMigrationChamilo,
- Doctrine\DBAL\Schema\Schema;
- /**
- * Class Version20160727122700
- * Add missing index to c_lp
- * @package Application\Migrations\Schema\V111
- */
- class Version20160727122700 extends AbstractMigrationChamilo
- {
- /**
- * @param Schema $schema
- */
- public function up(Schema $schema)
- {
- $schema
- ->getTable('c_lp')
- ->addIndex(['session_id'], 'session');
- }
- /**
- * @param Schema $schema
- */
- public function down(Schema $schema)
- {
- $schema
- ->getTable('c_lp')
- ->dropIndex('session');
- }
- }
|