grafana/pkg/services/sqlstore/migrator
Armand Grillet 6523486122
Alerting: Make Unified Alerting enabled by default for those who do not use legacy alerting (#42200)
* update AlertingEnabled and UnifiedAlertingSettings.Enabled to be pointers
* add a pseudo migration to fix the AlertingEnabled and UnifiedAlertingSettings.Enabled if the latter is not defined
* update the default configuration file to make default value for both 'enabled' flags be undefined

Misc
* update Migrator to expose DB engine. This is needed for a ualert migration to access the database while the list of migrations is created.
* add more verbose failure when migrations do not match

Co-authored-by: gotjosh <josue@grafana.com>
Co-authored-by: Yuriy Tseretyan <yuriy.tseretyan@grafana.com>
Co-authored-by: gillesdemey <gilles.de.mey@gmail.com>
2021-11-24 14:56:07 -05:00
..
column.go move database-specific code into dialects (#11884) 2018-05-10 16:54:21 +02:00
conditions.go Chore: Fix SQL related Go variable naming (#28887) 2020-11-11 06:21:08 +01:00
dialect.go AlertingNG: Save alert instances (#30223) 2021-01-18 20:57:17 +02:00
migrations.go Alerting: modify DB table, accessors and migration to restrict org access (#37414) 2021-08-12 16:04:09 +03:00
migrator.go Alerting: Make Unified Alerting enabled by default for those who do not use legacy alerting (#42200) 2021-11-24 14:56:07 -05:00
mysql_dialect.go Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
postgres_dialect.go Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
sqlite_dialect.go Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
types.go Alerting: modify DB table, accessors and migration to restrict org access (#37414) 2021-08-12 16:04:09 +03:00