2290-file-replace merged, SQL update required

10 views
Skip to first unread message

Philip Durbin

unread,
Jan 28, 2017, 9:00:41 AM1/28/17
to datave...@googlegroups.com
https://github.com/IQSS/dataverse/pull/3579 was just merged, which means that you must run the following SQL statements to keep your development environment in working order (unless you've already been working on that branch, of course):

ALTER TABLE datafile ADD COLUMN rootdatafileid bigint default -1;
ALTER TABLE datafile ADD COLUMN previousdatafileid bigint default null;
UPDATE datafile SET rootdatafileid = -1;

These come from https://github.com/IQSS/dataverse/blob/f0f5aea31b5020fcfe0ead5383fbd9211f466c31/scripts/database/upgrades/upgrade_v4.6_to_v4.6.1.sql

https://github.com/IQSS/dataverse/issues/2290 is the main issue to read about for the new "file replace" feature. The new native "add" and "replace" APIs were also significant additions, which you can read about at https://github.com/IQSS/dataverse/issues/1612

Happy hacking!

Phil

--
Reply all
Reply to author
Forward
0 new messages