Skip to content

Commit 5973e29

Browse files
committed
Removed steward udate table.
1 parent 5c54b61 commit 5973e29

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

function/ts/insertdatasettaxonnotes.sql

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,4 @@ CREATE OR REPLACE FUNCTION ts.insertdatasettaxonnotes(_datasetid integer, _taxon
44
AS $function$
55
INSERT INTO ndb.datasettaxonnotes (datasetid, taxonid, contactid, date, notes)
66
VALUES (_datasetid, _taxonid, _contactid, TO_DATE(_date, 'YYYY-MM-DD'), _notes);
7-
8-
WITH updval AS (
9-
SELECT _contactid AS contactid,
10-
'datasettaxonnotes' AS tablename,
11-
_datasetid AS pk1,
12-
_taxonid AS pk2,
13-
'insert' AS operation
14-
WHERE _update
15-
)
16-
INSERT INTO ti.stewardupdates(contactid, tablename, pk1, pk2, operation)
17-
SELECT * FROM updval;
18-
197
$function$

0 commit comments

Comments
 (0)