Skip to content

Commit

Permalink
revert: drop indices
Browse files Browse the repository at this point in the history
  • Loading branch information
chronark committed Nov 25, 2024
1 parent 572a620 commit c509b20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/db/src/schema/audit_logs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ export const auditLogTarget = mysqlTable(
},
(table) => ({
pk: primaryKey({ columns: [table.auditLogId, table.id] }),
auditLog: index("audit_log_id").on(table.auditLogId),
}),
);

Expand Down
1 change: 1 addition & 0 deletions internal/db/src/schema/identity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export const ratelimits = mysqlTable(
duration: bigint("duration", { mode: "number" }).notNull(),
},
(table) => ({
nameIdx: index("name_idx").on(table.name),
uniqueName: uniqueIndex("unique_name_idx").on(table.name, table.keyId, table.identityId),
}),
);
Expand Down

0 comments on commit c509b20

Please sign in to comment.