mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Add notes for 2016-06-30
This commit is contained in:
@ -273,3 +273,17 @@ $ ./delete-metadata-values.py -f dc.contributor.corporate -i Corporate-Authors-D
|
||||
|
||||
- Run all system updates on the servers and reboot
|
||||
- Start working on config changes for phase three of the metadata migrations
|
||||
|
||||
## 2016-06-30
|
||||
|
||||
- Wow, there are 95 authors in the database who have ',' at the end of their name:
|
||||
|
||||
```
|
||||
#select text_value from metadatavalue where metadata_field_id=3 and text_value like '%,';
|
||||
```
|
||||
|
||||
- We need to use something like this to fix them, need to write a proper regex later:
|
||||
|
||||
```
|
||||
# update metadatavalue set text_value = regexp_replace(text_value, '(Poole, J),', '\1') where text_value = 'Poole, J,';
|
||||
```
|
||||
|
Reference in New Issue
Block a user