Version20150603151200.php 792 B

1234567891011121314151617181920212223242526272829303132
  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. * Session date changes
  8. */
  9. class Version20150603151200 extends AbstractMigrationChamilo
  10. {
  11. /**
  12. * @param Schema $schema
  13. */
  14. public function up(Schema $schema)
  15. {
  16. $this->addSql('ALTER TABLE c_forum_forum ADD lp_id INTEGER UNSIGNED NOT NULL');
  17. $this->addSql('ALTER TABLE c_forum_thread ADD lp_item_id INTEGER UNSIGNED NOT NULL');
  18. }
  19. /**
  20. * @param Schema $schema
  21. */
  22. public function down(Schema $schema)
  23. {
  24. $this->addSql('ALTER TABLE c_forum_forum DROP lp_id');
  25. $this->addSql('ALTER TABLE c_forum_thread DROP lp_item_id');
  26. }
  27. }