"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AttendanceCheckoutNote1780990000000 = void 0;
class AttendanceCheckoutNote1780990000000 {
    constructor() {
        this.name = 'AttendanceCheckoutNote1780990000000';
    }
    async up(queryRunner) {
        const table = await queryRunner.getTable('attendances');
        const hasCheckoutNote = table?.columns.some((column) => column.name === 'checkout_note');
        if (!hasCheckoutNote) {
            await queryRunner.query(`ALTER TABLE \`attendances\` ADD \`checkout_note\` varchar(191) NULL AFTER \`note\``);
        }
    }
    async down(queryRunner) {
        const table = await queryRunner.getTable('attendances');
        const hasCheckoutNote = table?.columns.some((column) => column.name === 'checkout_note');
        if (hasCheckoutNote) {
            await queryRunner.query(`ALTER TABLE \`attendances\` DROP COLUMN \`checkout_note\``);
        }
    }
}
exports.AttendanceCheckoutNote1780990000000 = AttendanceCheckoutNote1780990000000;
//# sourceMappingURL=1780990000000-AttendanceCheckoutNote.js.map