grafana/pkg/services/sqlstore/migrations
lean.dev 0719f73f35
Cloud Migration: Remove ID migration in favor of UID (#86550)
* - Added migration to add a new collumn UID to both migration and migration_run tables.
- Added migration to set UID for records already existent in the database before adding a new column.
- Added UID field to CloudMigration and CloudMigrationRun dtos (model.go)

* Fix db migration

* Updating store and model

* Updating API to use UID

* fix typo

* update openapi specs and generated endpoints

* fix spec

* update openapi specs and generated endpoints

* Fixing db mapping

* Fix frontend

* fix migration

* remove migration uid from run fetch endpoint

* Revert "merge"

This reverts commit d654e4c530, reversing
changes made to 5fe0b483eb.

* manual merge

* rename some funcs for consistency

* make interfaces consistent

* validate uids

* update generated frontend api

* fix enterprise spec

* manually resolve api

* try again

* try yet again

* once more

---------

Co-authored-by: Josh Hunt <joshhunt@users.noreply.github.com>
Co-authored-by: Michael Mandrus <michael.mandrus@grafana.com>
Co-authored-by: joshhunt <josh@trtr.co>
2024-05-01 12:29:25 -04:00
..
accesscontrol Alerting: Update fixed roles to include silences permissions (#85826) 2024-04-12 12:37:34 -04:00
anonservice Anon: Scaffold anon service (#74744) 2023-09-25 16:25:29 +02:00
signingkeys Auth: Signing Key persistence (#75487) 2023-10-04 10:37:27 +02:00
ssosettings Auth: SSO settings foundations (#77724) 2023-11-08 10:50:01 +01:00
ualert Alerting: Support for simplified notification settings in rule API (#81011) 2024-02-15 09:45:10 -05:00
usermig Auth: Force lowercase login/email for users (#86359) 2024-04-25 17:31:17 +01: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
cloud_migrations.go Cloud Migration: Remove ID migration in favor of UID (#86550) 2024-05-01 12:29:25 -04:00
common.go SQLStore: Add deprecation comments for breaking migrations (#49740) 2022-06-03 17:42:08 +02:00
correlations_mig.go Correlations: Allow creating correlations for provisioned data sources (#73737) 2023-09-13 15:10:09 +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_version_mig.go Chore: Fix SQL related Go variable naming (#28887) 2020-11-11 06:21:08 +01:00
datasource_mig.go Provisioning: datasources auto deletion (#83034) 2024-04-08 11:45:39 +02:00
db_file_storage.go Storage: increase size of the contents column (#69152) 2023-05-30 21:11:04 +04:00
entity_events_mig.go Search: in-memory index (#47709) 2022-04-27 12:29:39 +04:00
external_alertmanagers.go Chore: Remove public vars in setting package (#81018) 2024-01-23 12:36:22 +01:00
folder_mig.go Folders: Switch order of the columns in folder table indexes so that org_id becomes first (#82454) 2024-02-16 21:10:46 +02:00
heartbeat_mig.go feat(query_part): refactoring query part 2016-08-15 17:20:45 +02:00
kv_store_mig.go Alerting: Increase size of kvstore value type for MySQL to LONGTEXT (#80331) 2024-01-11 22:51:36 +02:00
libraryelements.go Add FolderUID for library elements (#83819) 2024-04-09 12:27:43 +02:00
login_attempt_mig.go login: migration fix. 2018-02-16 17:36:28 +01:00
migrations_test.go SQLStore: Enable migration locking by default (#84983) 2024-03-22 21:22:29 +02:00
migrations.go Alerting: Update fixed roles to include silences permissions (#85826) 2024-04-12 12:37:34 -04:00
org_mig.go Extract search users functions into a service (#39002) 2021-09-29 12:51:49 +02:00
playlist_mig.go Playlist: Add create+update timestamps to the database (#76295) 2023-10-10 12:46:12 -07: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 add uid to team table (#66920) 2023-05-09 13:03:28 -04: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: Refactor for revoking user tokens within last hours (#74616) 2023-09-13 10:24:37 +01:00
user_mig.go Auth: Force lowercase login/email for users (#86359) 2024-04-25 17:31:17 +01:00