You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Matterwiki/migrations/20160919091811_add_users_to...

13 lines
314 B
JavaScript

exports.up = function(knex, Promise) {
return knex.schema.table('articles', function (table) {
table.integer('user_id',10).unsigned().references('users.id');
})
};
exports.down = function(knex, Promise) {
return knex.schema.table('articles', function (table) {
table.dropColumn('user_id');
})
};