Grammar (do -> does) and some extra text

(cherry picked from commit 9bd6500bc7)
This commit is contained in:
Sebastiaan Janssen
2022-08-29 13:23:49 +02:00
parent 87c06f5f98
commit 48bd4a5f27

View File

@@ -26,7 +26,7 @@ public class AlterTableBuilder : ExpressionBuilderBase<AlterTableExpression, IAl
{
if (_context.Database.DatabaseType.IsSqlite())
{
throw new NotSupportedException($"SQLite do not support ALTER TABLE operations.Instead you will have to:{Environment.NewLine}1. Create a temp table.{Environment.NewLine}2. Copy data from existing table into temp table.{Environment.NewLine}3. Delete existing table.{Environment.NewLine}4. Create new table with existing name but new signature{Environment.NewLine}5. Copy data from temp table into the new table.{Environment.NewLine}6. Delete temp table.");
throw new NotSupportedException($"SQLite does not support ALTER TABLE operations. Instead you will have to:{Environment.NewLine}1. Create a temp table.{Environment.NewLine}2. Copy data from existing table into the temp table.{Environment.NewLine}3. Delete the existing table.{Environment.NewLine}4. Create a new table with the name of the table you're trying to alter, but with a new signature{Environment.NewLine}5. Copy data from the temp table into the new table.{Environment.NewLine}6. Delete the temp table.");
}
Expression.Execute();
}