grafana/pkg/services/sqlstore
Kristin Laemmert 3e272d2bda
Bug(sqlstore): fix issue with postgres unable to find existing main organization (#73789)
* SQLStore: fix issue where postgres would not find the existing org

Grafana using a postgres databases would fail to find the created org when the CreatedAt and UpdatedAt times are (inaccurately) populated. This issue only occurs in postgres, and only shows up when getOrCreateOrg run to create the admin user AND the organization already exists. See https://github.com/grafana/grafana/issues/71781 for more information and a reproduction.

* add an integration test
2023-08-30 11:45:20 -04:00
..
migrations Correlations: Add organization id (#72258) 2023-08-24 09:39:30 +02:00
migrator SQLStore: Fix Postgres dialect treating "false" migrator default as true (#69353) 2023-06-22 15:09:36 -04:00
permissions Nested folders: Fix search query for empty self-contained permissions (#72727) 2023-08-02 14:12:46 +03:00
searchstore Search API: Search by folder UID (#65040) 2023-08-04 12:43:47 +03:00
session
sqlutil
bulk.go
bulk_test.go
database_wrapper.go
logger.go
session.go Chore: Add errutils helpers (#73577) 2023-08-22 12:52:24 +02:00
session_test.go SQLStore: Fix SQLite error propagation if query retries are disabled (#64904) 2023-03-17 12:57:13 +02:00
sqlstore.go SQLStore: Fix regression in PostgreSQL connection string (#71368) 2023-07-11 16:47:35 +03:00
sqlstore_metrics.go
sqlstore_metrics_test.go
sqlstore_test.go SQLStore: Fix regression in PostgreSQL connection string (#71368) 2023-07-11 16:47:35 +03:00
tls_mysql.go
transactions.go
transactions_test.go
user.go Bug(sqlstore): fix issue with postgres unable to find existing main organization (#73789) 2023-08-30 11:45:20 -04:00
user_test.go Bug(sqlstore): fix issue with postgres unable to find existing main organization (#73789) 2023-08-30 11:45:20 -04:00