Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add allocatedFundUSDPreferred and allocatedFundUSD to qfRound #1522

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions migration/1714566501335-addTokenAndChainToQFRound.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,19 @@ export class AddTokenAndChainToQFRound1714566501335
await queryRunner.query(`
ALTER TABLE IF EXISTS "qf_round"
ADD COLUMN IF NOT EXISTS "allocatedTokenSymbol" text,
ADD COLUMN IF NOT EXISTS "allocatedTokenChainId" integer;
`);
ADD COLUMN IF NOT EXISTS "allocatedTokenChainId" integer,
ADD COLUMN IF NOT EXISTS "allocatedFundUSDPreferred" boolean,
ADD COLUMN IF NOT EXISTS "allocatedFundUSD" integer;
`);
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
ALTER TABLE IF EXISTS "qf_round"
DROP COLUMN "allocatedTokenSymbol",
DROP COLUMN "allocatedTokenChainId";
DROP COLUMN "allocatedTokenChainId",
DROP COLUMN "allocatedFundUSDPreferred",
DROP COLUMN "allocatedFundUSD";
`);
}
}
8 changes: 8 additions & 0 deletions src/entities/qfRound.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ export class QfRound extends BaseEntity {
@Column()
allocatedFund: number;

@Field(_type => Number, { nullable: true })
@Column({ nullable: true })
allocatedFundUSD: number;

@Field(_type => Boolean, { nullable: true })
@Column({ nullable: true })
allocatedFundUSDPreferred: boolean;

@Field(_type => String, { nullable: true })
@Column({ nullable: true })
allocatedTokenSymbol: string;
Expand Down
Loading