mmatuson / SchemaSync

A MySQL Schema Versioning and Migration Utility
http://mmatuson.github.io/SchemaSync/
Other
338 stars 108 forks source link

sync_dropped_procedures error #52

Closed jacoryjin closed 7 years ago

jacoryjin commented 7 years ago

def sync_dropped_procedures(src, dest): for p in dest: if p not in src:

yield dest[p].drop(), src[p].create()

        yield dest[p].drop(), dest[p].create() # fix bug, key of p not in src, src[p].create() will be error
Ulysses1988 commented 7 years ago

I met the problem, too

jacoryjin commented 7 years ago

@Ulysses1988 you can find the code and fixed it like me! yield dest[p].drop(), dest[p].create()

mmatuson commented 7 years ago

Thank you, merged.

Ulysses1988 commented 7 years ago

Thank you