Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore(studio): improve Postgres upgrade experience (#39189)

Danny White311cc5611a4b
diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx
index 1ff808b8614..343fbc73e6a 100644
--- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx
+++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx
@@ -95,7 +95,7 @@ const InfrastructureInfo = () => {
<ScaffoldSectionDetail>
<h4 className="text-base capitalize m-0">Service Versions</h4>
<p className="text-foreground-light text-sm pr-8 mt-1">
- Information on your provisioned instance.
+ Service versions and upgrade eligibility for your provisioned instance.
</p>
</ScaffoldSectionDetail>
<ScaffoldSectionContent>
diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/UpgradeWarnings.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/UpgradeWarnings.tsx
index 1e147771370..81874dbe478 100644
--- a/apps/studio/components/interfaces/Settings/Infrastructure/UpgradeWarnings.tsx
+++ b/apps/studio/components/interfaces/Settings/Infrastructure/UpgradeWarnings.tsx
@@ -24,36 +24,37 @@ export const ObjectsToBeDroppedWarning = ({
}: {
objectsToBeDropped: string[]
}) => {
+ const { ref } = useParams()
return (
- <Alert_Shadcn_
- variant="warning"
- title="A new version of Postgres is available for your project"
- >
- <AlertTitle_Shadcn_>A new version of Postgres is available</AlertTitle_Shadcn_>
+ <Alert_Shadcn_ title="A newer version of Postgres is available for your project">
+ <AlertTitle_Shadcn_>A newer version of Postgres is available</AlertTitle_Shadcn_>
<AlertDescription_Shadcn_ className="flex flex-col gap-3">
- <div>
- <p className="mb-1">The following objects have to be removed before upgrading:</p>
+ <>
+ <p className="mb-1">
+ The following objects are not supported and must be removed before upgrading.{' '}
+ <InlineLink
+ className="text-foreground-lighter hover:text-foreground transition-colors"
+ href={`${DOCS_URL}/guides/platform/upgrading#extensions`}
+ target="_blank"
+ rel="noopener noreferrer"
+ >
+ Learn more
+ </InlineLink>
+ </p>
- <ul className="pl-4">
+ {/* Old */}
+ <ul className="pl-4 pb-3">
{objectsToBeDropped.map((obj) => (
<li className="list-disc" key={obj}>
{obj}
</li>
))}
</ul>
- </div>
- <p>Check the docs for which objects need to be removed.</p>
- <div>
- <Button size="tiny" type="default" asChild>
- <a
- href={`${DOCS_URL}/guides/platform/upgrading#extensions`}
- target="_blank"
- rel="noreferrer"
- >
- View docs
- </a>
+
+ <Button className="w-fit" size="tiny" type="default" asChild>
+ <Link href={`/project/${ref}/database/functions`}>Manage functions</Link>
</Button>
- </div>
+ </>
</AlertDescription_Shadcn_>
</Alert_Shadcn_>
)
@@ -73,15 +74,15 @@ export const UnsupportedExtensionsWarning = ({
<>
<p className="mb-1">
The following extensions are not supported in newer versions of Postgres and must be
- removed before you can upgrade.{' '}
+ removed before upgrading.{' '}
<InlineLink
+ className="text-foreground-lighter hover:text-foreground transition-colors"
href={`${DOCS_URL}/guides/platform/upgrading#upgrading-to-postgres-17`}
target="_blank"
rel="noopener noreferrer"
>
Learn more
</InlineLink>
- .
</p>
<ul className="border-t border-border-muted flex flex-col divide-y divide-border-muted">
@@ -107,15 +108,13 @@ export const UnsupportedExtensionsWarning = ({
export const UserDefinedObjectsInInternalSchemasWarning = ({ objects }: { objects: string[] }) => {
return (
- <Alert_Shadcn_
- variant="warning"
- title="A new version of Postgres is available for your project"
- >
- <AlertTitle_Shadcn_>A new version of Postgres is available</AlertTitle_Shadcn_>
+ <Alert_Shadcn_ title="A newer version of Postgres is available for your project">
+ <AlertTitle_Shadcn_>A newer version of Postgres is available</AlertTitle_Shadcn_>
<AlertDescription_Shadcn_ className="flex flex-col gap-3">
<div>
<p className="mb-1">
- You'll need to move these objects out of auth/realtime/storage schemas before upgrading:
+ The following objects must be removed from the auth/realtime/storage schemas before
+ upgrading:
</p>
<ul className="pl-4">