chg: [migration] Meta-templates can have duplicated UUID thanks to their version

pull/93/head
Sami Mokaddem 2021-12-08 11:13:16 +01:00
parent aa83b1aa37
commit e119610ed5
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 5 additions and 0 deletions

View File

@ -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
}