Skip to content

Commit

Permalink
Adding a bigint type
Browse files Browse the repository at this point in the history
  • Loading branch information
waterfoul committed Jul 8, 2016
1 parent 05a4db0 commit 6983ba2
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions node/DataObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@ export abstract class DataConnection<T extends DataContract> implements IDataCon
type: sequelize.INTEGER
};
break;
case Types.bigInt:
model[fieldName] = {
type: sequelize.BIGINT
};
break;
default:
logger.error('Field of unknown type found!', {
fieldName: fieldName,
Expand Down
1 change: 1 addition & 0 deletions shared/Types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export enum Types {
string,
integer,
bigInt,
float,
dateTimeTz
}

0 comments on commit 6983ba2

Please sign in to comment.