File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
src/Resources/config/doctrine-orm Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 11Changelog
22=========
3+ 2.5.1
4+ -----
5+
6+ * Creating a correct index for ORM, without duplicating indexes for the "name" column
37
482.5.0
59-----
Original file line number Diff line number Diff line change 88 <generator strategy =" AUTO" />
99 </id >
1010
11- <!-- we hardcode the column name to overwrite column naming strategies as we have to define the index on the column name -->
12- <field name =" name" type =" string" unique =" true" column =" name" />
11+ <field name =" name" type =" string" column =" name" />
1312 <field name =" position" type =" integer" />
1413
15- <indexes >
16- <index name =" name_idx" columns =" name" />
17- </indexes >
18-
14+ <unique-constraints >
15+ <unique-constraint name =" name_idx" columns =" name" />
16+ </unique-constraints >
1917 </entity >
2018
2119</doctrine-mapping >
You can’t perform that action at this time.
0 commit comments