Skip to content

Commit 382273f

Browse files
committed
remove unique from wallet address
1 parent 053e432 commit 382273f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

migration/1746211907434-AddVestingTablemigration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export class AddVestingTableMigration1746211907434
77

88
public async up(queryRunner: QueryRunner): Promise<void> {
99
await queryRunner.query(
10-
`CREATE TABLE "vesting_data" ("id" SERIAL NOT NULL, "status" text NOT NULL DEFAULT 'pending', "walletAddress" character varying, "paymentToken" character varying NOT NULL, "amount" bigint NOT NULL, "rewardStreamStart" TIMESTAMP, "cliff" double precision, "rewardStreamEnd" TIMESTAMP, "createdAt" TIMESTAMP NOT NULL DEFAULT now(), "projectId" integer, "userId" integer, CONSTRAINT "UQ_c3a2fee0a7bc2c327ee29daac85" UNIQUE ("walletAddress"), CONSTRAINT "PK_c8abbf61fa05ae0eec4048b6408" PRIMARY KEY ("id"))`,
10+
`CREATE TABLE "vesting_data" ("id" SERIAL NOT NULL, "status" text NOT NULL DEFAULT 'pending', "walletAddress" character varying, "paymentToken" character varying NOT NULL, "amount" bigint NOT NULL, "rewardStreamStart" TIMESTAMP, "cliff" double precision, "rewardStreamEnd" TIMESTAMP, "createdAt" TIMESTAMP NOT NULL DEFAULT now(), "projectId" integer, "userId" integer, CONSTRAINT "PK_c8abbf61fa05ae0eec4048b6408" PRIMARY KEY ("id"))`,
1111
);
1212
await queryRunner.query(
1313
`CREATE INDEX "IDX_2826daca8f0317c5e209df4de5" ON "vesting_data" ("projectId") `,

src/entities/vestingData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class VestingData extends BaseEntity {
3838
user: User;
3939

4040
@Field(_type => String, { nullable: true })
41-
@Column({ nullable: true, unique: true })
41+
@Column({ nullable: true })
4242
walletAddress?: string;
4343

4444
@Field()

0 commit comments

Comments
 (0)