WineAttr: Add fill_lower_bins
This commit is contained in:
@ -184,6 +184,8 @@ namespace Elwig.Helpers {
|
|||||||
GROUP BY year, mgnr, bin
|
GROUP BY year, mgnr, bin
|
||||||
ORDER BY year, mgnr, LENGTH(bin) DESC, bin;
|
ORDER BY year, mgnr, LENGTH(bin) DESC, bin;
|
||||||
""");
|
""");
|
||||||
|
|
||||||
|
ExecuteNonQuery(cnx, "ALTER TABLE wine_attribute ADD COLUMN fill_lower_bins INTEGER NOT NULL CHECK (fill_lower_bins IN (TRUE, FALSE))");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,9 @@ namespace Elwig.Models {
|
|||||||
[Column("max_kg_per_ha")]
|
[Column("max_kg_per_ha")]
|
||||||
public int? MaxKgPerHa { get; set; }
|
public int? MaxKgPerHa { get; set; }
|
||||||
|
|
||||||
|
[Column("fill_lower_bins")]
|
||||||
|
public bool FillLowerBins { get; set; }
|
||||||
|
|
||||||
[Column("active")]
|
[Column("active")]
|
||||||
public bool IsActive { get; set; }
|
public bool IsActive { get; set; }
|
||||||
public override string ToString() {
|
public override string ToString() {
|
||||||
|
Reference in New Issue
Block a user