Version20150805161000.php 888 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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 Version20150805161000 extends AbstractMigrationChamilo
  12. {
  13. /**
  14. * @param Schema $schema
  15. */
  16. public function up(Schema $schema)
  17. {
  18. $sessionTable = $schema->getTable('session');
  19. $sessionTable->addColumn(
  20. 'send_subscription_notification',
  21. \Doctrine\DBAL\Types\Type::BOOLEAN,
  22. ['default' => false]
  23. );
  24. }
  25. /**
  26. * @param Schema $schema
  27. */
  28. public function down(Schema $schema)
  29. {
  30. $sessionTable = $schema->getTable('session');
  31. $sessionTable->dropColumn('send_subscription_notification');
  32. }
  33. }