Skip to content

Commit 7684697

Browse files
authored
Merge pull request #86 from github/caol-ila-rva-fix
Restore RVA compatibility
2 parents e872aa4 + dd767f8 commit 7684697

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

KustoSchemaTools/Model/Table.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ public class Table : IKustoBaseEntity
2020
public string DocString { get; set; }
2121
[Obsolete("Use policies instead")]
2222
public string? RowLevelSecurity { get; set; }
23-
23+
[Obsolete("Use policies instead")]
24+
public bool RestrictedViewAccess { get; set; } = false;
25+
2426
public List<DatabaseScriptContainer> CreateScripts(string name, bool isNew)
2527
{
2628
var scripts = new List<DatabaseScriptContainer>();

KustoSchemaTools/Parser/DatabaseCleanup.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ public void CleanUp(Database database)
7272
policy.RowLevelSecurity = entity.Value.RowLevelSecurity;
7373
}
7474

75+
policy.RestrictedViewAccess |= entity.Value.RestrictedViewAccess;
76+
7577
if (policy.Retention == database.DefaultRetentionAndCache.Retention)
7678
{
7779
policy.Retention = null;
@@ -110,6 +112,7 @@ public void CleanUp(Database database)
110112
policy.RowLevelSecurity = entity.Value.RowLevelSecurity;
111113
}
112114

115+
113116
if (policy.Retention == database.DefaultRetentionAndCache.Retention)
114117
{
115118
policy.Retention = null;

0 commit comments

Comments
 (0)