diff --git a/apps/studio/components/interfaces/Settings/General/Infrastructure/ProjectUpgradeAlert.tsx b/apps/studio/components/interfaces/Settings/General/Infrastructure/ProjectUpgradeAlert.tsx index 1662ce1b94e..df686fb82b9 100644 --- a/apps/studio/components/interfaces/Settings/General/Infrastructure/ProjectUpgradeAlert.tsx +++ b/apps/studio/components/interfaces/Settings/General/Infrastructure/ProjectUpgradeAlert.tsx @@ -1,5 +1,4 @@ import { zodResolver } from '@hookform/resolvers/zod' -import { AlertTriangle } from 'lucide-react' import Link from 'next/link' import { useRouter } from 'next/router' import { useEffect, useState } from 'react' @@ -23,9 +22,6 @@ import { useProjectUpgradeMutation } from 'data/projects/project-upgrade-mutatio import { useSelectedOrganizationQuery } from 'hooks/misc/useSelectedOrganization' import { DOCS_URL, PROJECT_STATUS } from 'lib/constants' import { - AlertDescription_Shadcn_, - AlertTitle_Shadcn_, - Alert_Shadcn_, Badge, FormControl_Shadcn_, FormField_Shadcn_, @@ -157,12 +153,6 @@ export const ProjectUpgradeAlert = () => { >
- {/* */}

@@ -202,46 +192,47 @@ export const ProjectUpgradeAlert = () => { /> )} {legacyAuthCustomRoles.length > 0 && ( - - - - Custom Postgres roles will not work automatically after upgrade - - -

You must run a series of commands after upgrading.

-

- This is because new Postgres versions use scram-sha-256 authentication by - default and do not support md5, as it has been deprecated. -

-
-

Run the following commands after the upgrade:

+ +

+ New Postgres versions use{' '} + scram-sha-256 authentication by + default and do not support md5, + as it has been deprecated. +

+ +

+ Note the following following commands and run them after upgrading: +

{legacyAuthCustomRoles.map((role) => (
- ALTER ROLE {role} WITH PASSWORD - 'newpassword'; + ALTER ROLE {role} WITH + PASSWORD 'newpassword';
))}
-
-
+ + } + actions={ +
- - + } + /> )}