The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Remove the check for connection string in create schema mutation (#22229)
Joshen Lim5e5586d0ad47
diff --git a/apps/studio/data/database/schema-create-mutation.ts b/apps/studio/data/database/schema-create-mutation.tsindex 4bdc1aca4f8..7e69126af6a 100644--- a/apps/studio/data/database/schema-create-mutation.ts+++ b/apps/studio/data/database/schema-create-mutation.ts@@ -13,14 +13,13 @@ export type SchemaCreateVariables = {export async function createSchema({ name, projectRef, connectionString }: SchemaCreateVariables) {if (!projectRef) throw new Error('projectRef is required')- if (!connectionString) throw new Error('Connection string is required')let headers = new Headers()- headers.set('x-connection-encrypted', connectionString)+ if (connectionString) headers.set('x-connection-encrypted', connectionString)const { data, error } = await post('/platform/pg-meta/{ref}/schemas', {params: {- header: { 'x-connection-encrypted': connectionString },+ header: { 'x-connection-encrypted': connectionString! },path: { ref: projectRef },},body: { name, owner: 'postgres' },