-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
bugSomething isn't workingSomething isn't working
Description
- SqlPackage Version: 170.2.70.1
- .NET Core: 10.0.100
- Environment (local platform and source/target platforms):
- Local Environment: Linux docker container (mcr.microsoft.com/dotnet/sdk:10.0)
- Source: dacpac file
- Target: MS SQL Server 15.0.2155.2
Steps to Reproduce:
- Create a SqlProject with
dotnet new sqlproj -n VarCharSizeIncreaseTest - Change the DSP Property to
Microsoft.Data.Tools.Schema.Sql.Sql150DatabaseSchemaProviderto be able to targetMS SQL Server 15.0.2155.2 - Add a
TestTable.sqlcontaining avarchar(20)field. (e.g.CREATE TABLE [dbo].[TestTable]([Text] [varchar](20) NULL);) - Build and publish this project to a MS SQL Server.
- Change the field type from step 1 to
[varchar](30). - Deploy (or generate a Script) again against the same database as before to update it.
- This produces a warning for data loss and a check that fails if the Table contains any data. Even though the change does not lead to data loss in any way.
Did this occur in prior versions? If not - which version(s) did it work in?
This problem does not occur in version 170.0.48-preview or earlier.
Related Issues
I found this Issue #453 which described a similar issue but seemingly depending on the collation, which my problem does not. If I see this correctly, the Issue is already resolved and the fix should have been released in 170.0, but I am still experiencing the problem.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working