srcshelton / myway

Enhanced MySQL-targeted Flyway alternative
0 stars 0 forks source link

During validation, don't fail for schema-files which lack a declared type and non-DDL statements #29

Open srcshelton opened 8 years ago

srcshelton commented 8 years ago

Currently, we assume that schema-files lacking a d{d,m,c}l element in their file-name are DDL, and then validate (and potentially fail the file) on this basis.

This is incorrect - if the file doesn't explicitly declare itself as DDL, we shouldn't treat it as such.

(Although we can still flag a non-fatal warning that files should have a specified type)

srcshelton commented 8 years ago

Fixed in b0fc123a94fa6d68678dbdf6408bdea62c519228 on branch latest