Skip to content

Commit

Permalink
feat: add extra schema type for custom extension flexiblity
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Gurtzick <magic@wizardtales.com>
  • Loading branch information
wzrdtales committed Sep 21, 2021
1 parent ac850c3 commit 1966068
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/learn.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ class STD {
this.indizies = schema.i;
this.schema = schema.c;
this.foreign = schema.f;
if (!schema.e) {
schema.e = {};
}
this.extra = schema.e;
this.modS = mod.c;
this.modI = mod.i;
this.modF = mod.f;
Expand Down
3 changes: 2 additions & 1 deletion lib/walker.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ const Walker = function (driver, directory, mode, intern, prefix) {
* i: index
* c: schema
* f: foreignKey
* e: extra items for the schema (like ENUM tyes)
*/
this.internals.schema = { i: {}, c: {}, f: {} };
this.internals.schema = { i: {}, c: {}, f: {}, e: {} };
/**
* s: commands
* i: index
Expand Down

0 comments on commit 1966068

Please sign in to comment.