调整models定义
This commit is contained in:
@@ -179,6 +179,7 @@ func (ps *PostgresStorage) creatingHyperTable(ctx context.Context) error {
|
||||
{models.PigPurchase{}, "purchase_date"},
|
||||
{models.PigSale{}, "sale_date"},
|
||||
{models.Notification{}, "alarm_timestamp"},
|
||||
{models.HistoricalAlarm{}, "trigger_time"},
|
||||
}
|
||||
|
||||
for _, table := range tablesToConvert {
|
||||
@@ -221,6 +222,7 @@ func (ps *PostgresStorage) applyCompressionPolicies(ctx context.Context) error {
|
||||
{models.PigPurchase{}, "pig_batch_id"},
|
||||
{models.PigSale{}, "pig_batch_id"},
|
||||
{models.Notification{}, "user_id"},
|
||||
{models.HistoricalAlarm{}, "source_id"},
|
||||
}
|
||||
|
||||
for _, policy := range policies {
|
||||
|
||||
Reference in New Issue
Block a user