The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Check db version instead of kps version for pitr availability
Joshen Lime281ce19bd99
diff --git a/studio/components/interfaces/Billing/AddOns/PITRDurationSelection.tsx b/studio/components/interfaces/Billing/AddOns/PITRDurationSelection.tsxindex 5f35d71f5f7..cf97a169668 100644--- a/studio/components/interfaces/Billing/AddOns/PITRDurationSelection.tsx+++ b/studio/components/interfaces/Billing/AddOns/PITRDurationSelection.tsx@@ -29,7 +29,7 @@ const PITRDurationSelection: FC<Props> = ({const addonUpdateDisabled = useFlag('disableProjectCreationAndUpdate')// Only projects of version greater than supabase-postgrest-14.1.0.44 can use PITR- const canUsePITR = getSemanticVersion(ui.selectedProject?.kpsVersion ?? '') > 141044+ const canUsePITR = getSemanticVersion(ui.selectedProject?.dbVersion ?? '') > 141044return (<div className="space-y-4">diff --git a/studio/types/base.ts b/studio/types/base.tsindex 002e303ee2c..c86d136afe7 100644--- a/studio/types/base.ts+++ b/studio/types/base.ts@@ -25,6 +25,7 @@ export interface ProjectBase {export interface Project extends ProjectBase {// available after projects.fetchDetailconnectionString?: string+ dbVersion?: stringkpsVersion?: stringrestUrl?: string// store subscription tier products.metadata.supabase_prod_id