Skip to content

Commit a3ca09c

Browse files
committed
Update SQL that contains isMaster
1 parent f18af9a commit a3ca09c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ServerRegistrationRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public void DeactiveStaleServers(TimeSpan staleTimeout)
121121
{
122122
var timeoutDate = DateTime.Now.Subtract(staleTimeout);
123123

124-
Database.Update<ServerRegistrationDto>("SET isActive=0, isMaster=0 WHERE lastNotifiedDate < @timeoutDate", new { /*timeoutDate =*/ timeoutDate });
124+
Database.Update<ServerRegistrationDto>("SET isActive=0, isSchedulingPublisher=0 WHERE lastNotifiedDate < @timeoutDate", new { /*timeoutDate =*/ timeoutDate });
125125
ClearCache();
126126
}
127127
}

src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/NPocoTests/NPocoBulkInsertTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public void Generate_Bulk_Import_Sql()
175175
// Assert
176176
Assert.That(
177177
commands[0].CommandText,
178-
Is.EqualTo("INSERT INTO [umbracoServer] ([umbracoServer].[address], [umbracoServer].[computerName], [umbracoServer].[registeredDate], [umbracoServer].[lastNotifiedDate], [umbracoServer].[isActive], [umbracoServer].[isMaster]) VALUES (@0,@1,@2,@3,@4,@5), (@6,@7,@8,@9,@10,@11)"));
178+
Is.EqualTo("INSERT INTO [umbracoServer] ([umbracoServer].[address], [umbracoServer].[computerName], [umbracoServer].[registeredDate], [umbracoServer].[lastNotifiedDate], [umbracoServer].[isActive], [umbracoServer].[isSchedulingPublisher]) VALUES (@0,@1,@2,@3,@4,@5), (@6,@7,@8,@9,@10,@11)"));
179179
}
180180

181181
[Test]

0 commit comments

Comments
 (0)