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 1
1
Changelog
2
2
=========
3
+ 2.5.1
4
+ -----
5
+
6
+ * Creating a correct index for ORM, without duplicating indexes for the "name" column
3
7
4
8
2.5.0
5
9
-----
Original file line number Diff line number Diff line change 8
8
<generator strategy =" AUTO" />
9
9
</id >
10
10
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" />
13
12
<field name =" position" type =" integer" />
14
13
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 >
19
17
</entity >
20
18
21
19
</doctrine-mapping >
You can’t perform that action at this time.
0 commit comments