- Once the above objects are exported and removed, you can proceed to
- upgrade your project, and re-import the objects after the upgrade
- operation is complete. Please refer to the docs on additional extensions
- that might also need to be dropped.
+ {!data?.eligible && (data?.extension_dependent_objects || []).length > 0 && (
+
+ New version of Postgres available
+
+
+
+ This project cannot be upgraded due to the following extension dependent
+ objects:
+ Once the above objects are exported and removed, you can proceed to upgrade
+ your project, and re-import the objects after the upgrade operation is
+ complete. Please refer to the docs on additional extensions that might also
+ need to be dropped.
+
+
+
+
+
+
+ )}
>
)}
diff --git a/apps/studio/components/ui/ProjectUpgradeFailedBanner.tsx b/apps/studio/components/ui/ProjectUpgradeFailedBanner.tsx
index 3acd4028082..9b1cfe5fee3 100644
--- a/apps/studio/components/ui/ProjectUpgradeFailedBanner.tsx
+++ b/apps/studio/components/ui/ProjectUpgradeFailedBanner.tsx
@@ -1,18 +1,17 @@
+import { DatabaseUpgradeStatus } from '@supabase/shared-types/out/events'
+import { useParams } from 'common'
import dayjs from 'dayjs'
import Link from 'next/link'
import { useState } from 'react'
import { Alert, Button, IconX } from 'ui'
-import { useParams } from 'common/hooks'
-import { IS_PLATFORM } from 'lib/constants'
+
import { useProjectUpgradingStatusQuery } from 'data/config/project-upgrade-status-query'
-import { DatabaseUpgradeStatus } from '@supabase/shared-types/out/events'
-import { useFlag } from 'hooks'
+import { IS_PLATFORM } from 'lib/constants'
// [Joshen] Think twice about the category though - it doesn't correspond
const ProjectUpgradeFailedBanner = () => {
const { ref } = useParams()
- const showDbUpgrades = useFlag('databaseUpgrades')
const { data } = useProjectUpgradingStatusQuery({ projectRef: ref }, { enabled: IS_PLATFORM })
const { status, initiated_at, error } = data?.databaseUpgradeStatus ?? {}
@@ -35,7 +34,7 @@ const ProjectUpgradeFailedBanner = () => {
localStorage.setItem(key, 'true')
}
- if (!isFailed || !showMessage || !showDbUpgrades) return null
+ if (!isFailed || !showMessage) return null
return (