From 2750ccef4aff529f194aab2eaf0b91eadecf4970 Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Tue, 3 May 2022 11:52:47 -0700 Subject: [PATCH] call out deprecated structs so they are not accidentally used via autocomplete. --- webapp/backend/pkg/database/migrations/m20201107210306/device.go | 1 + webapp/backend/pkg/database/migrations/m20201107210306/smart.go | 1 + .../database/migrations/m20201107210306/smart_ata_attribute.go | 1 + .../database/migrations/m20201107210306/smart_nvme_attribute.go | 1 + .../database/migrations/m20201107210306/smart_scsci_attribute.go | 1 + 5 files changed, 5 insertions(+) diff --git a/webapp/backend/pkg/database/migrations/m20201107210306/device.go b/webapp/backend/pkg/database/migrations/m20201107210306/device.go index 250122d..cac8b29 100644 --- a/webapp/backend/pkg/database/migrations/m20201107210306/device.go +++ b/webapp/backend/pkg/database/migrations/m20201107210306/device.go @@ -4,6 +4,7 @@ import ( "time" ) +// Deprecated: m20201107210306.Device is deprecated, only used by db migrations type Device struct { //GORM attributes, see: http://gorm.io/docs/conventions.html CreatedAt time.Time diff --git a/webapp/backend/pkg/database/migrations/m20201107210306/smart.go b/webapp/backend/pkg/database/migrations/m20201107210306/smart.go index 798da4d..f0e615b 100644 --- a/webapp/backend/pkg/database/migrations/m20201107210306/smart.go +++ b/webapp/backend/pkg/database/migrations/m20201107210306/smart.go @@ -5,6 +5,7 @@ import ( "time" ) +// Deprecated: m20201107210306.Smart is deprecated, only used by db migrations type Smart struct { gorm.Model diff --git a/webapp/backend/pkg/database/migrations/m20201107210306/smart_ata_attribute.go b/webapp/backend/pkg/database/migrations/m20201107210306/smart_ata_attribute.go index f1f10dd..d20bac4 100644 --- a/webapp/backend/pkg/database/migrations/m20201107210306/smart_ata_attribute.go +++ b/webapp/backend/pkg/database/migrations/m20201107210306/smart_ata_attribute.go @@ -2,6 +2,7 @@ package m20201107210306 import "gorm.io/gorm" +// Deprecated: m20201107210306.SmartAtaAttribute is deprecated, only used by db migrations type SmartAtaAttribute struct { gorm.Model diff --git a/webapp/backend/pkg/database/migrations/m20201107210306/smart_nvme_attribute.go b/webapp/backend/pkg/database/migrations/m20201107210306/smart_nvme_attribute.go index 97abdad..3fe944a 100644 --- a/webapp/backend/pkg/database/migrations/m20201107210306/smart_nvme_attribute.go +++ b/webapp/backend/pkg/database/migrations/m20201107210306/smart_nvme_attribute.go @@ -2,6 +2,7 @@ package m20201107210306 import "gorm.io/gorm" +// Deprecated: m20201107210306.SmartNvmeAttribute is deprecated, only used by db migrations type SmartNvmeAttribute struct { gorm.Model diff --git a/webapp/backend/pkg/database/migrations/m20201107210306/smart_scsci_attribute.go b/webapp/backend/pkg/database/migrations/m20201107210306/smart_scsci_attribute.go index 4b2df5e..2a5be46 100644 --- a/webapp/backend/pkg/database/migrations/m20201107210306/smart_scsci_attribute.go +++ b/webapp/backend/pkg/database/migrations/m20201107210306/smart_scsci_attribute.go @@ -2,6 +2,7 @@ package m20201107210306 import "gorm.io/gorm" +// Deprecated: m20201107210306.SmartScsiAttribute is deprecated, only used by db migrations type SmartScsiAttribute struct { gorm.Model