'use strict'; module.exports = { async up(knex) { // Add the "scope" field to the "user" table await knex.schema.table('user', (table) => { table.string('scope').notNullable().defaultTo('user'); }); }, async down(knex) { // Revert the changes made in the "up" function await knex.schema.table('user', (table) => { table.dropColumn('scope'); }); } };