import { MigrationInterface, QueryRunner } from "typeorm";

export class Migrations1742283634667 implements MigrationInterface {
    name = 'Migrations1742283634667'

    public async up(queryRunner: QueryRunner): Promise<void> {
        await queryRunner.query(`ALTER TABLE "users" RENAME COLUMN "is_manually_update" TO "is_updated_by_cron"`);
    }

    public async down(queryRunner: QueryRunner): Promise<void> {
        await queryRunner.query(`ALTER TABLE "users" RENAME COLUMN "is_updated_by_cron" TO "is_manually_update"`);
    }

}
