diff --git a/config/Migrations/20211104072514_MoreMetaFieldColumns.php b/config/Migrations/20211104072514_MoreMetaFieldColumns.php index 400da1a..23e7ffe 100644 --- a/config/Migrations/20211104072514_MoreMetaFieldColumns.php +++ b/config/Migrations/20211104072514_MoreMetaFieldColumns.php @@ -34,6 +34,11 @@ class MoreMetaFieldColumns extends AbstractMigration 'comment' => 'Field used by the CounterCache behaviour to count the occurence of meta_template_fields' ]) ->update(); + + $metaTemplate = $this->table('meta_templates') + ->removeIndex(['uuid']) + ->addIndex(['uuid']) + ->update(); // TODO: Make sure FK constraints are set between meta_field, meta_template and meta_template_fields }