Review database migration logic and options again.

In #539 it appears that we fail to honor some actions, and it seems to be
because of sloppy reasonning in how to make sense of all of them. It could
well be that we have too many options for them to make sense in all possible
combinations, but for now it looks safe to bet on an easy fix...
This commit is contained in:
Dimitri Fontaine 2017-05-06 14:45:05 +02:00
parent 3c4e64ed26
commit e7afe993fa

View File

@ -236,8 +236,8 @@
(create-tables (and create-tables create-ddl))
(create-schemas (and create-schemas create-ddl))
(foreign-keys (and foreign-keys create-ddl))
(drop-indexes (or create-ddl include-drop))
(create-indexes (or drop-indexes (and create-indexes create-ddl)))
(drop-indexes (and include-drop create-ddl))
(create-indexes (and create-indexes drop-indexes create-ddl))
(*preserve-index-names*
(or (eq :preserve index-names)