Projekt

Allgemein

Profil

210 Standardsuche findet nicht » Historie » Version 8

[X] Daniel S, 07.03.2019 20:25

1 1 [X] Daniel S
h1. Standardsuche findet nicht
2
3
Schlüsselworte neu generieren
4
5
<pre><code class="sql">
6 8 [X] Daniel S
--ALTER TABLE recnokeyword DISABLE TRIGGER ALL;
7 1 [X] Daniel S
8 8 [X] Daniel S
USER syncro;
9
10
/*
11 1 [X] Daniel S
DELETE FROM recnokeyword
12
WHERE r_tablename IN ('art', 'adk', 'auftg', 'ldsdok', 'belkopf', 'eingrechdokument', 'anl')
13
  AND r_descr = 'keywordsearch' AND r_kategorie = 'internal system usage';
14 8 [X] Daniel S
*/
15 1 [X] Daniel S
16 8 [X] Daniel S
SELECT count(1) FROM (TSystem.kws_create_keywords(art) FROM art) AS a;
17
SELECT count(1) FROM (TSystem.kws_create_keywords(adk) FROM adk) AS a;
18
SELECT count(1) FROM (TSystem.kws_create_keywords(auftg) FROM auftg) AS a;
19
SELECT count(1) FROM (TSystem.kws_create_keywords(ldsdok) FROM ldsdok) AS a;
20
SELECT count(1) FROM (TSystem.kws_create_keywords(belkopf) FROM belkopf) AS a;
21 7 [X] Daniel S
-- ER-Kopf und -Position haben r_tablename='eingrechdokument'              
22 8 [X] Daniel S
SELECT count(1) FROM (TSystem.kws_create_keywords(eingrechdokument.*) FROM eingrechdokument) AS a;
23
SELECT count(1) FROM (TSystem.kws_create_keywords(belegpos.*) FROM belegpos) AS a;
24
SELECT count(1) FROM (TSystem.kws_create_keywords(anl) FROM anl) AS a;
25 6 [X] Daniel S
26 8 [X] Daniel S
--ALTER TABLE recnokeyword ENABLE TRIGGER ALL;
27 6 [X] Daniel S
28
CREATE TRIGGER recnokeyword__b_iu
29
  BEFORE INSERT OR UPDATE
30
  ON public.recnokeyword
31 1 [X] Daniel S
  FOR EACH ROW
32 4 [S] Philipp K
  WHEN (("current_user"() <> ALL (ARRAY['ELO'::name, 'syncro'::name])))
33
  EXECUTE PROCEDURE public.recnokeyword__b_iu();
34
</code></pre>
35 5 [X] Daniel S
36 1 [X] Daniel S
Überprüfen ob die Keywordserch eingestellt ist
37
38
* SuperAdmin -> Notizen anklicken -> im Reiter Eigenschaften schauen > #11830 Screenshot unten