VirtoCommerce / vc-platform

Virto Commerce B2B Innovation Platform
https://virtocommerce.com
Other
1.23k stars 845 forks source link

Prevent database creation on first run #1871

Closed Woland2k closed 3 years ago

Woland2k commented 4 years ago

Describe the bug Currently when there is no database, platform will try creating one automatically. This behavior should be configurable as in many cases i would rather see an error than trying to create a database.

mvktsk commented 3 years ago

Task https://virtocommerce.atlassian.net/browse/VP-7444 has been created

OlegoO commented 3 years ago

You need to create a custom user with limited permission and run Virto Commerce with non-administrator user. So, you will see the error when there is no database.

https://docs.microsoft.com/en-us/azure/azure-sql/database/logins-create-manage#create-accounts-for-non-administrator-users https://docs.microsoft.com/en-us/sql/t-sql/statements/create-login-transact-sql?view=azuresqldb-current&preserve-view=true#examples-1