Skip to content

Instantly share code, notes, and snippets.

Created November 22, 2017 07:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/8bf778f64cd939e85337c0862396cee3 to your computer and use it in GitHub Desktop.
Save anonymous/8bf778f64cd939e85337c0862396cee3 to your computer and use it in GitHub Desktop.
exports.up = function(knex, Promise) {
return knex.schema.createTable('user_chat', (table) => {
table.increments();
table.bigInteger('user_id').notNullable();
table.bigInteger('chat_id').notNullable();
})
};
exports.down = function(knex, Promise) {
return knex.schema.dropTable('user_chat');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment