forked from Giveth/impact-graph
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a3019d
commit 98674c9
Showing
2 changed files
with
19 additions
and
30 deletions.
There are no files selected for viewing
30 changes: 0 additions & 30 deletions
30
migration/1724203099237-AddIconToProjectAndUpdateTables.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"`); | ||
} | ||
} |