chore: remove data migration (#6683)

This commit is contained in:
Srikanth Chekuri 2024-12-20 09:22:36 +05:30 committed by GitHub
parent fa90fad373
commit b36ef944cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 2749 deletions

File diff suppressed because it is too large Load Diff

View File

@ -7,7 +7,6 @@ import (
"github.com/ClickHouse/clickhouse-go/v2/lib/driver"
"github.com/jmoiron/sqlx"
"go.uber.org/zap"
)
type DataMigration struct {
@ -54,17 +53,6 @@ func Migrate(dsn string) error {
return err
}
if m, err := getMigrationVersion(conn, "0.62_ingestion_dashboard"); err == nil && m == nil {
if err := migrateIngestionDashboard(conn); err != nil {
zap.L().Error("failed to migrate 0.62_ingestion_dashboard", zap.Error(err))
} else {
_, err := conn.Exec("INSERT INTO data_migrations (version, succeeded) VALUES ('0.62_ingestion_dashboard', true)")
if err != nil {
return err
}
}
}
return nil
}