text: // Copyright 2018 ODK Central Developers
  // See the NOTICE file at the top-level directory of this distribution and at
  // https://github.com/opendatakit/central-backend/blob/master/NOTICE.
  // This file is part of ODK Central. It is subject to the license terms in
  // the LICENSE file found in the top-level directory of this distribution and at
  // https://www.apache.org/licenses/LICENSE-2.0. No part of ODK Central,
  // including this file, may be copied, modified, propagated, or distributed
  // except according to the terms contained in the LICENSE file.
  
  const up = (db) => db.schema
    .raw('create extension if not exists CITEXT')
    .alterTable('users', (users) => users.specificType('email', 'CITEXT').notNullable().alter());
  
  const down = (db) => db
    .alterTable('users', (users) => users.string('email', 320).notNullable().alter());
  
  module.exports = { up, down };
  
  