Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7451070
016.sql
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
854 B
Subscribers
None
016.sql
View Options
-- SWH DB schema upgrade
-- from_version: 15
-- to_version: 16
-- description: change unix_path to bytea
insert
into
dbversion
(
version
,
release
,
description
)
values
(
16
,
now
(),
'Work In Progress'
);
alter
domain
unix_path
rename
to
unix_path_text
;
create
domain
unix_path
as
bytea
;
-- pygit2 assumes utf-8 encoding on paths anyway
alter
table
directory_entry_dir
alter
column
name
type
unix_path
using
convert_to
(
name
,
'UTF-8'
);
alter
table
directory_entry_file
alter
column
name
type
unix_path
using
convert_to
(
name
,
'UTF-8'
);
alter
table
directory_entry_rev
alter
column
name
type
unix_path
using
convert_to
(
name
,
'UTF-8'
);
alter
type
directory_entry
alter
attribute
name
type
unix_path
;
alter
type
content_dir
alter
attribute
path
type
unix_path
;
alter
type
content_occurrence
alter
attribute
path
type
unix_path
;
drop
domain
unix_path_text
;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 17, 9:37 AM (5 d, 18 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3285299
Attached To
rDSTOC swh-storage-cassandra
Event Timeline
Log In to Comment