'use strict';

module.exports = {
  up: async queryInterface => {
    await queryInterface.sequelize.query(`
      UPDATE "Collectives"
        SET "slug" = UPPER("slug")
      WHERE
        "type" = 'VENDOR';
    `);
    await queryInterface.sequelize.query(`
      UPDATE "CollectiveHistories"
        SET "slug" = UPPER("slug")
      WHERE
        "type" = 'VENDOR';
    `);
  },
};

'use strict';

module.exports = {
  up: async queryInterface => {
    await queryInterface.sequelize.query(`
      UPDATE "Collectives"
        SET "slug" = UPPER("slug")
      WHERE
        "type" = 'VENDOR';
    `);
    await queryInterface.sequelize.query(`
      UPDATE "CollectiveHistories"
        SET "slug" = UPPER("slug")
      WHERE
        "type" = 'VENDOR';
    `);
  },
  down: async () => {
    // Nothing to do
  },
};

Add empty down method