The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Chore/fix index delete (#36774)
Terry Sutton2aee61530df9
diff --git a/apps/studio/components/interfaces/Database/Indexes/Indexes.tsx b/apps/studio/components/interfaces/Database/Indexes/Indexes.tsxindex 3eee09b8556..263d20bfd4d 100644--- a/apps/studio/components/interfaces/Database/Indexes/Indexes.tsx+++ b/apps/studio/components/interfaces/Database/Indexes/Indexes.tsx@@ -77,6 +77,7 @@ const Indexes = () => {projectRef: project.ref,connectionString: project.connectionString,name: index.name,+ schema: selectedSchema,})}diff --git a/apps/studio/data/database-indexes/index-delete-mutation.ts b/apps/studio/data/database-indexes/index-delete-mutation.tsindex 13bd3e835da..47dea94fe6d 100644--- a/apps/studio/data/database-indexes/index-delete-mutation.ts+++ b/apps/studio/data/database-indexes/index-delete-mutation.ts@@ -9,14 +9,16 @@ export type DatabaseIndexDeleteVariables = {projectRef: stringconnectionString?: string | nullname: string+ schema: string}export async function deleteDatabaseIndex({projectRef,connectionString,name,+ schema,}: DatabaseIndexDeleteVariables) {- const sql = `drop index if exists "${name}"`+ const sql = `drop index if exists "${schema}"."${name}"`const { result } = await executeSql({projectRef,