Skip to content

Commit af9741d

Browse files
committed
do not interpret empty json string
Signed-off-by: Tobias Gurtzick <[email protected]>
1 parent a5ccc96 commit af9741d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/state.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module.exports = {
5050
const state = await driver._getKV(internals.migrationState, MSTATE);
5151
const mig = await driver._getKV(internals.migrationState, file.name);
5252

53-
if (mig) {
53+
if (mig && mig.value !== '{}') {
5454
internals.modSchema = JSON.parse(mig.value);
5555
}
5656

0 commit comments

Comments
 (0)