Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-archiver
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Platform
Development
swh-archiver
Commits
fa1acdf9
Commit
fa1acdf9
authored
8 years ago
by
Antoine R. Dumont
Browse files
Options
Downloads
Patches
Plain Diff
archiver: Add missing instruction about 003 upgrade
parent
dc9b5fc9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sql/upgrades/003.sql
+2
-1
2 additions, 1 deletion
sql/upgrades/003.sql
with
2 additions
and
1 deletion
sql/upgrades/003.sql
+
2
−
1
View file @
fa1acdf9
...
...
@@ -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
();
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment