xorm introduced some changes in https://github.com/go-xorm/xorm/pull/824 and https://github.com/go-xorm/xorm/pull/876 which by default will use public as the postgres schema and this was a breaking change compared to before. Grafana has implemented a custom postgres dialect so above changes wasn't a problem here. However, Grafana's custom database migration was using xorm dialect to check if the migration table exists or not. For those using a custom search_path (schema) in postgres configured on server, database or user level the migration table check would not find the migration table since it was looking in public schema due to xorm changes above. This had the consequence that Grafana's database migration failed the second time since migration had already run migrations in another schema. This change will make xorm use an empty default schema for postgres and by that mimic the functionality of how it was functioning before xorm's changes above. Fixes #16720 Co-Authored-By: Carl Bergquist <carl@grafana.com>
Name |
Last commit
|
Last Update |
---|---|---|
.circleci | Loading commit data... | |
.github | Loading commit data... | |
conf | Loading commit data... | |
devenv | Loading commit data... | |
docs | Loading commit data... | |
emails | Loading commit data... | |
packages | Loading commit data... | |
packaging | Loading commit data... | |
pkg | Loading commit data... | |
public | Loading commit data... | |
scripts | Loading commit data... | |
style_guides | Loading commit data... | |
tools/phantomjs | Loading commit data... | |
vendor | Loading commit data... | |
.babelrc | Loading commit data... | |
.bra.toml | Loading commit data... | |
.browserslistrc | Loading commit data... | |
.dockerignore | Loading commit data... | |
.editorconfig | Loading commit data... | |
.gitignore | Loading commit data... | |
.prettierignore | Loading commit data... | |
CHANGELOG.md | Loading commit data... | |
CODE_OF_CONDUCT.md | Loading commit data... | |
CONTRIBUTING.md | Loading commit data... | |
Dockerfile | Loading commit data... | |
Gruntfile.js | Loading commit data... | |
LICENSE | Loading commit data... | |
Makefile | Loading commit data... | |
NOTICE.md | Loading commit data... | |
PLUGIN_DEV.md | Loading commit data... | |
README.md | Loading commit data... | |
ROADMAP.md | Loading commit data... | |
UPGRADING_DEPENDENCIES.md | Loading commit data... | |
build.go | Loading commit data... | |
go.mod | Loading commit data... | |
go.sum | Loading commit data... | |
jest.config.e2e.js | Loading commit data... | |
jest.config.js | Loading commit data... | |
latest.json | Loading commit data... | |
package.json | Loading commit data... | |
tsconfig.json | Loading commit data... | |
tslint.json | Loading commit data... | |
yarn.lock | Loading commit data... |