On newest CockroachDB (somewhere from 19.1.5) error message changed to [42601] ERROR: at or near "lock": syntax error (was [42601] ERROR: syntax error at or near "lock"). Because of this change condition for CockroachDB error is now false and migrations do not work with latest CockroachDB.
I changed error check for at or near \"lock\" as it match for both old and new error messages.
On newest CockroachDB (somewhere from 19.1.5) error message changed to
[42601] ERROR: at or near "lock": syntax error
(was[42601] ERROR: syntax error at or near "lock"
). Because of this change condition for CockroachDB error is now false and migrations do not work with latest CockroachDB.I changed error check for
at or near \"lock\"
as it match for both old and new error messages.