Closed bajtos closed 2 years ago
I am actually not sure if this is a good fix. When schemaversion
table exists and is empty, getDatabaseVersion()
returns 0
.
Let's discuss what's the right solution here: https://github.com/rickbergfalk/postgrator/issues/139#issuecomment-1047630285
Closing this since we're going with 0 as you suggest!
The function returns
undefined
when no migrations were applied yet.This is a follow-up for https://github.com/rickbergfalk/postgrator/pull/142.