Remove as an upgrade migration step as new installs will never get the marker file
This commit is contained in:
@@ -6,7 +6,6 @@ using Umbraco.Core.Migrations.Upgrade.Common;
|
||||
using Umbraco.Core.Migrations.Upgrade.V_8_0_0;
|
||||
using Umbraco.Core.Migrations.Upgrade.V_8_0_1;
|
||||
using Umbraco.Core.Migrations.Upgrade.V_8_1_0;
|
||||
using Umbraco.Core.Migrations.Upgrade.V_8_10_0;
|
||||
using Umbraco.Core.Migrations.Upgrade.V_8_6_0;
|
||||
using Umbraco.Core.Migrations.Upgrade.V_8_8_0;
|
||||
|
||||
@@ -199,9 +198,6 @@ namespace Umbraco.Core.Migrations.Upgrade
|
||||
// to 8.8.0
|
||||
To<ExternalLoginTableUserData>("{B5838FF5-1D22-4F6C-BCEB-F83ACB14B575}");
|
||||
|
||||
// to 8.10.0
|
||||
To<SetupAnonInstallTracker>("{DCBA2C6A-01B3-411E-9CDE-0AB9C69EFF33}");
|
||||
|
||||
//FINAL
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,49 +0,0 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Umbraco.Core.IO;
|
||||
using Umbraco.Core.Logging;
|
||||
|
||||
|
||||
namespace Umbraco.Core.Migrations.Upgrade.V_8_10_0
|
||||
{
|
||||
|
||||
public class SetupAnonInstallTracker : MigrationBase
|
||||
{
|
||||
public SetupAnonInstallTracker(IMigrationContext context)
|
||||
: base(context)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds a new file 'telemetrics-id.umb' at /umbraco
|
||||
/// Which will add a GUID inside the file as JSON
|
||||
/// </summary>
|
||||
public override void Migrate()
|
||||
{
|
||||
var telemetricsFilePath = IOHelper.MapPath(SystemFiles.TelemetricsIdentifier);
|
||||
|
||||
// Verify file does not exist already
|
||||
if (File.Exists(telemetricsFilePath))
|
||||
{
|
||||
Logger.Warn<SetupAnonInstallTracker>("When migrating to 8.10.0 the anonymous telemetry file already existsed on disk at {filePath}", telemetricsFilePath);
|
||||
return;
|
||||
}
|
||||
|
||||
// Generate GUID
|
||||
var telemetrySiteIdentifier = Guid.NewGuid();
|
||||
|
||||
// Write file contents
|
||||
try
|
||||
{
|
||||
File.WriteAllText(telemetricsFilePath, telemetrySiteIdentifier.ToString());
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logger.Error<SetupAnonInstallTracker>(ex, "Unable to create telemetry file at {filePath}", telemetricsFilePath);
|
||||
}
|
||||
|
||||
Logger.Info<SetupAnonInstallTracker>("This site has been identified with an anynomous id {telemetrySiteId} for telemetrics and written to {filePath}", telemetrySiteIdentifier, telemetricsFilePath);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -132,7 +132,6 @@
|
||||
<Compile Include="Migrations\Upgrade\V_8_0_0\Models\ContentTypeDto80.cs" />
|
||||
<Compile Include="Migrations\Upgrade\V_8_0_0\Models\PropertyDataDto80.cs" />
|
||||
<Compile Include="Migrations\Upgrade\V_8_0_0\Models\PropertyTypeDto80.cs" />
|
||||
<Compile Include="Migrations\Upgrade\V_8_10_0\SetupAnonInstallTracker.cs" />
|
||||
<Compile Include="Migrations\Upgrade\V_8_8_0\ExternalLoginTableUserData.cs" />
|
||||
<Compile Include="Models\Blocks\BlockEditorDataConverter.cs" />
|
||||
<Compile Include="Models\Blocks\BlockEditorData.cs" />
|
||||
|
||||
Reference in New Issue
Block a user