Chore: Rename Id to ID in alerting models (#62777)

* Chore: Rename Id to ID in alerting models

* Add xorm tags for datasource

* Add xorm tag for uid
This commit is contained in:
idafurjes
2023-02-02 17:22:43 +01:00
committed by GitHub
parent 48a374f50b
commit 23c27cffb3
88 changed files with 698 additions and 698 deletions
@@ -27,10 +27,10 @@ func TestPasswordMigrationCommand(t *testing.T) {
func passwordMigration(t *testing.T, session *db.Session, sqlstore db.DB) {
ds := []*datasources.DataSource{
{Type: "influxdb", Name: "influxdb", Password: "foobar", Uid: "influx"},
{Type: "graphite", Name: "graphite", BasicAuthPassword: "foobar", Uid: "graphite"},
{Type: "prometheus", Name: "prometheus", Uid: "prom"},
{Type: "elasticsearch", Name: "elasticsearch", Password: "pwd", Uid: "elastic"},
{Type: "influxdb", Name: "influxdb", Password: "foobar", UID: "influx"},
{Type: "graphite", Name: "graphite", BasicAuthPassword: "foobar", UID: "graphite"},
{Type: "prometheus", Name: "prometheus", UID: "prom"},
{Type: "elasticsearch", Name: "elasticsearch", Password: "pwd", UID: "elastic"},
}
// set required default values