summary refs log tree commit diff
path: root/src/util/migration/postgres
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2024-08-14 14:03:01 +1000
committerGitHub <noreply@github.com>2024-08-14 14:03:01 +1000
commit507d12fbe9530ebece62d84119a671b457b5ea3f (patch)
treef54141331e44dee911082491197ebfb2ad593e06 /src/util/migration/postgres
parentMerge pull request #1149 from DEVTomatoCake/feat/webhooks-3 (diff)
parentIcon for discovery categories & fix "primary_only" (diff)
downloadserver-ts-507d12fbe9530ebece62d84119a671b457b5ea3f.tar.xz
Merge pull request #1162 from DEVTomatoCake/feat/guild-discovery-category-icons
Diffstat (limited to 'src/util/migration/postgres')
-rw-r--r--src/util/migration/postgres/1723577874393-discoveryCategoryIcon.ts13
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"); + } +}