Skip to content
Snippets Groups Projects
Commit fa1acdf9 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

archiver: Add missing instruction about 003 upgrade

parent dc9b5fc9
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,8 @@
-- to_version: 3
-- description: Add a 'num_present' cache column into the archive_content status
INSERT INTO dbversion(version, release, description)
VALUES(3, now(), 'Work In Progress');
alter table content_archive add column num_present int default null;
comment on column content_archive.num_present is 'Number of copies marked as present (cache updated via trigger)';
......@@ -21,4 +23,3 @@ CREATE TRIGGER update_num_present
BEFORE INSERT OR UPDATE OF copies ON content_archive
FOR EACH ROW
EXECUTE PROCEDURE update_num_present();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment