Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7451125
076.sql
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
551 B
Subscribers
None
076.sql
View Options
-- SWH DB schema upgrade
-- from_version: 75
-- to_version: 76
-- description: Add a metadata column for origin_visit
insert
into
dbversion
(
version
,
release
,
description
)
values
(
76
,
now
(),
'Work In Progress'
);
ALTER
TABLE
origin_visit
ADD
COLUMN
metadata
jsonb
;
COMMENT
ON
COLUMN
origin_visit
.
metadata
IS
'Metadata associated with the visit'
;
CREATE
OR
REPLACE
FUNCTION
swh_visit_get
(
origin
bigint
)
RETURNS
origin_visit
LANGUAGE
sql
STABLE
AS
$$
select
*
from
origin_visit
where
origin
=
origin
order
by
date
desc
$$
;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 17, 9:48 AM (5 d, 4 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3242293
Attached To
rDSTOC swh-storage-cassandra
Event Timeline
Log In to Comment