]> Raphaël G. Git Repositories - airbundle/commitdiff
Update zipcode index with two leading characters
authorRaphaël Gertz <git@rapsys.eu>
Fri, 8 Mar 2024 00:40:10 +0000 (01:40 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Fri, 8 Mar 2024 00:40:10 +0000 (01:40 +0100)
Resources/config/doctrine/Location.orm.yml

index 9d261442e0dd6be5c47913e52bba2399cfd8327c..109ec98cb8c5d27d1109c4c111d8e39bf9961900 100644 (file)
@@ -60,6 +60,6 @@ Rapsys\AirBundle\Entity\Location:
             columns: [ city, zipcode ]
             #XXX: see https://github.com/doctrine/dbal/pull/2412 and https://stackoverflow.com/questions/32539973/configuring-index-text-length-mysql-in-doctrine
             options:
-                lengths: [ ~, 3 ]
+                lengths: [ ~, 2 ]
     lifecycleCallbacks:
         preUpdate: ['preUpdate']