1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- /* For licensing terms, see /license.txt */
- namespace Application\Migrations\Schema\V111;
- use Application\Migrations\AbstractMigrationChamilo;
- use 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');
- }
- }
|