We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3ceb865 + 5df39d5 commit 50db8b4Copy full SHA for 50db8b4
lib/data_type.js
@@ -5,6 +5,7 @@ module.exports = {
5
BIG_INTEGER: 'bigint',
6
REAL: 'real',
7
DATE_TIME: 'datetime',
8
+ TIME: 'time',
9
BLOB: 'blob',
10
TIMESTAMP: 'timestamp',
11
BINARY: 'binary',
lib/driver/sqlite3.js
@@ -12,6 +12,16 @@ var Sqlite3Driver = Base.extend({
12
this.connection = connection;
13
},
14
15
+ mapDataType: function(str) {
16
+ switch(str) {
17
+ case type.DATE_TIME:
18
+ return 'datetime';
19
+ case type.TIME:
20
+ return 'time';
21
+ }
22
+ return this._super(str);
23
+ },
24
+
25
createColumnConstraint: function(spec, options) {
26
var constraint = [];
27
if (spec.primaryKey && options.emitPrimaryKey) {
0 commit comments