病猪变化日志

This commit is contained in:
2025-10-05 21:58:06 +08:00
parent b1e1dcdcad
commit 1652df1533
3 changed files with 51 additions and 0 deletions

View File

@@ -168,6 +168,7 @@ func (ps *PostgresStorage) creatingHyperTable() error {
{models.WeighingBatch{}, "weighing_time"},
{models.WeighingRecord{}, "weighing_time"},
{models.PigTransferLog{}, "transfer_time"},
{models.PigBatchSickPigLog{}, "happened_at"},
}
for _, table := range tablesToConvert {
@@ -205,6 +206,7 @@ func (ps *PostgresStorage) applyCompressionPolicies() error {
{models.WeighingBatch{}, "pig_batch_id"},
{models.WeighingRecord{}, "weighing_batch_id"},
{models.PigTransferLog{}, "pig_batch_id"},
{models.PigBatchSickPigLog{}, "pig_batch_id"},
}
for _, policy := range policies {