rickbergfalk / postgrator

A PostgreSQL, MySQL, and SQL Server migration tool using plain sql scripts.
MIT License
449 stars 70 forks source link

Fix version error when schemaversion table does not exist #142

Closed rickbergfalk closed 2 years ago

rickbergfalk commented 2 years ago

Fixes #139 by checking to see if any schemaversion columns exist in the database prior to attempting to get current database version. If no columns exist, the table does not exist, and so a version does not exist.