-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Job Launcher] Display partially paid escrows (#1856)
* Display partially paid escrows on Job Launcher * Fix subgraph tests
- Loading branch information
Showing
11 changed files
with
178 additions
and
36 deletions.
There are no files selected for viewing
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
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
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
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
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
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
60 changes: 60 additions & 0 deletions
60
packages/apps/job-launcher/server/src/database/migrations/1712826368303-addPartialStatus.ts
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,60 @@ | ||
import { MigrationInterface, QueryRunner } from 'typeorm'; | ||
|
||
export class AddPartialStatus1712826368303 implements MigrationInterface { | ||
name = 'AddPartialStatus1712826368303'; | ||
|
||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(` | ||
ALTER TYPE "hmt"."jobs_status_enum" | ||
RENAME TO "jobs_status_enum_old" | ||
`); | ||
await queryRunner.query(` | ||
CREATE TYPE "hmt"."jobs_status_enum" AS ENUM( | ||
'PENDING', | ||
'PAID', | ||
'CREATED', | ||
'SET_UP', | ||
'LAUNCHED', | ||
'PARTIAL', | ||
'COMPLETED', | ||
'FAILED', | ||
'TO_CANCEL', | ||
'CANCELED' | ||
) | ||
`); | ||
await queryRunner.query(` | ||
ALTER TABLE "hmt"."jobs" | ||
ALTER COLUMN "status" TYPE "hmt"."jobs_status_enum" USING "status"::"text"::"hmt"."jobs_status_enum" | ||
`); | ||
await queryRunner.query(` | ||
DROP TYPE "hmt"."jobs_status_enum_old" | ||
`); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(` | ||
CREATE TYPE "hmt"."jobs_status_enum_old" AS ENUM( | ||
'PENDING', | ||
'PAID', | ||
'CREATED', | ||
'SET_UP', | ||
'LAUNCHED', | ||
'COMPLETED', | ||
'FAILED', | ||
'TO_CANCEL', | ||
'CANCELED' | ||
) | ||
`); | ||
await queryRunner.query(` | ||
ALTER TABLE "hmt"."jobs" | ||
ALTER COLUMN "status" TYPE "hmt"."jobs_status_enum_old" USING "status"::"text"::"hmt"."jobs_status_enum_old" | ||
`); | ||
await queryRunner.query(` | ||
DROP TYPE "hmt"."jobs_status_enum" | ||
`); | ||
await queryRunner.query(` | ||
ALTER TYPE "hmt"."jobs_status_enum_old" | ||
RENAME TO "jobs_status_enum" | ||
`); | ||
} | ||
} |
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
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
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
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