mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-15 20:15:53 +08:00
chore: remove data migration (#6683)
This commit is contained in:
parent
fa90fad373
commit
b36ef944cc
File diff suppressed because it is too large
Load Diff
@ -7,7 +7,6 @@ import (
|
|||||||
|
|
||||||
"github.com/ClickHouse/clickhouse-go/v2/lib/driver"
|
"github.com/ClickHouse/clickhouse-go/v2/lib/driver"
|
||||||
"github.com/jmoiron/sqlx"
|
"github.com/jmoiron/sqlx"
|
||||||
"go.uber.org/zap"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type DataMigration struct {
|
type DataMigration struct {
|
||||||
@ -54,17 +53,6 @@ func Migrate(dsn string) error {
|
|||||||
return err
|
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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user