Version20160418113000.php 689 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. namespace Application\Migrations\Schema\V111;
  4. use Application\Migrations\AbstractMigrationChamilo;
  5. use Doctrine\DBAL\Schema\Schema;
  6. /**
  7. * Class Version20160418113000
  8. */
  9. class Version20160418113000 extends AbstractMigrationChamilo
  10. {
  11. /**
  12. * @param Schema $schema
  13. *
  14. * @throws \Doctrine\DBAL\Schema\SchemaException
  15. */
  16. public function up(Schema $schema)
  17. {
  18. $this->addSql('ALTER TABLE user ADD address VARCHAR(250) DEFAULT NULL;');
  19. }
  20. /**
  21. * @param Schema $schema
  22. */
  23. public function down(Schema $schema)
  24. {
  25. $this->addSql('ALTER TABLE user DROP COLUMN address');
  26. }
  27. }