Skip to content

Commit 88a6501

Browse files
committed
Removing stewardupdates from the repository.
1 parent befa88b commit 88a6501

10 files changed

+5
-32
lines changed

connect_remote.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@
232232

233233
# This section makes sure that the sequences are reset properly. We ran into
234234
# this issue unintentionally during a re-load of the Neotoma data.
235+
235236
cur.execute(open('helpers/reset_sequences.sql', 'r').read())
236237
cur2 = conn.cursor()
237238

function/ts/deletedatasettaxonnotes.sql

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,4 @@ CREATE OR REPLACE FUNCTION ts.deletedatasettaxonnotes(_datasetid integer, _taxon
44
AS $function$
55
DELETE FROM ndb.datasettaxonnotes AS dtn
66
WHERE dtn.datasetid = _datasetid AND dtn.taxonid = _taxonid;
7-
8-
INSERT INTO ti.stewardupdates(contactid, tablename, pk1, pk2, operation)
9-
values (_contactid, n'datasettaxonnotes', _datasetid, _taxonid, n'delete');
107
$function$

function/ts/updatedatasettaxonnotes.sql

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,4 @@ AS $function$
99
date = TO_DATE(_date, 'YYYY-MM-DD'),
1010
notes = _notes
1111
WHERE (dtn.datasetid = _datasetid) AND (dtn.taxonid = _taxonid);
12-
13-
INSERT INTO ti.stewardupdates(contactid, tablename, pk1, pk2, operation, columnname)
14-
values (_contactid, 'datasettaxonnotes', _datasetid, _taxonid, 'update', 'notes')
1512
$function$

function/ts/updatedatavariable.sql

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,4 @@ AS $function$
1111
SET variableid = _newvariableid
1212
WHERE dataid = (SELECT dataid FROM dataids);
1313

14-
WITH dataids AS (
15-
SELECT dsds.dataid
16-
FROM ndb.dsdatasample AS dsds
17-
WHERE (dsds.datasetid = _datasetid) AND (dsds.variableid = _oldvariableid)
18-
)
19-
INSERT INTO ti.stewardupdates(contactid, tablename,pk1, operation, columnname)
20-
SELECT _contactid, 'Data', dids.dataid, 'Update', 'variableid'
21-
FROM (SELECT * FROM dataids) AS dids
2214
$function$

function/ts/updatesite.sql

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ BEGIN
1919
IF oldsitename <> _sitename THEN
2020
UPDATE ndb.sites
2121
SET sitename = _sitename WHERE siteid = _siteid;
22-
INSERT INTO ti.stewardupdates(contactid, tablename, pk1, operation, columnname)
23-
VALUES (_stewardcontactid, 'sites', _siteid, 'Update', 'sitename');
2422
END IF;
2523

2624
IF ((_north > _south) AND (_east > _west)) THEN

function/ts/updatesitegeopol.sql

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ BEGIN
99
IF _sitegeopolid IS NOT NULL THEN
1010
UPDATE ndb.sitegeopolitical
1111
SET geopoliticalid = _newgeopolid WHERE sitegeopoliticalid = _sitegeopolid;
12-
INSERT INTO ti.stewardupdates(contactid, tablename, pk1, operation, columnname)
13-
VALUES (_stewardcontactid, 'sitegeopolitical', _sitegeopolid, 'update', _newgeopolid);
1412
END IF;
1513

1614
END;

function/ts/updatesitegeopoldelete.sql

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ DECLARE
99
BEGIN
1010
IF _sitegeopolid IS NOT NULL THEN
1111
DELETE FROM ndb.sitegeopolitical WHERE (sitegeopoliticalid = _sitegeopolid);
12-
INSERT INTO ti.stewardupdates(contactid, tablename, pk1, operation)
13-
VALUES (_stewardcontactid, 'sitegeopolitical', _sitegeopolid, 'delete');
1412
END IF;
1513

1614
END;

function/ts/updatesitelatlon.sql

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ BEGIN
2424
IF (ST_Equals(geo,oldgeo) IS FALSE) THEN
2525
UPDATE ndb.sites
2626
SET geog = geo::geography WHERE siteid = _siteid;
27-
INSERT INTO ti.stewardupdates(contactid, tablename, pk1, operation, columnname)
28-
VALUES (_stewardcontactid, 'Sites', _siteid, 'Update', 'geog');
2927
END IF;
3028

3129
END;

function/ts/updatespecimennisp.sql

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
CREATE OR REPLACE FUNCTION ts.updatespecimennisp(_specimenid integer, _nisp double precision, _contactid integer)
22
RETURNS void
33
LANGUAGE sql
4-
AS $function$
4+
AS $function$
55

6-
UPDATE ndb.specimens
7-
SET nisp = _nisp
8-
WHERE specimenid = _specimenid;
9-
10-
INSERT INTO ti.stewardupdates(contactid, tablename, pk1, operation, columnname)
11-
VALUES (_contactid, 'Specimens', _specimenid, 'Update', 'NISP')
6+
UPDATE ndb.specimens
7+
SET nisp = _nisp
8+
WHERE specimenid = _specimenid;
129

1310

1411
$function$

function/ts/updatesynonymy.sql

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,4 @@ SET reftaxonid = _reftaxonid,
1818
datesynonymized = _datesynonymized
1919
WHERE synonymyid = _synonymyid;
2020

21-
INSERT INTO ti.stewardupdates(contactid, tablename, pk1, operation)
22-
VALUES (_contactid, 'synonymy', _synonymyid, 'update')
23-
2421
$function$

0 commit comments

Comments
 (0)