记录调猪人

This commit is contained in:
2025-10-05 21:20:22 +08:00
parent 811c6a09c5
commit 47c72dff3e
5 changed files with 38 additions and 13 deletions

View File

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