summary refs log tree commit diff
path: root/src/database/migration/postgres/1723577874393-discoveryCategoryIcon.ts
blob: 8dfde3cb13b99dbecabc77559c701429cb443567 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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");
    }
}