2017-06-21 00:14:14 +00:00
|
|
|
exports.up = function(knex, Promise) {
|
|
|
|
return knex.schema.table('users', table => {
|
2017-07-08 13:48:34 +00:00
|
|
|
// name and password can be null in case of LDAP login
|
|
|
|
table.string('name');
|
|
|
|
table.string('password').alter();
|
2017-06-21 00:14:14 +00:00
|
|
|
})
|
2017-06-29 21:22:33 +00:00
|
|
|
.then(() => knex('users').where('id', 1).update({
|
|
|
|
name: 'Administrator'
|
|
|
|
}));
|
2017-06-21 00:14:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
exports.down = function(knex, Promise) {
|
|
|
|
};
|