You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On newly created updates on OpenSRP regarding server version as documented on this PR and this PR. There seems to be a bug where by the original migrated records had incrementing values of server version however newly entered records from OpenSRP Web do not seem to increment the value, it saves 0
See sample below from practitioners endpoint;
Found out that some of the entries did not migrate successfully and were indicating null in the database. Needs to review the Migration script in the above mentioned PR's.
Quick solution was to rerun the server version assignment on the database, we achieved that by a temp query below;
do $$
declare
counter integer := 0;
begin
while counter < 48 loop --SET COUNT TO max rows
--******************
begin
UPDATE team.organization
SET server_version = (SELECT nextval('team.organization_server_version_seq'))
WHERE id = counter;
end;
--******************
counter := counter + 1;
end loop;
end$$;
On newly created updates on OpenSRP regarding server version as documented on this PR and this PR. There seems to be a bug where by the original migrated records had incrementing values of server version however newly entered records from OpenSRP Web do not seem to increment the value, it saves
0
See sample below from practitioners endpoint;
The text was updated successfully, but these errors were encountered: