"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AddMinimumSwapValueToTokens1787000000000 = void 0;
const typeorm_1 = require("typeorm");
class AddMinimumSwapValueToTokens1787000000000 {
    async up(queryRunner) {
        const table = await queryRunner.getTable('tokens');
        if (table?.findColumnByName('minimum_swap_value')) {
            return;
        }
        await queryRunner.addColumn('tokens', new typeorm_1.TableColumn({
            name: 'minimum_swap_value',
            type: 'double',
            isNullable: true,
            default: null,
        }));
    }
    async down(queryRunner) {
        const table = await queryRunner.getTable('tokens');
        if (table?.findColumnByName('minimum_swap_value')) {
            await queryRunner.dropColumn('tokens', 'minimum_swap_value');
        }
    }
}
exports.AddMinimumSwapValueToTokens1787000000000 = AddMinimumSwapValueToTokens1787000000000;
//# sourceMappingURL=1787000000000-AddMinimumSwapValueToTokens.js.map