Skip to content

Commit

Permalink
Pull request quattor#123: AQUILONAQD-1107: NETWORK-SCHEMA-CHANGE
Browse files Browse the repository at this point in the history
Merge in AQUILON_AQD/aqd from ~KAMURTHY/aqd:Migration/AQUILONAQD-1107/Schema-Change to master

* commit 'be719e2fa8b8c4d379d2d40ab251de98e17df8cd':
  AQUILONAQD-1107: NETWORK-SCHEMA-CHANGE
  • Loading branch information
Karthik Kamurthy authored and Karthik Kamurthy committed Mar 10, 2022
2 parents 8729f30 + be719e2 commit db950a4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions upgrade/this_branch/migration.psql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- network

ALTER TABLE network DROP CONSTRAINT network_cidr_ip_ck;
ALTER TABLE network ADD CONSTRAINT network_cidr_ip_ck
CHECK (cidr >= 1 AND cidr <= CASE WHEN (ip >= '0.0.0.0' AND ip <= '255.255.255.255') THEN 32 ELSE 128 END);

0 comments on commit db950a4

Please sign in to comment.