require confirmation when risks present (#1668)

This commit is contained in:
Alan Ren
2022-09-02 12:50:30 -07:00
committed by GitHub
parent 41556aea54
commit 7f675b884f
7 changed files with 41 additions and 8 deletions

View File

@@ -9429,6 +9429,14 @@ namespace Microsoft.SqlTools.ServiceLayer
}
}
public static string TableDesignerConfirmationText
{
get
{
return Keys.GetString(Keys.TableDesignerConfirmationText);
}
}
public static string GetUserDefinedObjectsFromModelFailed
{
get
@@ -13596,6 +13604,9 @@ namespace Microsoft.SqlTools.ServiceLayer
public const string ComputedColumnNeedToBePersistedInForeignKeyRuleDescription = "ComputedColumnNeedToBePersistedInForeignKeyRuleDescription";
public const string TableDesignerConfirmationText = "TableDesignerConfirmationText";
public const string SqlProjectModelNotFound = "SqlProjectModelNotFound";

View File

@@ -5206,6 +5206,10 @@ The Query Processor estimates that implementing the following index could improv
<comment>.
Parameters: 0 - columnName (string), 1 - foreignKeyName (string) </comment>
</data>
<data name="TableDesignerConfirmationText" xml:space="preserve">
<value>I have read the summary and understand the potential risks.</value>
<comment></comment>
</data>
<data name="SqlProjectModelNotFound" xml:space="preserve">
<value>Could not find SQL model from project: {0}.</value>
<comment>.

View File

@@ -2382,6 +2382,7 @@ ColumnCanOnlyAppearOnceInIndexIncludedColumnsRuleDescription(string columnName,
ColumnCannotDuplicateWitIndexKeyColumnsRuleDescription(string columnName, string indexName, int rowNumber) = Included column with name '{0}' has already been part of the index '{1}' and it cannot be included. Row number: {2}.
ComputedColumnNeedToBePersistedAndNotNullInPrimaryKeyRuleDescription(string columnName) = The computed column with name '{0}' has to be persisted and not nullable to be part of a primary key.
ComputedColumnNeedToBePersistedInForeignKeyRuleDescription(string columnName, string foreignKeyName) = The computed column with name '{0}' has to be persisted to be part of the foreign key '{1}'.
TableDesignerConfirmationText = I have read the summary and understand the potential risks.
############################################################################
# TSql Model

View File

@@ -6360,6 +6360,11 @@ The Query Processor estimates that implementing the following index could improv
<note>.
Parameters: 0 - columnName (string), 1 - foreignKeyName (string) </note>
</trans-unit>
<trans-unit id="TableDesignerConfirmationText">
<source>I have read the summary and understand the potential risks.</source>
<target state="new">I have read the summary and understand the potential risks.</target>
<note></note>
</trans-unit>
</body>
</file>
</xliff>