This file is indexed.

/usr/share/pgmodeler/schemas/xml/constraint.sch is in pgmodeler-common 0.9.1~beta-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# XML definition for constraints
# CAUTION: Do not modify this file unless you know what you are doing.
#          Code generation can be broken if incorrect changes are made.
%if {decl-in-table} %then $tb %end

[<constraint name=] "{name}" [ type=] "{type}"

 %if {fk-constr} %then
    [ comparison-type=] "{comparison-type}"
   $br

   $tb
    [ upd-action=] "{upd-action}"
    [ del-action=] "{del-action}"
    [ ref-table=] "{ref-table}"
 %end


 %if {deferrable} %then
  $br $tb
    [deferrable=] "true"
    [ defer-type=] "{defer-type}" $br
 %end

 %if {ck-constr} %and {no-inherit} %then
    [ no-inherit="true"]
 %end

 %if {ex-constr} %and {index-type} %then
    [ index-type=]"{index-type}"
 %end

 %if {factor} %then
  [ factor=] "{factor}"
 %end

 %if {protected} %then 
  [ protected="true"]
 %end
 
  %if {sql-disabled} %then
   [ sql-disabled=] "true"
  %end

 %if {table} %then 
  [ table=] "{table}"
 %end

> $br

 %if {tablespace} %then $tb {tablespace} %end
 
 %if {decl-in-table} %then $tb %end
 %if {src-columns} %then
 $tb <columns  $sp names="{src-columns}" $sp ref-type="src-columns"/> $br
 %end
 
 %if {dst-columns} %then
  %if {decl-in-table} %then $tb %end
  $tb <columns $sp names="{dst-columns}" $sp ref-type="dst-columns"/> $br
 %end

 %if {ex-constr} %then
   {elements}
 %end

 %if {ck-constr} %or {ex-constr} %then
   %if {expression} %then
    %if {decl-in-table} %then $tb %end
     $tb <expression> <! $ob CDATA $ob {expression} $cb $cb > </expression> $br
   %end
 %end

 %if {comment} %then $tb {comment} %end
 
%if {decl-in-table} %then $tb %end
</constraint> $br
%if %not {decl-in-table} %then $br %end