fix: changed dashboard title length to match slug length, will fix mysql index size issue, fixes #10779

This commit is contained in:
Torkel Ödegaard 2018-02-06 11:03:37 +01:00
parent bc8e59a8d8
commit cf7be5da0b

View File

@ -168,7 +168,12 @@ func addDashboardMigration(mg *Migrator) {
Cols: []string{"org_id", "slug"}, Type: UniqueIndex,
}))
mg.AddMigration("Update dashboard title length", NewTableCharsetMigration("dashboard", []*Column{
{Name: "title", Type: DB_NVarchar, Length: 189, Nullable: false},
}))
mg.AddMigration("Add unique index for dashboard_org_id_title_folder_id", NewAddIndexMigration(dashboardV2, &Index{
Cols: []string{"org_id", "folder_id", "title"}, Type: UniqueIndex,
}))
}