Option to auto create Umbraco Database #15294
Closed
royberris
started this conversation in
Features and ideas
Replies: 1 comment 1 reply
-
Hi @royberris This should already be possible if you set |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When working with Umbraco and SQL Server we need to manually create a database before we can connect to it. When working with containerized databases in development this is quite annoying because it requires a bulky auto create script when starting up the container. Same thing for cloud databases.
I would like to see an option where Umbraco can create a database if it does not exists when the given user has the rights.
When working with EF Core for example we have the option to run migrations on startup, which will automatically create a database if it does not exist. Or we can use the
EnsureCreated
on a database. Here it is also used to create all tables.https://learn.microsoft.com/en-us/ef/core/managing-schemas/ensure-created#ensurecreated
For Umbraco it would be a nice step when running the installer for example? Allowing us to check a box to create the database. Or an option when using unattended install.
Beta Was this translation helpful? Give feedback.
All reactions