Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Changes
Page history
Update Database conversion
authored
Aug 27, 2022
by
Émilie Pagé-Perron
Show whitespace changes
Inline
Side-by-side
Database-conversion.md
View page @
6a44dc25
...
...
@@ -1286,9 +1286,35 @@ insert into cdli_db.artifacts_publications (artifact_id, publication_id, publica
select artifact_id, publication_id, type from cdli_db_tmp.pub_history
UPDATE `publications` SET designation = bibtexkey WHERE designation is null;
```
Refresh accepted by and accepted status
```
update cdli_db.publications Set accepted_by = 820;
update cdli_db.publications Set accepted = 1;
```
bibtexkey
For the about 500 publications coming from curated bib collections update designation from bibtex key
`UPDATE `
publications
` SET designation = bibtexkey WHERE designation is null;`
#### Create bibtex keys from ids
```
UPDATE publications
SET bibtexkey = id
Where bibtexkey is null
```
# 4 Artifacts updates / update events & cat credits
check for missing new fields before running the query
...
...
...
...