Duplicate id
in column name upon declaring a reference to Identifier
#237
Labels
bug
Something isn't working
Describe the bug
id
will be unconditionally added (and duplicated) in field (table column) name upon declaring it withid
in name.To Reproduce
Actual behavior
Resulting table contains
idId
column:Expected behavior
Resulting table contains name=
id
column.Suggested solution
Only add
id
to name if it doesn't already have it. Meaning thatAdditional context
Using latest
[email protected]
+[email protected]
See https://github.com/metarhia/metaschema/blob/master/lib/schema.js#L287-L299
The text was updated successfully, but these errors were encountered: