-
-
Notifications
You must be signed in to change notification settings - Fork 204
Add option to install the API without having to install the database #294
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This one seems pretty straightforward... any idea how complex this is @wellingguzman ? |
The title and the description leads me to different thing. Do we want to create the database even when it doesn't exists, or install a new project even if that database is not empty, or both? At the moment you can install a new project to a database that already exists, as long as there's not a single directus table. if you want to overwrite everything you set the Are we looking for creating the database when it doesn't exists? @benhaynes @rijkvanzanten |
This is what the issue is about. Installing a new project on a database that already has the directus_* tables. |
Would we do a check to make sure the existing |
Ah understood. What we are doing is creating the config files as you described above. Some questions:
Scenario:
|
Maybe we should add another flag, like force, that will install it on top of an existing installation.
By default, the API will return an error if the data already exists (that way the app can render a confirm modal) Thoughts @wellingguzman? |
You right, a new flag is better. The API already throws an error when there's already Directus Tables. One more question, If |
I think so, yeah! |
When you already have a database, or you use an existing SQL copy, the post to /instances will fail. We should add a param that allows the user to create the config file without having to overwrite the DB
The text was updated successfully, but these errors were encountered: