Joan López de la Franca Beltran
219e848e73
SQLStore: Prevent migration_id duplicates ( #47774 )
...
* SQLStore: Prevent migration_id duplicates
* Migrations: Remove non-executed migration (duplicated id)
Co-authored-by: Leonard Gram <leo@xlson.com>
2022-06-04 01:59:49 +02:00
ying-jeanne
2a9c625c9f
Alerting: improve alerting default datasource search when extracting alerts ( #29993 )
...
* improve alerting search datasource
* correct the xorm get usage
* adding default datasource unittest
2021-01-07 21:33:17 +01:00
Arve Knudsen
b5379c5335
Chore: Fix SQL related Go variable naming ( #28887 )
...
* Chore: Fix variable naming
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-11 06:21:08 +01:00
Andrej Ocenas
e5dd7efdee
Provisioning: Allows specifying uid for datasource and use that in derived fields ( #23585 )
...
* Add uid to datasource
* Fix uid passing when provisioning
* Better error handling and Uid column type change
* Fix test and strict null error counts
* Add backend tests
* Add tests
* Fix strict null checks
* Update test
* Improve tests
* Update pkg/services/sqlstore/datasource.go
Co-Authored-By: Arve Knudsen <arve.knudsen@gmail.com>
* Variable rename
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-04-20 15:48:38 +02:00
Marcus Efraimsson
d49f0bedd3
fix: prevent datasource json data stored as nil ( #15508 )
...
prevent datasource json data stored as nil
closes #14239
2019-03-02 21:18:26 +01:00
Daniel Lee
90e2175716
migration: renames logging ds to loki ds in data_source table
2018-12-12 20:54:05 +01:00
Dan Cech
1dfff74da9
move database-specific code into dialects ( #11884 )
2018-05-10 16:54:21 +02:00
bergquist
36676e23c1
datasource as cfg: adds readonly datasources
2017-11-15 14:30:32 +01:00
bergquist
89923bf77a
datasources: change to optimisic concurrency
...
prerequisite for #9504
2017-10-23 07:55:16 +02:00
Dan Cech
24d4e50343
utf8mb4 encoding ( #7959 )
...
* use utf8mb4 character set for connections to mysql
* use utf8mb4 character set for tables, shorten varchar fields used in unique indexes
* migration type to update table character set
* update table character sets
* set charset for temp_user.status
* gofmt
2017-03-28 14:34:53 +02:00
Daniel Lee
c9b2c694f1
refactor(dataproxy): TLS Client Auth
...
Use a SecureJsonData field for TLS
Client Auth instead of 3 new db
fields. Same model as used for
PluginSettings.
Saves and encrypts the pem file
content rather than just saving
the paths to the cert and key.
This allows for uploading from
the Edit Datasource page in
Grafana.
2016-11-24 13:22:25 +01:00
Joe Lanford
56b7e2dfaf
Added support for TLS client auth for datasource proxies ( #5801 )
2016-11-24 13:22:25 +01:00
Mitsuhiro Tanda
6edd6c8f03
add with_credentials to datasource model
2015-12-09 14:44:28 +09:00
Torkel Ödegaard
10618637e2
Fixed bug in sql migration, closes #1643
2015-03-25 13:53:58 +01:00
Torkel Ödegaard
d8005af8ee
updated circle with fmt formating test
2015-03-07 16:23:22 +01:00
Torkel Ödegaard
011fdf7ab6
fixed bug in datasource schema migration
2015-02-26 19:36:11 +01:00
Torkel Ödegaard
ed68a4bb9a
More work on SQL migrations
2015-02-24 17:59:21 +01:00
Torkel Ödegaard
02a89c752b
Progress on database schema migration for account -> org refactor
2015-02-24 11:46:34 +01:00