1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- namespace Application\Migrations\Schema\V111;
- use Application\Migrations\AbstractMigrationChamilo;
- use Doctrine\DBAL\Schema\Schema;
- class Version20170522120000 extends AbstractMigrationChamilo
- {
-
- public function up(Schema $schema)
- {
- error_log('Version20170522120000');
- $trackEAttempt = $schema->getTable('track_e_attempt');
- if ($trackEAttempt->hasColumn('course_code')) {
- $this->addSql("ALTER TABLE track_e_attempt DROP COLUMN course_code");
- }
- }
-
- public function down(Schema $schema)
- {
- }
- }
|