From 8041c87547f8ef30ae431755c4fb5c3d6e8f0e15 Mon Sep 17 00:00:00 2001 From: Kelvin Steiner Date: Mon, 14 Oct 2024 12:57:17 -0300 Subject: [PATCH] fix: remove useless unique constraint on `subnet_data` --- packages/db/src/schema.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/db/src/schema.ts b/packages/db/src/schema.ts index 8657712b..8243e577 100644 --- a/packages/db/src/schema.ts +++ b/packages/db/src/schema.ts @@ -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(