postgres-new icon indicating copy to clipboard operation
postgres-new copied to clipboard

[Feature Request] Use existing Project to deploy

Open Siddhesh-Agarwal opened this issue 10 months ago • 2 comments
trafficstars

Feature request

Is your feature request related to a problem? Please describe.

The ability to connect existing projects (while deploying) instead of creating new projects

Describe the solution you'd like

While deploying via Supabase, we should be able to create a new project or use an existing project

Additional context

Image

Siddhesh-Agarwal avatar Jan 21 '25 05:01 Siddhesh-Agarwal

Hey @Siddhesh-Agarwal thanks for the request. Using existing projects can be tricky because of potential conflicts between your database.build migrations and existing schema. One way to deal with this could be to have database.build first import the schema from your existing Supabase project prior to beginning the conversation.

Any other ideas? Let's keep brainstorming how this could work.

gregnr avatar Jan 21 '25 17:01 gregnr

Hey @gregnr, I guess this can work with a simple check: check whether any table exists in the project's DB. A Supbase Project has various aspects, such as auth and storage. If the DB contains no table, we should be able to connect to an existing project

Siddhesh-Agarwal avatar Feb 02 '25 16:02 Siddhesh-Agarwal