I would like to add that if you don't want to use migrationBuilder.Sql() and are trying to change the column type via standard EF Core methods, there is a workaround. The only way to get around this without SQL is to create a new column, drop the old one, and rename the new one.