Commit 3157e98
committed
[FIX] util/pg: drop indexes when removing constraints
If a constraint with the same name was found. Attempt as well to drop
any existing index with the same name. Otherwise we may leave behind
constraints implemented as unique indexes.
See odoo/upgrade#8318
closes #310
Signed-off-by: Christophe Simonis (chs) <[email protected]>1 parent 98a959e commit 3157e98
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
795 | 795 | | |
796 | 796 | | |
797 | 797 | | |
798 | | - | |
799 | | - | |
| 798 | + | |
| 799 | + | |
800 | 800 | | |
801 | 801 | | |
802 | 802 | | |
803 | 803 | | |
804 | 804 | | |
805 | 805 | | |
806 | 806 | | |
| 807 | + | |
| 808 | + | |
807 | 809 | | |
808 | 810 | | |
809 | 811 | | |
| |||
0 commit comments