Allow changing db schema from public (#4873)

* Remove public schema from enum defs

* Update queries

* Fix
This commit is contained in:
Marcin Tojek
2022-11-04 09:15:17 +01:00
committed by GitHub
parent 104d6608d9
commit 3f6c4486f7
4 changed files with 13 additions and 11 deletions

View File

@ -63,7 +63,9 @@ func main() {
// Remove all comments.
"/^--/d",
// Public is implicit in the schema.
"s/ public\\./ /",
"s/ public\\./ /g",
"s/::public\\./::/g",
"s/'public\\./'/g",
// Remove database settings.
"s/SET .* = .*;//g",
// Remove select statements. These aren't useful