drawings: on a rev mismatch, Clerical can keep the retired rev VISUAL calls (#41)
When VISUAL calls a rev that M-Files has retired, the draft is still flagged rev_mismatch, but the drawing job now also copies the rev VISUAL calls (MFilesKit 0.1.3 DrawingLookup.revision) into drawing_revisions and visual.called. A Clerical Supervisor picks either rev on the packet: "Use latest rev N" as before, or "Use rev V as VISUAL calls it" (rev-approve with use=called), with a reason and a signature. The kept rev holds while M-Files' Effective rev stays the one chosen against: no flag, no change order. A newer Effective rev flags the packet again; a new VISUAL rev clears the choice. Migration 0009 adds drawing_revisions. Needs mfileskit 0.1.3. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
-- Other revs of a drawing that M-Files still holds (a Retired rev VISUAL calls), so Clerical can choose between
|
||||
-- the rev VISUAL calls and the Effective one. One row per drawing number and rev. asset_id is the fetched copy.
|
||||
CREATE TABLE drawing_revisions (
|
||||
dwg text NOT NULL,
|
||||
rev int NOT NULL,
|
||||
checked_at timestamptz NOT NULL,
|
||||
controlled text NOT NULL,
|
||||
state text,
|
||||
name text,
|
||||
obj_id int,
|
||||
obj_version int,
|
||||
file_id int,
|
||||
file_version int,
|
||||
file_size bigint,
|
||||
base text,
|
||||
asset_id uuid REFERENCES assets (id),
|
||||
sha256 bytea,
|
||||
PRIMARY KEY (dwg, rev)
|
||||
);
|
||||
Reference in New Issue
Block a user