Chore/fix lint issues (#27704)
* Chore: Fix linting issues Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
@@ -65,9 +65,9 @@ func addAnnotationMig(mg *Migrator) {
|
||||
Name: "tags", Type: DB_NVarchar, Nullable: true, Length: 500,
|
||||
}))
|
||||
|
||||
///
|
||||
/// Annotation tag
|
||||
///
|
||||
//
|
||||
// Annotation tag
|
||||
//
|
||||
annotationTagTable := Table{
|
||||
Name: "annotation_tag",
|
||||
Columns: []*Column{
|
||||
|
||||
@@ -40,7 +40,9 @@ func TestMigrations(t *testing.T) {
|
||||
has, err := x.SQL(sql).Get(&r)
|
||||
So(err, ShouldBeNil)
|
||||
So(has, ShouldBeTrue)
|
||||
expectedMigrations := mg.MigrationsCount() //we currently skip to migrations. We should rewrite skipped migrations to write in the log as well. until then we have to keep this
|
||||
// we currently skip to migrations. We should rewrite skipped migrations to write in the log as well.
|
||||
// until then we have to keep this
|
||||
expectedMigrations := mg.MigrationsCount()
|
||||
So(r.Count, ShouldEqual, expectedMigrations)
|
||||
|
||||
mg = NewMigrator(x)
|
||||
|
||||
@@ -3,7 +3,7 @@ package migrations
|
||||
import . "github.com/grafana/grafana/pkg/services/sqlstore/migrator"
|
||||
|
||||
// commented out because of the deadcode CI check
|
||||
//func addStatsMigrations(mg *Migrator) {
|
||||
// func addStatsMigrations(mg *Migrator) {
|
||||
// statTable := Table{
|
||||
// Name: "stat",
|
||||
// Columns: []*Column{
|
||||
@@ -33,7 +33,7 @@ import . "github.com/grafana/grafana/pkg/services/sqlstore/migrator"
|
||||
//
|
||||
// // create table
|
||||
// mg.AddMigration("create stat_value table", NewAddTableMigration(statValue))
|
||||
//}
|
||||
// }
|
||||
|
||||
func addTestDataMigrations(mg *Migrator) {
|
||||
testData := Table{
|
||||
|
||||
Reference in New Issue
Block a user