The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: diff all schemas on branch merge (#37754)
Han Qiaoc32c74e34c82
diff --git a/apps/docs/content/guides/deployment/branching/dashboard.mdx b/apps/docs/content/guides/deployment/branching/dashboard.mdxindex 2d938165736..a7577014d5a 100644--- a/apps/docs/content/guides/deployment/branching/dashboard.mdx+++ b/apps/docs/content/guides/deployment/branching/dashboard.mdx@@ -58,8 +58,6 @@ When reviewing a merge request you may see a notice at the top of the page askinThere are a few limitations you should be aware of before deciding to use branching without git.- Custom roles created through the dashboard are not captured on branch creation-- Only public schema changes are supported right now-- Extensions are not included in the diff process- Branches can only be merged to main; merging between preview branches is not supported- If your branch is out of date, you can pull in latest changes from main, but keep in mind that all functions will be overwritten- Deleting functions must be done manually on main branchdiff --git a/apps/studio/components/interfaces/App/FeaturePreview/Branching2Preview.tsx b/apps/studio/components/interfaces/App/FeaturePreview/Branching2Preview.tsxindex 6aba6698b34..9bf5f6d30c1 100644--- a/apps/studio/components/interfaces/App/FeaturePreview/Branching2Preview.tsx+++ b/apps/studio/components/interfaces/App/FeaturePreview/Branching2Preview.tsx@@ -25,10 +25,6 @@ export const Branching2Preview = () => {<p className="text-sm text-foreground mb-2 font-medium">Limitations:</p><ul className="list-disc pl-6 text-sm text-foreground-light space-y-1"><li>Custom roles created through the dashboard are not captured on branch creation.</li>- <li>- Only <code>public</code> schema changes are supported right now.- </li>- <li>Extensions are not included in the diff process</li><li>Branches can only be merged to <code>main</code>; merging between preview branches isnot supported.diff --git a/apps/studio/data/branches/branch-merge-mutation.ts b/apps/studio/data/branches/branch-merge-mutation.tsindex bceacc38223..4d2fe1effc1 100644--- a/apps/studio/data/branches/branch-merge-mutation.ts+++ b/apps/studio/data/branches/branch-merge-mutation.ts@@ -21,7 +21,7 @@ export async function mergeBranch({migration_version,}: BranchMergeVariables) {// Step 1: Get the diff output from the branch- const diffContent = await getBranchDiff({ branchId: id, includedSchemas: 'public' })+ const diffContent = await getBranchDiff({ branchId: id })let migrationCreated = falsediff --git a/apps/www/_blog/2025-07-16-branching-2-0.mdx b/apps/www/_blog/2025-07-16-branching-2-0.mdxindex 3d1342e0d0d..a8e88087eb6 100644--- a/apps/www/_blog/2025-07-16-branching-2-0.mdx+++ b/apps/www/_blog/2025-07-16-branching-2-0.mdx@@ -108,8 +108,6 @@ When ready, click the merge button and watch your changes be deployed to productThere are a few limitations you should be aware of before deciding to use branching without git.- Custom roles created through the dashboard are not captured on branch creation.-- Only public schema changes are supported right now.-- Extensions are not included in the diff process- Branches can only be merged to main; merging between preview branches is not supported.- If your branch is out of date, you can pull in latest changes from main, but keep in mind that all functions will be overwritten.- Deleting functions must be done manually on main branch.