Browse Source
In order to keep the database in sync, the address checks are being disabled, this is a partial solution to let the explorer continue working until the actual validations are added.prometheus-integration
4 changed files with 43 additions and 3 deletions
@ -0,0 +1,11 @@ |
|||
-- As bech32 format is not supported, it is simpler to just disable the checks until it is supported. |
|||
|
|||
# --- !Ups |
|||
|
|||
ALTER DOMAIN ADDRESS_TYPE DROP CONSTRAINT address_type_check; |
|||
ALTER DOMAIN ADDRESS_TYPE ADD CONSTRAINT address_type_check CHECK (VALUE <> ''); |
|||
|
|||
# --- !Downs |
|||
|
|||
ALTER DOMAIN ADDRESS_TYPE DROP CONSTRAINT address_type_check; |
|||
ALTER DOMAIN ADDRESS_TYPE ADD CONSTRAINT address_type_check CHECK (VALUE ~ '(^[A-Za-z0-9]{34}$)|(^[A-Za-z0-9]{42}$)'); |
Loading…
Reference in new issue