Skip to content

Commit

Permalink
Sqlite does not support Alter Column
Browse files Browse the repository at this point in the history
  • Loading branch information
volkanceylan committed Nov 21, 2024
1 parent 1bc1abc commit b3820d2
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ public class NorthwindDB_20241120_1203_LanguageIdToCode : AutoReversingMigration
{
public override void Up()
{
Alter.Table("CategoryLang")
.AlterColumn("LanguageId").AsString(10).NotNullable();
if (!this.IsSqlite())
{
Alter.Table("CategoryLang")
.AlterColumn("LanguageId").AsString(10).NotNullable();

Alter.Table("ProductLang")
.AlterColumn("LanguageId").AsString(10).NotNullable();
Alter.Table("ProductLang")
.AlterColumn("LanguageId").AsString(10).NotNullable();
}
}
}

0 comments on commit b3820d2

Please sign in to comment.