Skip to main content

upgrade_eligibility

Creates, updates, deletes, gets or lists a upgrade_eligibility resource.

Overview​

Nameupgrade_eligibility
TypeResource
Idsupabase.projects.upgrade_eligibility

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
current_app_versionstring
current_app_version_release_channelstring (internal, alpha, beta, ga, withdrawn, preview)
duration_estimate_hoursnumber
eligibleboolean
latest_app_versionstring
legacy_auth_custom_rolesarray
objects_to_be_droppedarrayUse validation_errors instead.
target_upgrade_versionsarray
unsupported_extensionsarrayUse validation_errors instead.
user_defined_objects_in_internal_schemasarrayUse validation_errors instead.
validation_errorsarray
warningsarray

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectref

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
refstringSupabase project reference (the Project ID shown in the dashboard under Settings -> General; 20 lowercase letters). Resolved from the SUPABASE_PROJECT_ID environment variable when it is set (x-stackQL-envVar); otherwise it must be supplied on every project-scoped query as WHERE ref = '<ref>'. A WHERE value always takes precedence over the environment. (x-stackQL-envVar: SUPABASE_PROJECT_ID)

SELECT examples​

No description available.

SELECT
current_app_version,
current_app_version_release_channel,
duration_estimate_hours,
eligible,
latest_app_version,
legacy_auth_custom_roles,
objects_to_be_dropped,
target_upgrade_versions,
unsupported_extensions,
user_defined_objects_in_internal_schemas,
validation_errors,
warnings
FROM supabase.projects.upgrade_eligibility
WHERE ref = '{{ ref }}' -- required unless SUPABASE_PROJECT_ID is set
;