The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Improve description on b-tree index
Joshen Lim7cc2588e340e
diff --git a/studio/components/interfaces/Database/Indexes/CreateIndexSidePanel.tsx b/studio/components/interfaces/Database/Indexes/CreateIndexSidePanel.tsxindex 1662ee4ab0d..ed43d312130 100644--- a/studio/components/interfaces/Database/Indexes/CreateIndexSidePanel.tsx+++ b/studio/components/interfaces/Database/Indexes/CreateIndexSidePanel.tsx@@ -198,7 +198,9 @@ CREATE INDEX ON "${selectedSchema}"."${selectedEntity}" USING ${selectedIndexTyp{INDEX_TYPES.map((index) => (<Listbox.Option key={index.name} value={index.value} label={index.name}><p>{index.name}</p>- <p>{index.description}</p>+ {index.description.split('\n').map((x, idx) => (+ <p key={`${index.value}-description-${idx}`}>{x}</p>+ ))}</Listbox.Option>))}</Listbox>diff --git a/studio/components/interfaces/Database/Indexes/Indexes.constants.ts b/studio/components/interfaces/Database/Indexes/Indexes.constants.tsindex 2793de20221..a8b922775b8 100644--- a/studio/components/interfaces/Database/Indexes/Indexes.constants.ts+++ b/studio/components/interfaces/Database/Indexes/Indexes.constants.ts@@ -2,7 +2,8 @@ export const INDEX_TYPES = [{name: 'B-Tree',value: 'btree',- description: 'For querying data with equality or range conditions on columns.',+ description:+ 'For querying data with equality or range conditions on columns.\nThis is the default index type that Postgres uses.',},{name: 'Hash',