1 files changed, 13 insertions, 0 deletions
diff --git a/src/util/migration/postgres/1723577874393-discoveryCategoryIcon.ts b/src/util/migration/postgres/1723577874393-discoveryCategoryIcon.ts
new file mode 100644
index 000000000..29b4138a8
--- /dev/null
+++ b/src/util/migration/postgres/1723577874393-discoveryCategoryIcon.ts
@@ -0,0 +1,13 @@
+import { MigrationInterface, QueryRunner } from "typeorm";
+
+export class DiscoveryCategoryIcon1723577874393 implements MigrationInterface {
+ name = "DiscoveryCategoryIcon1723577874393";
+
+ public async up(queryRunner: QueryRunner): Promise<void> {
+ await queryRunner.query("ALTER TABLE categories ADD icon text NULL");
+ }
+
+ public async down(queryRunner: QueryRunner): Promise<void> {
+ await queryRunner.query("ALTER TABLE categories DROP COLUMN icon");
+ }
+}
|