mirror of
https://github.com/grafana/grafana.git
synced 2025-09-23 16:43:35 +08:00
updates all cols except created so user and password
of the database can be chaned to no user and password
This commit is contained in:
@ -180,7 +180,7 @@ func UpdateDataSource(cmd *m.UpdateDataSourceCommand) error {
|
||||
updateSession = sess.Where("id=? and org_id=?", ds.Id, ds.OrgId)
|
||||
}
|
||||
|
||||
affected, err := updateSession.Update(ds)
|
||||
affected, err := updateSession.AllCols().Omit("created").Update(ds)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user