import { MigrationInterface, QueryRunner } from "typeorm";

export class Migrations1767679095457 implements MigrationInterface {
    name = 'Migrations1767679095457'

    public async up(queryRunner: QueryRunner): Promise<void> {
        await queryRunner.query(`ALTER TABLE "keywords" ADD "updated_at" TIMESTAMP(0) NOT NULL DEFAULT now()`);
        await queryRunner.query(`ALTER TABLE "keywords" ADD "deleted_at" TIMESTAMP(0)`);
    }

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

}
