import { MigrationInterface, QueryRunner } from "typeorm";

export class Migrations1749103826538 implements MigrationInterface {
    name = 'Migrations1749103826538'

    public async up(queryRunner: QueryRunner): Promise<void> {
        await queryRunner.query(`ALTER TABLE "social_medias" ADD "apify_data_updated_attempts" integer NOT NULL DEFAULT '0'`);
        await queryRunner.query(`COMMENT ON COLUMN "social_medias"."apify_data_updated_attempts" IS 'APIFY DATA UPDATED ATTEMPTS'`);
    }

    public async down(queryRunner: QueryRunner): Promise<void> {
        await queryRunner.query(`COMMENT ON COLUMN "social_medias"."apify_data_updated_attempts" IS 'APIFY DATA UPDATED ATTEMPTS'`);
        await queryRunner.query(`ALTER TABLE "social_medias" DROP COLUMN "apify_data_updated_attempts"`);
    }

}
