mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 10:58:30 -05:00
Fix for Database prototype file is not log file error, as this code is for create database (#2144)
This commit is contained in:
committed by
GitHub
parent
ddea088a18
commit
1d05cdb131
@@ -401,8 +401,7 @@ namespace Microsoft.SqlTools.ServiceLayer.ObjectManagement
|
|||||||
prototype.Name = database.Name;
|
prototype.Name = database.Name;
|
||||||
|
|
||||||
// Update database file names now that we have a database name
|
// Update database file names now that we have a database name
|
||||||
// Modifying logical file name is not supported in SQL Database Managed Instance.
|
if (viewParams.IsNewObject && !prototype.HideFileSettings)
|
||||||
if (!prototype.HideFileSettings && dataContainer.Server.DatabaseEngineEdition != DatabaseEngineEdition.SqlManagedInstance)
|
|
||||||
{
|
{
|
||||||
var sanitizedName = DatabaseUtils.SanitizeDatabaseFileName(prototype.Name);
|
var sanitizedName = DatabaseUtils.SanitizeDatabaseFileName(prototype.Name);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user