From 6610fd6647a8de734fdbb15f4f1e99a0d2abf970 Mon Sep 17 00:00:00 2001 From: Svante Richter Date: Wed, 3 Aug 2016 19:42:51 +0200 Subject: [PATCH] Fix key length for mysql Fixes #56 --- src/Storage/ContentTypeTable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Storage/ContentTypeTable.php b/src/Storage/ContentTypeTable.php index a39f8f0..9366f64 100644 --- a/src/Storage/ContentTypeTable.php +++ b/src/Storage/ContentTypeTable.php @@ -32,7 +32,7 @@ protected function addColumns() parent::addColumns(); /** @var Config\Locale $locale */ foreach ($this->config->getLocales() as $locale) { - $this->table->addColumn($locale->getSlug() . '_slug', 'string', ['length' => 256, 'default' => '']); + $this->table->addColumn($locale->getSlug() . '_slug', 'string', ['length' => 191, 'default' => '']); $this->table->addColumn($locale->getSlug() . '_data', 'text', ['notnull' => false]); } }