Add identifier column to plugins table for cleaner plugin lookup

- Added 'identifier' column (unique) for machine-readable plugin ID
- 'name' now used for display name only
- Updated trial-execution to look up by identifier first, then name
- Added migration script for existing databases
This commit is contained in:
2026-03-21 20:03:33 -04:00
parent e84c794962
commit 4e86546311
7 changed files with 4539 additions and 12 deletions
+1
View File
@@ -608,6 +608,7 @@ export const plugins = createTable(
robotId: uuid("robot_id").references(() => robots.id, {
onDelete: "cascade",
}),
identifier: varchar("identifier", { length: 100 }).notNull().unique(),
name: varchar("name", { length: 255 }).notNull(),
version: varchar("version", { length: 50 }).notNull(),
description: text("description"),