File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ CREATE TABLE revisions
12
12
created_at timestamptz (0 ) NOT NULL ,
13
13
completed_at timestamptz (0 ),
14
14
status revision_status NOT NULL ,
15
- CONSTRAINT completed_unless_partial CHECK (status = ' partial ' OR completed_at IS NOT NULL )
15
+ CONSTRAINT completed_if_live CHECK (completed_at IS NOT NULL OR status <> ' live ' )
16
16
);
17
17
CREATE INDEX revisions_repository_idx ON revisions (repository);
18
18
CREATE TABLE objects
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ CREATE TABLE revisions
12
12
created_at timestamptz (0 ) NOT NULL ,
13
13
completed_at timestamptz (0 ),
14
14
status revision_status NOT NULL ,
15
- CONSTRAINT completed_unless_partial CHECK (status = ' partial ' OR completed_at IS NOT NULL )
15
+ CONSTRAINT completed_if_live CHECK (completed_at IS NOT NULL OR status <> ' live ' )
16
16
);
17
17
CREATE INDEX revisions_repository_idx ON revisions (repository);
18
18
CREATE TABLE objects
You can’t perform that action at this time.
0 commit comments