grafana/pkg
Oleg Gaidarenko b37ee65bd3
Chore: prepare our SQL for cockroach db (#16471)
This is basically implementation of the https://github.com/grafana/grafana/issues/8900#issuecomment-435437167
points, except for the type conversion bit.

I tried to implement idea mentioned in cockroachdb ticket (see below).
And it is possible, but it complicates things as lot - not only we have to
have 4 SQL statements instead of one, but we would have to copy the column
structure as well - PK, FG, indexes and stuff, plus there will
be additional downtime with this approach.

So idea for this pull is to prepare our SQL as much as possible, so when
cockroachdb will add support for full type conversions, we could easilly add
support for it as well.

* Add `CASCADE` to `DROP INDEX` statement

* Make string conversions explicit

Thanks @Luit

Ref #8900
Ref cockroach/cockroach#9851
2019-04-15 18:49:24 +03:00
..
api Security: Store datasource passwords encrypted in secureJsonData (#16175) 2019-04-15 11:11:17 +02:00
bus bus: noop should still execute fn 2018-06-15 12:46:20 +02:00
cmd Chore: Implement revive (#16200) 2019-03-27 17:53:49 +01:00
components Security: Store datasource passwords encrypted in secureJsonData (#16175) 2019-04-15 11:11:17 +02:00
events feat(signup): progress on new sign up and email verification flow, #2353 2015-08-28 15:14:24 +02:00
extensions add gopkg.in/square/go-jose.v2 to dependencies, update github.com/hashicorp/yamux 2018-10-08 17:11:24 -04:00
infra Chore: use remote cache instead of session storage (#16114) 2019-04-08 14:31:46 +03:00
log log phantomjs output even if it timeout and include orgId when render alert 2019-03-06 13:53:23 +01:00
login Update jwt regexp to include = (#16521) 2019-04-11 15:30:55 +02:00
middleware Chore: use remote cache instead of session storage (#16114) 2019-04-08 14:31:46 +03:00
models Security: Store datasource passwords encrypted in secureJsonData (#16175) 2019-04-15 11:11:17 +02:00
plugins Plugins: Optionally preload some plugins during frontend app boot (#15266) 2019-04-11 08:02:22 +02:00
registry add functionality to override service in registry 2018-10-30 13:37:30 +01:00
services Chore: prepare our SQL for cockroach db (#16471) 2019-04-15 18:49:24 +03:00
setting Plugins: Unifying alpha state & options for all plugins (#16530) 2019-04-12 13:46:42 +02:00
tsdb Security: Store datasource passwords encrypted in secureJsonData (#16175) 2019-04-15 11:11:17 +02:00
util Provisioning: Do not allow deletion of provisioned dashboards (#16211) 2019-04-10 13:29:10 +02:00