]> git.donarmstrong.com Git - debbugs.git/commitdiff
reflow src_pkg obsolete constraint
authorDon Armstrong <don@donarmstrong.com>
Sat, 25 Feb 2017 23:44:44 +0000 (15:44 -0800)
committerDon Armstrong <don@donarmstrong.com>
Sat, 25 Feb 2017 23:44:44 +0000 (15:44 -0800)
sql/debbugs_schema.sql

index fc207c44a6128c4333801521218391a869fe9da2..2556bac6ae181ed64bf12f833968058dc18a6a40 100644 (file)
@@ -178,7 +178,9 @@ CREATE TABLE src_pkg (
        last_modified TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
        obsolete BOOLEAN NOT NULL DEFAULT FALSE,
        CONSTRAINT src_pkg_doesnt_alias_itself CHECK (id <> alias_of),
-       CONSTRAINT src_pkg_is_obsolete_if_disabled CHECK ((obsolete IS FALSE AND disabled='infinity'::timestamp with time zone) OR (obsolete IS TRUE AND disabled < 'infinity'::timestamp with time zone))
+       CONSTRAINT src_pkg_is_obsolete_if_disabled CHECK (
+          (obsolete IS FALSE AND disabled='infinity'::timestamp with time zone) OR
+          (obsolete IS TRUE AND disabled < 'infinity'::timestamp with time zone))
 );
 CREATE INDEX src_pkg_pkg ON src_pkg(pkg);
 CREATE UNIQUE INDEX src_pkg_pkg_null ON src_pkg(pkg) WHERE disabled='infinity'::timestamp with time zone;