Skip to content

Commit 9855bf0

Browse files
committed
fix(v2): initialize modS before usage
fixes db-migrate#665 Signed-off-by: Tobias Gurtzick <[email protected]>
1 parent 22b4ce6 commit 9855bf0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/learn.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ class STD {
217217
changeColumn (t, c, s) {
218218
this.checkColumn(t, c);
219219

220+
if (!this.modS[t]) this.modS[t] = {};
221+
220222
this.modS[t][c] = this.schema[t][c];
221223
this.schema[t][c] = Object.assign(this.schema[t][c], s);
222224

0 commit comments

Comments
 (0)