Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(createMigrationsTable): Fix bug where already-quoted search path …
…components could get double-quoted when creating the mirations table. Postgres's `SHOW search_path` returns the search path as a comma-separated string with spaces, like `"$user", public, "another-quoted-schema"`, so checking whether the _first character_ of a search path component is `"` is not sufficient. Instead, just check whether the search path component contains quotes at all, and don't add any quotes if it does. Signed-off-by: Girffin Schneider <griffinschneider@gmail.com>
- Loading branch information