Skip to content

Commit

Permalink
Added autogenerated migration
Browse files Browse the repository at this point in the history
  • Loading branch information
aminlatifi committed Aug 21, 2024
1 parent 7a3019d commit 98674c9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 30 deletions.
30 changes: 0 additions & 30 deletions migration/1724203099237-AddIconToProjectAndUpdateTables.ts

This file was deleted.

19 changes: 19 additions & 0 deletions migration/1724231548035-ProjectIcon.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { MigrationInterface, QueryRunner } from 'typeorm';

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

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

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

0 comments on commit 98674c9

Please sign in to comment.