-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
Description
Previously using knex 0.5.13, now using knex 0.6.6, I have migrations that have:
exports.up = function(knex, Promise) {
var todo = [];
todo.push(knex.schema.createTable('namespaces', function(table) {
// unrelated columns
table.timestamp('updated_at').defaultTo('CURRENT_TIMESTAMP').onUpdate('CURRENT_TIMESTAMP').notNullable();
}));
Promise.all(todo);
};
Please trust me that I am abusing the column type in this way for a good reason.
When migrating the DB via:
var db = Bookshelf.initialize(dbConfigHere);
db.knex.migrate
.latest(dbConfigHere)
.then(function() {
done();
})
.catch(done);
I am getting:
TypeError: Object #<ColumnBuilder_SQLite3> has no method 'onUpdate'
I am going to start spelunking the code to see what's going on, but I don't see anything in the changelog for having to change migrations.
Did I miss something?