mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 18:05:11 +03:00
Check db version instead of kps version for pitr availability
This commit is contained in:
1 parent
7ec8a355b7
commit
e281ce19bd
2 files changed
+2
-1
No files matched your search
@@ -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 ?? '') > 141044
|
||||
|
||||
return (
|
||||
<div className="space-y-4">
|
||||
|
||||
@@ -25,6 +25,7 @@ export interface ProjectBase {
|
||||
export interface Project extends ProjectBase {
|
||||
// available after projects.fetchDetail
|
||||
connectionString?: string
|
||||
dbVersion?: string
|
||||
kpsVersion?: string
|
||||
restUrl?: string
|
||||
// store subscription tier products.metadata.supabase_prod_id
|
||||
|
||||
Reference in new issue
Block a user