Fix duration compiling issue
Generating Database DDL