1 files changed, 13 insertions, 0 deletions
diff --git a/src/database/migration/postgres/1772404321402-EmbedCacheCreatedAt.ts b/src/database/migration/postgres/1772404321402-EmbedCacheCreatedAt.ts
new file mode 100644
index 00000000..bf845ff7
--- /dev/null
+++ b/src/database/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<void> {
+ await queryRunner.query(`ALTER TABLE "embed_cache" ADD "created_at" timestamp with time zone DEFAULT now();`);
+ }
+
+ public async down(queryRunner: QueryRunner): Promise<void> {
+ await queryRunner.query(`ALTER TABLE "embed_cache" DROP COLUMN "created_at"`);
+ }
+}
|