https://discord.umbraco.com logo
#help-with-umbraco
Migrations on new database
# help-with-umbraco
d

diriana

10/04/2023, 8:54 AM
Hi. We've recently run into a problem with migrations and setting up a new database. If we create/clone a project (U10.7+) with migrationplans, or including packages that has migration plans, and try to set up a new, empty MSSQL database for the project, it seems the migration plans attempt to run before the umbraco database installation prompt, with a "Microsoft.Data.SqlClient.SqlException: 'Invalid object name 'umbracoKeyValue'.'" Obviously because the UmbracoKeyValue table has not been made. Any alternatives to disabling the migrationplans/packages for the first run, or getting an existing database from a colleague?