Skip to content

Commit b705680

Browse files
author
Thomas Mahlberg
committed
Fix small issues
1 parent 9727ffe commit b705680

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

KustoSchemaTools/Changes/DatabaseChanges.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ public static List<IChange> GenerateChanges(Database oldState, Database newState
4545

4646
result.AddRange(GenerateScriptCompareChanges(oldState, newState, db => db.Tables, nameof(newState.Tables), log));
4747
result.AddRange(GenerateScriptCompareChanges(oldState, newState, db => db.MaterializedViews, nameof(newState.MaterializedViews), log));
48-
result.AddRange(GenerateScriptCompareChanges(oldState, newState, db => db.ContinuousExports, nameof(newState.MaterializedViews), log));
49-
result.AddRange(GenerateScriptCompareChanges(oldState, newState, db => db.Functions, nameof(newState.MaterializedViews), log));
48+
result.AddRange(GenerateScriptCompareChanges(oldState, newState, db => db.ContinuousExports, nameof(newState.ContinuousExports), log));
49+
result.AddRange(GenerateScriptCompareChanges(oldState, newState, db => db.Functions, nameof(newState.Functions), log));
5050
result.AddRange(GenerateScriptCompareChanges(oldState, newState, db => db.ExternalTables, nameof(newState.ExternalTables), log));
5151

5252
if (newState.EntityGroups.Any())

KustoSchemaTools/DeletionChange.cs renamed to KustoSchemaTools/Changes/DeletionChange.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
using KustoSchemaTools.Changes;
2-
using KustoSchemaTools.Parser;
1+
using KustoSchemaTools.Parser;
32
using System.Text;
43

5-
namespace KustoSchemaTools
4+
namespace KustoSchemaTools.Changes
65
{
76
public class DeletionChange : IChange
87
{
@@ -16,8 +15,8 @@ public DeletionChange(string entity, string entityType)
1615

1716
public string Entity { get; set; }
1817

19-
public List<DatabaseScriptContainer> Scripts => new List<DatabaseScriptContainer> { new DatabaseScriptContainer("Deletion",0,$".drop {EntityType} {Entity}") };
20-
18+
public List<DatabaseScriptContainer> Scripts => new List<DatabaseScriptContainer> { new DatabaseScriptContainer("Deletion", 0, $".drop {EntityType} {Entity}") };
19+
2120
public string Markdown
2221
{
2322
get
@@ -27,7 +26,7 @@ public string Markdown
2726
sb.AppendLine();
2827
sb.AppendLine("<table>");
2928
sb.AppendLine($"<tr></tr>");
30-
29+
3130
sb.AppendLine("<tr>");
3231
sb.AppendLine($"<td colspan=\"2\">:recycle:</td>");
3332
sb.AppendLine($"<td colspan=\"10\"><pre lang=\"kql\">{Scripts[0].Script.Text.PrettifyKql()}</pre></td>");

0 commit comments

Comments
 (0)