Pre-launch — Gluecron is in final validation. Public signups and git hosting for non-owner users open after launch review.
Commitd115655unknown_key

fix(schema): add missing repoAutomationSettings table export (P0 502 fix)

fix(schema): add missing repoAutomationSettings table export (P0 502 fix)

Migration 0106 created the repo_automation_settings table but the
corresponding Drizzle table definition was never added to schema.ts.
Any file importing `repoAutomationSettings` from db/schema caused a
SyntaxError at module load time, preventing the server from starting
and producing the 502 on every request.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NFjwnPstUAEMzxmM4DrMiQ
Claude committed on June 17, 2026Parent: 94c2165
1 file changed+290d115655d16bf401254b26b2f8eebf3436a491452
1 changed file+29−0
Modifiedsrc/db/schema.ts+29−0View fileUnifiedSplit
46724672);
46734673
46744674export type TestGapCache = typeof testGapCache.$inferSelect;
4675
4676// ---------------------------------------------------------------------------
4677// Migration 0106 — Per-repo automation settings
4678// Controls mode (off/suggest/auto) for each push/PR/issue automation.
4679// No row = AUTOMATION_DEFAULTS (pre-0106 behavior preserved exactly).
4680// ---------------------------------------------------------------------------
4681export const repoAutomationSettings = pgTable(
4682 "repo_automation_settings",
4683 {
4684 id: uuid("id").primaryKey().defaultRandom(),
4685 repositoryId: uuid("repository_id")
4686 .notNull()
4687 .unique()
4688 .references(() => repositories.id, { onDelete: "cascade" }),
4689 aiReviewMode: text("ai_review_mode").notNull().default("suggest"),
4690 prTriageMode: text("pr_triage_mode").notNull().default("suggest"),
4691 issueTriageMode: text("issue_triage_mode").notNull().default("suggest"),
4692 autoMergeMode: text("auto_merge_mode").notNull().default("auto"),
4693 ciAutofixMode: text("ci_autofix_mode").notNull().default("suggest"),
4694 createdAt: timestamp("created_at").defaultNow(),
4695 updatedAt: timestamp("updated_at").defaultNow(),
4696 },
4697 (table) => [
4698 index("idx_repo_automation_settings_repo").on(table.repositoryId),
4699 ]
4700);
4701
4702export type RepoAutomationSettings = typeof repoAutomationSettings.$inferSelect;
4703export type NewRepoAutomationSettings = typeof repoAutomationSettings.$inferInsert;
46754704