Skip to content

Commit

Permalink
fix: remove useless unique constraint on subnet_data
Browse files Browse the repository at this point in the history
  • Loading branch information
steinerkelvin committed Oct 14, 2024
1 parent 1e8f8a5 commit 8041c87
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/db/src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,7 @@ export const subnetDataSchema = createTable(
maxAllowedValidators: integer("max_allowed_validators"),
createdAt: timestamp("created_at").defaultNow().notNull(),
deletedAt: timestamp("deleted_at").default(sql`null`),
},
(t) => ({
unq: unique().on(t.netuid, t.id),
}),
}
);

export const userSubnetDataSchema = createTable(
Expand Down

0 comments on commit 8041c87

Please sign in to comment.