"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AddNameToWallets1785688287771 = void 0;
const typeorm_1 = require("typeorm");
class AddNameToWallets1785688287771 {
    async up(queryRunner) {
        const table = await queryRunner.getTable('wallets');
        if (table?.findColumnByName('name')) {
            return;
        }
        await queryRunner.addColumn('wallets', new typeorm_1.TableColumn({
            name: 'name',
            type: 'varchar',
            length: '100',
            isNullable: false,
            default: "'Wallet'",
        }));
    }
    async down(queryRunner) {
        const table = await queryRunner.getTable('wallets');
        if (table?.findColumnByName('name')) {
            await queryRunner.dropColumn('wallets', 'name');
        }
    }
}
exports.AddNameToWallets1785688287771 = AddNameToWallets1785688287771;
//# sourceMappingURL=1785688287771-AddNameToWallets.js.map