git-tfs-id: [http://tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube...
authorVásáry Dániel <daniel.vasary@userrendszerhaz.hu>
Mon, 6 Aug 2018 09:59:15 +0000 (09:59 +0000)
committerVásáry Dániel <daniel.vasary@userrendszerhaz.hu>
Mon, 6 Aug 2018 09:59:15 +0000 (09:59 +0000)
server/user.jobengine.osgi.commons/log/mediacube-err.log [new file with mode: 0644]
server/user.jobengine.osgi.commons/log/mediacube.log [new file with mode: 0644]
server/user.jobengine.osgi.db/sql/update-itemtypes.sql

diff --git a/server/user.jobengine.osgi.commons/log/mediacube-err.log b/server/user.jobengine.osgi.commons/log/mediacube-err.log
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/server/user.jobengine.osgi.commons/log/mediacube.log b/server/user.jobengine.osgi.commons/log/mediacube.log
new file mode 100644 (file)
index 0000000..e69de29
index 361bb21515175633ce716c40831992b804351574..9764463edd1943db769d92a163ae31e5880e5682 100644 (file)
@@ -35,6 +35,7 @@ update media set itemtypeid=(select id from itemtype where name='Rekl
 select mediaid from vw_items where mediatype='Generic' and regexp_like(mediafilehouseid, 'R\d{6}.\.MXF', 1)\r
 )\r
 \r
+\r
 select mediatype, itemtitle, mediatitle, mediahouseid, mediafilehouseid from vw_items where regexp_like(mediafilehouseid, '\d{8}_\d{1}-\d{8}\.MXF', 1)\r
 select itemtitle, mediatitle, mediahouseid, mediafilehouseid from vw_items where mediatype='Generic' and MEDIAHOUSEID like 'MC-%' and MEDIAFILEHOUSEID not like 'MC-%' and regexp_like(mediafilehouseid, '\d{6}', 1) and regexp_like(itemtitle, '\d{6}', 1) and itemtitle not like 'MC-%'\r
 select itemtitle, mediatitle, mediahouseid, mediafilehouseid from vw_items where mediatype='Generic' and regexp_like(mediafilehouseid, 'M\d{6}.\.MXF', 1)\r
@@ -42,4 +43,39 @@ select itemtitle, mediatitle, mediahouseid, mediafilehouseid from vw_items where
 select itemtitle, mediatitle, mediahouseid, mediafilehouseid from vw_items where mediatype='Generic' and regexp_like(mediafilehouseid, 'R\d{6}.\.MXF', 1)\r
 select itemtitle, mediatitle, mediahouseid, mediafilehouseid from vw_items where mediatype='Generic' and itemtitle like '%híradó%'\r
 \r
-"select * from MEDIADESCRIPTION where contains(description, '170807_DEMO_ERDOGAN_BI-20180720103153*')"\r
+select itemtitle, mediatitle, mediahouseid, mediafilehouseid, tag, username, source from vw_items, vw_workflow where mediatype='Generic' and itemtitle like '%híradó%' and filename=mediafilehouseid\r
+\r
+select itemtitle, mediatitle, mediahouseid, mediafilehouseid, tag, username, source from vw_items \r
+left outer join vw_workflow on (filename=mediafilehouseid)\r
+where mediatype='Generic' and itemtitle like '%híradó%'\r
+\r
+select * from vw_items \r
+where mediatype='Generic' and itemtitle like '%híradó%' and mediafilehouseid not in (select filename from vw_workflow)\r
+\r
+--Törökõr\r
+select mediatype, itemtitle, itemhouseid, mediatitle, mediahouseid, mediafilehouseid from vw_items where mediahouseid like 'MC-%' and regexp_like(itemtitle, '^\d{6}', 1) order by itemtitle asc\r
+\r
+drop view vw_wflog\r
+go\r
+CREATE OR REPLACE view vw_workflow as\r
+(\r
+select \r
+*,\r
+RIGHT(REPLACE(destination, '\', '/'), LENGTH(REPLACE(destination, '\', '/')) - LOCATE_IN_STRING(REPLACE(destination, '\', '/'),'/',-1)) filename \r
+ from WORKFLOWACTION\r
+)\r
+go\r
+select * from vw_workflow\r
+fetch first 100 rows only\r
+\r
+select normdest, RIGHT(normdest, LENGTH(normdest) - LOCATE_IN_STRING(normdest,'/',-1)) filename from vw_wflog\r
+fetch first 1000 rows only\r
+where destination like '%26506533-15%'\r
+\r
+\r
+select * from media where title like '%elgekko%' \r
+select * from mediafile where mediaid = 122645\r
+\r
+INSERT INTO DB2ADMIN.MEDIAFILE(MEDIAID, STOREID, FILETYPEID, RELATIVEPATH, HOUSEID) \r
+       VALUES(122645, 1, 1, 'xxxx', 'xxxx')\r
+GO\r