Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-indexer
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
Show more breadcrumbs
Platform
Development
swh-indexer
Commits
e2defde1
Verified
Commit
e2defde1
authored
6 years ago
by
Antoine R. Dumont
Browse files
Options
Downloads
Patches
Plain Diff
schema: Align schema version with latest upgrade script
parent
53a3fa82
No related branches found
Branches containing commit
Tags
v0.0.166
Tags containing commit
1 merge request
!432
mimetype: Migrate to indexed data as text
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sql/upgrades/117.sql
+3
-0
3 additions, 0 deletions
sql/upgrades/117.sql
swh/indexer/sql/30-swh-schema.sql
+1
-1
1 addition, 1 deletion
swh/indexer/sql/30-swh-schema.sql
with
4 additions
and
1 deletion
sql/upgrades/117.sql
+
3
−
0
View file @
e2defde1
...
...
@@ -3,6 +3,9 @@
-- to_version: 117
-- description: Add fulltext search index for origin intrinsic metadata
insert
into
dbversion
(
version
,
release
,
description
)
values
(
117
,
now
(),
'Work In Progress'
);
alter
table
origin_intrinsic_metadata
add
column
metadata_tsvector
tsvector
;
update
origin_intrinsic_metadata
set
metadata_tsvector
=
to_tsvector
(
'pg_catalog.simple'
,
metadata
);
create
index
origin_intrinsic_metadata_fulltext_idx
on
origin_intrinsic_metadata
using
gin
(
metadata_tsvector
);
This diff is collapsed.
Click to expand it.
swh/indexer/sql/30-swh-schema.sql
+
1
−
1
View file @
e2defde1
...
...
@@ -14,7 +14,7 @@ create table dbversion
);
insert
into
dbversion
(
version
,
release
,
description
)
values
(
11
6
,
now
(),
'Work In Progress'
);
values
(
11
7
,
now
(),
'Work In Progress'
);
-- Computing metadata on sha1's contents
-- a SHA1 checksum (not necessarily originating from Git)
...
...
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