WineAttr: Add fill_lower_bins

This commit is contained in:
2023-10-14 23:56:41 +02:00
parent ff3defe52d
commit 658c10c2a4
2 changed files with 5 additions and 0 deletions

View File

@ -184,6 +184,8 @@ namespace Elwig.Helpers {
GROUP BY year, mgnr, 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))");
}
}
}

View File

@ -13,6 +13,9 @@ namespace Elwig.Models {
[Column("max_kg_per_ha")]
public int? MaxKgPerHa { get; set; }
[Column("fill_lower_bins")]
public bool FillLowerBins { get; set; }
[Column("active")]
public bool IsActive { get; set; }
public override string ToString() {