Fixes RePublishAll method to ensure it performs the same function as the legacy Document.RePublishAll - it just
re-generates the XML in the cmsContentXml table. Updates the Sql providers to support truncate table. Updates the RepublishAll unit test. Adds a TruncateTable extension to PetaPoco. Adds locking to certain service methods that perform more than once function.
This commit is contained in:
@@ -42,6 +42,14 @@ namespace Umbraco.Core.Persistence.SqlSyntax
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// SqlCe doesn't support the Truncate Table syntax, so we just have to do a DELETE FROM which is slower but we have no choice.
|
||||
/// </summary>
|
||||
public override string TruncateTable
|
||||
{
|
||||
get { return "DELETE FROM {0}"; }
|
||||
}
|
||||
|
||||
public override string GetIndexType(IndexTypes indexTypes)
|
||||
{
|
||||
string indexType;
|
||||
|
||||
Reference in New Issue
Block a user