grafana/pkg/services/sqlstore/migrations
Yuri Tseretyan 7b2f44762e
Alerting: Update migration to put alerts to the default folder if dashboard folder is missing (#65577)
* extract function

* use context logger

* put alert to general folder if folder is missing

* move folderHelper init

* add test

* Update pkg/services/sqlstore/migrations/ualert/ualert.go

Co-authored-by: Matthew Jacobson <matthew.jacobson@grafana.com>

---------

Co-authored-by: Matthew Jacobson <matthew.jacobson@grafana.com>
2023-03-31 18:40:21 +02:00
..
accesscontrol Chore: Upgrade golangci-lint to v1.51.2 (#63630) 2023-02-23 15:10:03 +01:00
ualert Alerting: Update migration to put alerts to the default folder if dashboard folder is missing (#65577) 2023-03-31 18:40:21 +02:00
alert_mig.go SQL: Define primary key for tables without it (#22255) 2020-11-17 17:58:56 +01:00
annotation_mig.go Chore: Fix goimports grouping in pkg/services (#62420) 2023-01-30 08:21:27 +00:00
apikey_mig.go API Keys: Add revocation for SATs (#53896) 2022-08-18 16:54:39 +02:00
cache_data_mig.go renames key to cache_key 2019-03-11 10:49:55 +01:00
common.go SQLStore: Add deprecation comments for breaking migrations (#49740) 2022-06-03 17:42:08 +02:00
correlations_mig.go Glue: Add DB migration & support provisioning for user-defined correlations config (#55560) 2022-09-27 11:08:02 +02:00
dashboard_acl.go Rename Acl to ACL (#52342) 2022-07-18 15:14:58 +02:00
dashboard_mig.go add isPublic to dashboard (#48012) 2022-05-17 14:11:55 -08:00
dashboard_public_mig.go PublicDashboards: Backfills share column with default value (#63407) 2023-02-27 15:54:16 -06:00
dashboard_snapshot_mig.go Chore: Fix SQL related Go variable naming (#28887) 2020-11-11 06:21:08 +01:00
dashboard_thumbs_mig.go Previews: fix dashboard.thumbnails.ds_uids migration (#52960) 2022-07-28 21:50:02 +04:00
dashboard_version_mig.go Chore: Fix SQL related Go variable naming (#28887) 2020-11-11 06:21:08 +01:00
datasource_mig.go SQLStore: Prevent migration_id duplicates (#47774) 2022-06-04 01:59:49 +02:00
db_file_storage.go Storage: enable SQL backend (#48095) 2022-05-16 10:26:40 -07:00
entity_events_mig.go Search: in-memory index (#47709) 2022-04-27 12:29:39 +04:00
entity_store_mig.go EntityAPI: Rename references from kind to family (#62044) 2023-01-25 23:42:04 +00:00
external_alertmanagers.go Chore: Rename Id to ID in alerting models (#62777) 2023-02-02 17:22:43 +01:00
folder_mig.go SQLStore: Fix folder migration for MySQL < 5.7 (#62521) 2023-02-02 16:21:25 +02:00
heartbeat_mig.go feat(query_part): refactoring query part 2016-08-15 17:20:45 +02:00
kv_store_mig.go add key/value store service (#36868) 2021-08-31 11:05:45 -04:00
libraryelements.go Library elements: Add MySQL migration for increasing the column size (#63856) 2023-03-06 12:13:30 +01:00
login_attempt_mig.go login: migration fix. 2018-02-16 17:36:28 +01:00
migrations_test.go Skip flaky test (#45785) 2022-02-23 16:56:21 +01:00
migrations.go Chore: remove comments feature (#64644) 2023-03-11 04:28:12 -08:00
org_mig.go Extract search users functions into a service (#39002) 2021-09-29 12:51:49 +02:00
playlist_mig.go backend: add PlaylistUIDs to Playlist; remove playlist IDs from API (#49609) 2022-06-14 15:32:52 -04:00
plugin_setting.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
preferences_mig.go Preferences: Create indices (#48356) 2022-11-07 15:52:26 +01:00
query_history_mig.go Migrate user_id to BIGINT (#55084) 2022-09-15 13:29:46 +02:00
query_history_star_mig.go Migrate user_id to BIGINT (#55084) 2022-09-15 13:29:46 +02:00
quota_mig.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
secrets_mig.go Encryption: Fix multiple data keys migration (#49848) 2022-06-04 12:55:49 +02:00
serverlock_migrations.go moves migrations to /sqlstore/migrations 2018-12-17 16:36:57 +01:00
session_mig.go Issue 3461: Session table is now created automatically 2015-12-23 01:33:46 -06:00
short_url_mig.go Migrate user_id to BIGINT (#55084) 2022-09-15 13:29:46 +02:00
stats_mig.go Chore/fix lint issues (#27704) 2020-09-22 16:22:19 +02:00
tag_mig.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
team_mig.go Teams: Add index for permission check (#25736) 2020-06-26 15:13:53 +02:00
temp_user.go Chore: Fix goimports grouping in pkg/services (#62420) 2023-01-30 08:21:27 +00:00
user_auth_mig.go OAuth: persisting the id token (#42938) 2021-12-14 15:22:10 +01:00
user_auth_token_mig.go Auth: Allow soft token revocation (#31601) 2021-03-16 17:44:02 +01:00
user_mig.go Chore: Fix goimports grouping in pkg/services (#62420) 2023-01-30 08:21:27 +00:00