"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FixAllCollations1784657000000 = void 0;
class FixAllCollations1784657000000 {
    constructor() {
        this.name = "FixAllCollations1784657000000";
    }
    async up(queryRunner) {
        await queryRunner.query(`SET FOREIGN_KEY_CHECKS = 0;`);
        const tables = [
            "owner",
            "company",
            "working_schedule",
            "leave_policy",
            "departments",
            "designations",
            "locations",
            "employement_types",
            "hiring_sources",
            "events",
            "notices",
            "members",
            "work_experiences",
            "educations",
            "attendance_breaks",
            "attendances",
            "leaves",
            "attendance_requests",
            "holidays",
            "notifications",
            "notification_receivers",
            "access_roles",
            "role_permissions",
            "job_postings",
            "job_applications",
            "recruitment_tasks",
            "tenant_api_keys",
            "onboarding_plans",
            "onboarding_plan_stages",
            "onboarding_plan_tasks",
            "onboarding_records",
            "onboarding_tasks",
            "_noticemembers",
            "_holidaydepartments",
        ];
        for (const table of tables) {
            try {
                await queryRunner.query(`ALTER TABLE \`${table}\` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci`);
            }
            catch (e) { }
        }
        await queryRunner.query(`SET FOREIGN_KEY_CHECKS = 1;`);
    }
    async down(queryRunner) { }
}
exports.FixAllCollations1784657000000 = FixAllCollations1784657000000;
//# sourceMappingURL=1784657000000-FixAllCollations.js.map