Unified · Split
| @@ -0,0 +1,5 @@ | ||
| 1 | +--- | |
| 2 | +"executor": patch | |
| 3 | +--- | |
| 4 | + | |
| 5 | +**Fix: the artifact migration no longer narrows `definition.name` to varchar(255), which failed on existing long definition names** | |
| @@ -11,5 +11,4 @@ CREATE TABLE "artifact" ( · 10 unmodified lines | ||
| 11 | 11 | "subject" varchar(255) NOT NULL |
| 12 | 12 | ); |
| 13 | 13 | --> statement-breakpoint |
| 14 | −ALTER TABLE "definition" ALTER COLUMN "name" SET DATA TYPE varchar(255);--> statement-breakpoint | |
| 15 | 14 | CREATE UNIQUE INDEX "artifact_uidx" ON "artifact" USING btree ("tenant","owner","subject","id"); |
| @@ -515,7 +515,7 @@ · 514 unmodified lines | ||
| 515 | 515 | }, |
| 516 | 516 | "name": { |
| 517 | 517 | "name": "name", |
| 518 | − "type": "varchar(255)", | |
| 518 | + "type": "text", | |
| 519 | 519 | "primaryKey": false, |
| 520 | 520 | "notNull": true |
| 521 | 521 | }, |
| @@ -521,7 +521,7 @@ · 520 unmodified lines | ||
| 521 | 521 | }, |
| 522 | 522 | "name": { |
| 523 | 523 | "name": "name", |
| 524 | − "type": "varchar(255)", | |
| 524 | + "type": "text", | |
| 525 | 525 | "primaryKey": false, |
| 526 | 526 | "notNull": true |
| 527 | 527 | }, |
| @@ -527,7 +527,7 @@ · 526 unmodified lines | ||
| 527 | 527 | }, |
| 528 | 528 | "name": { |
| 529 | 529 | "name": "name", |
| 530 | − "type": "varchar(255)", | |
| 530 | + "type": "text", | |
| 531 | 531 | "primaryKey": false, |
| 532 | 532 | "notNull": true |
| 533 | 533 | }, |
| @@ -181,7 +181,7 @@ export const definition = pgTable( · 180 unmodified lines | ||
| 181 | 181 | integration: varchar("integration", { length: 255 }).notNull(), |
| 182 | 182 | connection: varchar("connection", { length: 255 }).notNull(), |
| 183 | 183 | plugin_id: text("plugin_id").notNull(), |
| 184 | − name: varchar("name", { length: 255 }).notNull(), | |
| 184 | + name: text("name").notNull(), | |
| 185 | 185 | schema: json("schema").notNull(), |
| 186 | 186 | created_at: timestamp("created_at").notNull(), |
| 187 | 187 | row_id: varchar("row_id", { length: 255 }) |
| @@ -336,7 +336,12 @@ export const coreTables = defineTables({ · 335 unmodified lines | ||
| 336 | 336 | integration: keyColumn("integration"), |
| 337 | 337 | connection: keyColumn("connection"), |
| 338 | 338 | plugin_id: textColumn("plugin_id"), |
| 339 | − name: keyColumn("name"), | |
| 339 | + // text, NOT keyColumn: $def names exceed 255 chars in production (deep | |
| 340 | + // OpenAPI component paths), and the live cloud column has been TEXT | |
| 341 | + // since the baseline was patched for it. A varchar(255) here re-emits a | |
| 342 | + // narrowing ALTER on every drizzle-kit generate, which fails on real | |
| 343 | + // rows (22001) — that drift broke cloud migration 0013 once already. | |
| 344 | + name: textColumn("name"), | |
| 340 | 345 | schema: jsonColumn("schema"), |
| 341 | 346 | created_at: dateColumn("created_at"), |
| 342 | 347 | }, |