Default should not be handled by database engine
This commit is contained in:
parent
11b4436fd1
commit
35e872368a
|
@ -463,6 +463,5 @@ function datatype(p) {
|
|||
dt = 'TINYINT(1)';
|
||||
break;
|
||||
}
|
||||
dt += (typeof p.default !== 'undefined') ? ' DEFAULT ' + p.default.toString() : '';
|
||||
return dt;
|
||||
}
|
||||
|
|
|
@ -590,7 +590,7 @@ function testOrm(schema) {
|
|||
test.ok(post.published === false);
|
||||
post.updateAttributes({title: 'hey', published: true}, function () {
|
||||
Post.find(id, function (err, post) {
|
||||
test.ok(post.published === true);
|
||||
test.ok(!!post.published, 'Update boolean field');
|
||||
test.ok(post.id);
|
||||
test.done();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue