aboutsummaryrefslogtreecommitdiff
path: root/db/migrations/20190609193213_add_expires_at_to_blocked_users.js
blob: ea456a672ffb065a74cab94e9e9098f0f108f41b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
exports.up = async function(knex, Promise) {
  await knex.schema.table('blocked_users', table => {
    table.dateTime('expires_at').nullable();
  });
};

exports.down = async function(knex, Promise) {
  await knex.schema.table('blocked_users', table => {
    table.dropColumn('expires_at');
  });
};