Skip to content

Commit

Permalink
Update sqlite updateColumn
Browse files Browse the repository at this point in the history
  • Loading branch information
DotNetNext committed Dec 30, 2023
1 parent e973e92 commit 8537cbe
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,12 @@ protected override string IsAnyIndexSql
public override bool UpdateColumn(string tableName, DbColumnInfo column)
{
try
{
{
if (column.IsPrimarykey)
{
Check.ExceptionEasy("Sqlite no support alter column primary key","Sqlite不支持修改主键");
}

// Start a transaction
this.Context.Ado.BeginTran();

Expand Down

0 comments on commit 8537cbe

Please sign in to comment.