aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--app/DoctrineMigrations/Version20171218135243.php3
1 files changed, 0 insertions, 3 deletions
diff --git a/app/DoctrineMigrations/Version20171218135243.php b/app/DoctrineMigrations/Version20171218135243.php
index 7b3fc666..f1ab7c1d 100644
--- a/app/DoctrineMigrations/Version20171218135243.php
+++ b/app/DoctrineMigrations/Version20171218135243.php
@@ -33,9 +33,6 @@ class Version20171218135243 extends AbstractMigration implements ContainerAwareI
33 $this->skipIf($entryTable->hasIndex($this->indexGivenUrl), 'It seems that you already played this migration.'); 33 $this->skipIf($entryTable->hasIndex($this->indexGivenUrl), 'It seems that you already played this migration.');
34 34
35 switch ($this->connection->getDatabasePlatform()->getName()) { 35 switch ($this->connection->getDatabasePlatform()->getName()) {
36 case 'sqlite':
37 $sql = 'CREATE UNIQUE INDEX ' . $this->indexGivenUrl . ' ON ' . $this->getTable('entry') . ' (url, given_url, user_id);';
38 break;
39 case 'mysql': 36 case 'mysql':
40 $sql = 'CREATE INDEX ' . $this->indexGivenUrl . ' ON ' . $this->getTable('entry') . ' (url (255), given_url (255), user_id);'; 37 $sql = 'CREATE INDEX ' . $this->indexGivenUrl . ' ON ' . $this->getTable('entry') . ' (url (255), given_url (255), user_id);';
41 break; 38 break;