2017-06-21 00:14:14 +00:00
|
|
|
exports.up = function(knex, Promise) {
|
|
|
|
return knex.schema.table('users', table => {
|
2017-06-29 21:22:33 +00:00
|
|
|
table.string('name').notNullable().default('');
|
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) {
|
|
|
|
};
|