fix: replace regex constraint with LIKE '%/%' for PG compat

- constraint CHECK (value_cidr LIKE '%/%') instead of regex
- regex broke on managed PG with standard_conforming_strings=off
- ALTER TABLE adds constraint on existing tables
This commit is contained in:
2026-06-10 11:51:08 +04:00
parent 32cb0f4ac6
commit 02859d6a7a
2 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "ipwhitelist",
"version": "0.5.35",
"version": "0.5.36",
"description": "IP WhiteList microservice for cloud provider",
"main": "server.js",
"scripts": {