Skip to content

Commit

Permalink
Fixed using default ID as PK column
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinMikita authored Jan 19, 2017
1 parent b76c223 commit d0a1835
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/user/userTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ var UserTable = function(tableName, columns) {
tempColumnNames.push(column.name);
tempNameToIndex[column.name] = index;
}

if (pk === undefined) {
pk = 'id'; // default PK for GeoPackage table
}

this.columns = columns;
this.columnNames = tempColumnNames;
Expand Down

0 comments on commit d0a1835

Please sign in to comment.