diff --git a/db/migration/1706711579844-AddWordpressApiSnapshotToPosts.ts b/db/migration/1706711579844-AddWordpressApiSnapshotToPosts.ts new file mode 100644 index 00000000000..0b027a6af07 --- /dev/null +++ b/db/migration/1706711579844-AddWordpressApiSnapshotToPosts.ts @@ -0,0 +1,15 @@ +import { MigrationInterface, QueryRunner } from "typeorm" + +export class AddWordpressApiSnapshotToPosts1706711579844 + implements MigrationInterface +{ + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + `ALTER TABLE posts ADD wpApiSnapshot JSON DEFAULT NULL` + ) + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE posts DROP COLUMN wpApiSnapshot`) + } +}