mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
remove constraint from sqlstore
This commit is contained in:
parent
a5588b6957
commit
a0a6fa6fa5
@ -15,9 +15,6 @@ type SqlAnnotationRepo struct {
|
||||
}
|
||||
|
||||
func (r *SqlAnnotationRepo) Save(item *annotations.Item) error {
|
||||
if item.DashboardId == 0 {
|
||||
return errors.New("Annotation is missing dashboard_id")
|
||||
}
|
||||
return inTransaction(func(sess *DBSession) error {
|
||||
tags := models.ParseTagPairs(item.Tags)
|
||||
item.Tags = models.JoinTagPairs(tags)
|
||||
|
Loading…
Reference in New Issue
Block a user