Skip to content

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

chore: clean up removed field handling (#36954)

Bobbie Soedirgo78419c7047ca
diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx
index ca84227d92f..fad9ce3c3c4 100644
--- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx
+++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx
@@ -27,7 +27,6 @@ import {
import { ProjectUpgradeAlert } from '../General/Infrastructure/ProjectUpgradeAlert'
import InstanceConfiguration from './InfrastructureConfiguration/InstanceConfiguration'
import {
- DatabaseExtensionsWarning,
ObjectsToBeDroppedWarning,
ReadReplicasWarning,
UnsupportedExtensionsWarning,
@@ -58,9 +57,6 @@ const InfrastructureInfo = () => {
isSuccess: isSuccessServiceVersions,
} = useProjectServiceVersionsQuery({ projectRef: ref })
- const { data: projectUpgradeEligibilityData } = useProjectUpgradeEligibilityQuery({
- projectRef: ref,
- })
const { data: databases } = useReadReplicasQuery({ projectRef: ref })
const { current_app_version, current_app_version_release_channel, latest_app_version } =
data || {}
@@ -79,8 +75,6 @@ const InfrastructureInfo = () => {
const isInactive = project?.status === 'INACTIVE'
const hasReadReplicas = (databases ?? []).length > 1
- // @ts-ignore [Bobbie] to be removed after 2025-06-30 prod deploy
- const hasExtensionDependentObjects = (data?.extension_dependent_objects ?? []).length > 0
const hasObjectsToBeDropped = (data?.objects_to_be_dropped ?? []).length > 0
const hasUnsupportedExtensions = (data?.unsupported_extensions || []).length > 0
const hasObjectsInternalSchema = (data?.user_defined_objects_in_internal_schemas || []).length > 0
@@ -202,16 +196,7 @@ const InfrastructureInfo = () => {
) : null}
{!data.eligible ? (
- hasExtensionDependentObjects ? (
- <DatabaseExtensionsWarning
- // @ts-ignore
- extensions={data.extension_dependent_objects ?? []}
- potentialBreakingChanges={
- // @ts-ignore
- projectUpgradeEligibilityData?.potential_breaking_changes
- }
- />
- ) : hasObjectsToBeDropped ? (
+ hasObjectsToBeDropped ? (
<ObjectsToBeDroppedWarning
objectsToBeDropped={data.objects_to_be_dropped}
/>
diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/UpgradeWarnings.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/UpgradeWarnings.tsx
index 4f4e9d8679a..29e67a85e57 100644
--- a/apps/studio/components/interfaces/Settings/Infrastructure/UpgradeWarnings.tsx
+++ b/apps/studio/components/interfaces/Settings/Infrastructure/UpgradeWarnings.tsx
@@ -14,52 +14,6 @@ export const ReadReplicasWarning = ({ latestPgVersion }: { latestPgVersion: stri
)
}
-export const DatabaseExtensionsWarning = ({
- extensions,
- potentialBreakingChanges,
-}: {
- extensions: string[]
- potentialBreakingChanges?: 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_>
- <AlertDescription_Shadcn_ className="flex flex-col gap-3">
- <div>
- <p className="mb-1">You'll need to remove the following extensions before upgrading:</p>
-
- <ul className="pl-4">
- {extensions.map((obj) => (
- <li className="list-disc" key={obj}>
- {obj}
- </li>
- ))}
- </ul>
- </div>
- <p>
- {potentialBreakingChanges?.includes('pg17_upgrade_unsupported_extensions')
- ? 'These extensions are not supported in newer versions of Supabase Postgres. If you are not using them, it is safe to remove them.'
- : 'Check the docs for which ones might need to be removed.'}
- </p>
- <div>
- <Button size="tiny" type="default" asChild>
- <a
- target="_blank"
- rel="noreferrer"
- href="https://supabase.com/docs/guides/platform/upgrading#extensions"
- >
- View docs
- </a>
- </Button>
- </div>
- </AlertDescription_Shadcn_>
- </Alert_Shadcn_>
- )
-}
-
export const ObjectsToBeDroppedWarning = ({
objectsToBeDropped,
}: {