import { Migration } from '../migrate';

export const up: Migration = async ({ context }) => {
  await context.sequelize.query(`
    UPDATE payment_currencies 
    SET maximum_precision = 6
    WHERE payment_method_id IN (
      SELECT id FROM payment_methods WHERE type IN ('arcblock', 'ethereum', 'base')
    )
    AND type != 'credit';
  `);
};

export const down = () => {};
