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