Fix incremental sql scripts