import type { QueryInterface } from 'sequelize';

export default {
  up: async (queryInterface: QueryInterface) => {
    await queryInterface.sequelize.query(`
      ALTER TYPE "public"."enum_user_progress_progress_type"
      ADD VALUE IF NOT EXISTS 'classroom_strategy_favorite';
    `);
  },

  down: async () => {
    // PostgreSQL enum values cannot be removed safely while rows may reference
    // them. Keep the value in place; rollback only removes application usage.
  },
};
