Version20200605105113.php 674 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace Application\Migrations;
  3. use Doctrine\DBAL\Migrations\AbstractMigration;
  4. use Doctrine\DBAL\Schema\Schema;
  5. /**
  6. * Auto-generated Migration: Please modify to your needs!
  7. */
  8. class Version20200605105113 extends AbstractMigration
  9. {
  10. /**
  11. * @param Schema $schema
  12. */
  13. public function up(Schema $schema)
  14. {
  15. // this up() migration is auto-generated, please modify it to your needs
  16. $this->addSql("ALTER TABLE template ADD UNIQUE (name)");
  17. }
  18. /**
  19. * @param Schema $schema
  20. */
  21. public function down(Schema $schema)
  22. {
  23. // this down() migration is auto-generated, please modify it to your needs
  24. }
  25. }