Skip to content

Commit

Permalink
2.5.17 simply a format
Browse files Browse the repository at this point in the history
  • Loading branch information
pauljonescodes committed Feb 2, 2024
1 parent 68285ed commit 4635c10
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions src/database/migrations/1706833584412-AddIconFileSize.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
import { MigrationInterface, QueryRunner } from "typeorm";
import { MigrationInterface, QueryRunner } from 'typeorm';

export class AddIconFileSize1706833584412 implements MigrationInterface {
name = 'AddIconFileSize1706833584412'
name = 'AddIconFileSize1706833584412';

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "app_config" ADD "iconFileSize" character varying`);
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "app_config" DROP COLUMN "iconFileSize"`);
}
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "app_config" ADD "iconFileSize" character varying`,
);
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "app_config" DROP COLUMN "iconFileSize"`,
);
}
}

0 comments on commit 4635c10

Please sign in to comment.