Version20150713132630.php 986 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. namespace Application\Migrations\Schema\V110;
  4. use Application\Migrations\AbstractMigrationChamilo;
  5. use Doctrine\DBAL\Schema\Schema;
  6. /**
  7. * Class Version20150713132630
  8. *
  9. * @package Application\Migrations\Schema\V11010
  10. */
  11. class Version20150713132630 extends AbstractMigrationChamilo
  12. {
  13. /**
  14. * @param Schema $schema
  15. */
  16. public function up(Schema $schema)
  17. {
  18. if ($schema->hasTable('c_student_publication')) {
  19. $this->addSql('ALTER TABLE c_student_publication ADD url_correction VARCHAR(255) DEFAULT NULL');
  20. $this->addSql('ALTER TABLE c_student_publication ADD title_correction VARCHAR(255) DEFAULT NULL');
  21. }
  22. }
  23. /**
  24. * @param Schema $schema
  25. */
  26. public function down(Schema $schema)
  27. {
  28. $this->addSql('ALTER TABLE c_student_publication DROP url_correction');
  29. $this->addSql('ALTER TABLE c_student_publication DROP title_correction');
  30. }
  31. }