mailtrain/setup/knex/migrations/20170617123450_create_user_name.js
Tomas Bures d79bbad575 All about user login
Not runnable at the moment
2017-07-08 15:48:34 +02:00

13 lines
No EOL
370 B
JavaScript

exports.up = function(knex, Promise) {
return knex.schema.table('users', table => {
// name and password can be null in case of LDAP login
table.string('name');
table.string('password').alter();
})
.then(() => knex('users').where('id', 1).update({
name: 'Administrator'
}));
};
exports.down = function(knex, Promise) {
};