|
@@ -0,0 +1,30 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+namespace Application\Migrations;
|
|
|
+
|
|
|
+use Doctrine\DBAL\Migrations\AbstractMigration;
|
|
|
+use Doctrine\DBAL\Schema\Schema;
|
|
|
+
|
|
|
+/**
|
|
|
+ * Auto-generated Migration: Please modify to your needs!
|
|
|
+ */
|
|
|
+class Version20200512153756 extends AbstractMigration
|
|
|
+{
|
|
|
+ /**
|
|
|
+ * @param Schema $schema
|
|
|
+ */
|
|
|
+ public function up(Schema $schema)
|
|
|
+ {
|
|
|
+ // this up() migration is auto-generated, please modify it to your needs
|
|
|
+ $this->addSql("ALTER TABLE template ADD UNIQUE (name)");
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @param Schema $schema
|
|
|
+ */
|
|
|
+ public function down(Schema $schema)
|
|
|
+ {
|
|
|
+ // this down() migration is auto-generated, please modify it to your needs
|
|
|
+
|
|
|
+ }
|
|
|
+}
|