From daaf6eae286605e5ddd926fe13956edce5d2c08b Mon Sep 17 00:00:00 2001 From: Rory& Date: Thu, 26 Mar 2026 11:46:48 +0100 Subject: Embeds: factor out from postMessage --- .../migration/postgres/1772404321402-EmbedCacheCreatedAt.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/util/migration/postgres/1772404321402-EmbedCacheCreatedAt.ts (limited to 'src/util/migration/postgres') diff --git a/src/util/migration/postgres/1772404321402-EmbedCacheCreatedAt.ts b/src/util/migration/postgres/1772404321402-EmbedCacheCreatedAt.ts new file mode 100644 index 000000000..bf845ff74 --- /dev/null +++ b/src/util/migration/postgres/1772404321402-EmbedCacheCreatedAt.ts @@ -0,0 +1,13 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class EmbedCacheCreatedAt1772404321402 implements MigrationInterface { + name = "EmbedCacheCreatedAt1772404321402"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE "embed_cache" ADD "created_at" timestamp with time zone DEFAULT now();`); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE "embed_cache" DROP COLUMN "created_at"`); + } +} -- cgit 1.5.1