]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-5727: Removing vestigates of attempt to install computeCurrentLocation functio...
authorAron Roberts <aron@socrates.berkeley.edu>
Thu, 6 Dec 2012 02:27:23 +0000 (18:27 -0800)
committerAron Roberts <aron@socrates.berkeley.edu>
Thu, 6 Dec 2012 02:27:23 +0000 (18:27 -0800)
services/collectionobject/service/src/main/resources/db/mysql/collectionobject.sql [deleted file]
services/collectionobject/service/src/main/resources/db/postgresql/collectionobject.sql [deleted file]

diff --git a/services/collectionobject/service/src/main/resources/db/mysql/collectionobject.sql b/services/collectionobject/service/src/main/resources/db/mysql/collectionobject.sql
deleted file mode 100644 (file)
index 52a3280..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
--- File intentionally empty
--- Can add SQL commands for CollectionObject-related database setup
--- in MySQL below.
diff --git a/services/collectionobject/service/src/main/resources/db/postgresql/collectionobject.sql b/services/collectionobject/service/src/main/resources/db/postgresql/collectionobject.sql
deleted file mode 100644 (file)
index 59a98c7..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-CREATE OR REPLACE FUNCTION lastidentifiedlocation(character varying) RETURNS character varying
-    AS 'select m.currentlocation as lastidentifiedlocation
-from movements_common m,
-hierarchy h1, 
-relations_common r, 
-hierarchy h2,
-collectionobjects_common c,
-misc misc
-where m.id=h1.id
-and r.subjectcsid=h1.name 
-and r.subjectdocumenttype=''Movement''
-and r.objectdocumenttype=''CollectionObject''
-and r.objectcsid=h2.name 
-and h2.id=c.id
-and misc.id = c.id
-and misc.lifecyclestate <> ''deleted''
-and m.currentlocation is not null
-and m.locationdate is not null
-and h2.name=$1
-order by m.locationdate desc,row_number() over(order by locationdate)
-limit 1'
-LANGUAGE SQL
-    IMMUTABLE
-    RETURNS NULL ON NULL INPUT;