定义通知model
This commit is contained in:
@@ -171,6 +171,7 @@ func (ps *PostgresStorage) creatingHyperTable() error {
|
||||
{models.PigSickLog{}, "happened_at"},
|
||||
{models.PigPurchase{}, "purchase_date"},
|
||||
{models.PigSale{}, "sale_date"},
|
||||
{models.Notification{}, "alarm_timestamp"},
|
||||
}
|
||||
|
||||
for _, table := range tablesToConvert {
|
||||
@@ -211,6 +212,7 @@ func (ps *PostgresStorage) applyCompressionPolicies() error {
|
||||
{models.PigSickLog{}, "pig_batch_id"},
|
||||
{models.PigPurchase{}, "pig_batch_id"},
|
||||
{models.PigSale{}, "pig_batch_id"},
|
||||
{models.Notification{}, "user_id"},
|
||||
}
|
||||
|
||||
for _, policy := range policies {
|
||||
|
||||
Reference in New Issue
Block a user