feat: add apps table and app-scoped schema for multi-app support#5094
Draft
feat: add apps table and app-scoped schema for multi-app support#5094
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Member
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Feb 19, 2026
This was referenced Feb 19, 2026
a8f53bd to
e9aac9f
Compare
e9aac9f to
1bb80b5
Compare
19 tasks
Introduces the app entity and app-scoped settings/env var tables to support multiple apps per project. Adds app_id columns to deployments, deployment_steps, instances, frontline_routes, and cilium_network_policies. New Drizzle tables: apps, app_build_settings, app_runtime_settings, app_environment_variables, app_internal_services. New SQL queries for app CRUD, settings upsert, sibling lookups, and inter-app service tracking. Updates existing insert queries to include app_id parameter. Also adds AppPrefix/AppInternalSvcPrefix UIDs and LabelKeyAppID krane label.
Remove FindSiblingAppVarsByProjectAndEnv, ListSiblingApps, and ListEnvironmentsByProject — none have call sites in the codebase.
- ClickHouse migration adds app_id column to runtime_logs_raw_v1 - Schema reference updated to include app_id - Dev Vector config extracts unkey.com/app.id pod label
Each app now has its own GitHub repo connection (UNIQUE(app_id)) instead of one connection per project. Drizzle relations updated accordingly: apps.githubRepoConnection (one), projects.githubRepoConnections (many).
b22266a to
58817ff
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What does this PR do?
Fixes # (issue)
If there is not an issue for this, please create one first. This is used to tracking purposes and also helps us understand why this PR exists
Type of change
How should this be tested?
Checklist
Required
pnpm buildpnpm fmtmake fmton/godirectoryconsole.logsgit pull origin mainAppreciated