import { MigrationInterface, QueryRunner } from "typeorm";

export class Migrations1733312779138 implements MigrationInterface {
    name = 'Migrations1733312779138'

    public async up(queryRunner: QueryRunner): Promise<void> {
        await queryRunner.query(`ALTER TABLE "facebook_posts" ADD "created_time" character varying NOT NULL DEFAULT ''`);
        await queryRunner.query(`ALTER TABLE "social_media_posts" ADD "created_time" character varying NOT NULL DEFAULT ''`);
    }

    public async down(queryRunner: QueryRunner): Promise<void> {
        await queryRunner.query(`ALTER TABLE "social_media_posts" DROP COLUMN "created_time"`);
        await queryRunner.query(`ALTER TABLE "facebook_posts" DROP COLUMN "created_time"`);
    }

}
