From 2292041f9f9e654a6fdfc671c2790134cc2cdb5a Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Tue, 24 May 2022 10:00:41 -0700 Subject: [PATCH] never drop tables. --- .../pkg/database/scrutiny_repository_migrations.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/webapp/backend/pkg/database/scrutiny_repository_migrations.go b/webapp/backend/pkg/database/scrutiny_repository_migrations.go index c3903c9..d459ee8 100644 --- a/webapp/backend/pkg/database/scrutiny_repository_migrations.go +++ b/webapp/backend/pkg/database/scrutiny_repository_migrations.go @@ -46,16 +46,6 @@ func (sr *scrutinyRepository) Migrate(ctx context.Context) error { &m20201107210306.SmartNvmeAttribute{}, ) }, - Rollback: func(tx *gorm.DB) error { - return tx.Migrator().DropTable( - &m20201107210306.Device{}, - &m20201107210306.Smart{}, - &m20201107210306.SmartAtaAttribute{}, - &m20201107210306.SmartNvmeAttribute{}, - &m20201107210306.SmartNvmeAttribute{}, - "self_tests", - ) - }, }, { ID: "20220503113100", // backwards compatible - influxdb schema