| 1 |
<html> |
| 2 |
<head> |
| 3 |
<title>Constraints</title> |
| 4 |
</head> |
| 5 |
<body> |
| 6 |
{%header:Constraints%} |
| 7 |
<br><br> |
| 8 |
<font size=+2>{%object_name%}</font> |
| 9 |
<br><br> |
| 10 |
<table cellspacing=1 cellpadding=2 border=0 bgcolor=black> |
| 11 |
<tbody> |
| 12 |
<tr bgcolor="navy"> |
| 13 |
{%ifeq:{%is_system%}:false: |
| 14 |
<td width=20> </td> |
| 15 |
%} |
| 16 |
<td nowrap><b><font color=white>Primary key</font></b></td> |
| 17 |
<td nowrap><b><font color=white>On field(s)</font></b></td> |
| 18 |
</tr> |
| 19 |
{%primary_key: |
| 20 |
<tr bgcolor="{%alternate:#DDDDFF:#CCCCFF%}"> |
| 21 |
{%ifeq:{%parent:{%is_system%}%}:false: |
| 22 |
<td nowrap valign="top"> |
| 23 |
<a href="fr://drop_constraint?parent_window={%parent_window%}&object_handle={%object_handle%}"><img src="{%template_root%}drop.png" height="16" width="16"></a> |
| 24 |
</td> |
| 25 |
%} |
| 26 |
<td nowrap valign="top">{%object_name%}</td> |
| 27 |
<td nowrap valign="top">{%constraintinfo:columns%}</td> |
| 28 |
</tr>%} |
| 29 |
</tbody> |
| 30 |
</table> |
| 31 |
<br> |
| 32 |
{%ifeq:{%is_system%}:false: |
| 33 |
<a href="fr://add_constraint?type=PK&parent_window={%parent_window%}&object_handle={%object_handle%}">Add primary key</a> |
| 34 |
%} |
| 35 |
<br><br> |
| 36 |
<table cellspacing=1 cellpadding=2 border=0 bgcolor=black> |
| 37 |
<tbody> |
| 38 |
<tr bgcolor="navy"> |
| 39 |
{%ifeq:{%is_system%}:false: |
| 40 |
<td width="20"> </td> |
| 41 |
%} |
| 42 |
<td nowrap><b><font color=white>Foreign key</font></b></td> |
| 43 |
<td nowrap><b><font color=white>On field(s)</font></b></td> |
| 44 |
<td colspan=2><b><font color=white>References</font></b></td> |
| 45 |
<td nowrap><b><font color=white>On update</font></b></td> |
| 46 |
<td nowrap><b><font color=white>On delete</font></b></td> |
| 47 |
</tr> |
| 48 |
{%foreach:foreign_key:: |
| 49 |
<tr bgcolor="{%alternate:#DDDDFF:#CCCCFF%}"> |
| 50 |
{%ifeq:{%parent:{%is_system%}%}:false: |
| 51 |
<td nowrap valign="top"> |
| 52 |
<a href="fr://drop_constraint?parent_window={%parent_window%}&object_handle={%object_handle%}"><img src="{%template_root%}drop.png" height="16" width="16"></a> |
| 53 |
</td> |
| 54 |
%} |
| 55 |
<td nowrap valign="top">{%object_name%}</td> |
| 56 |
<td valign="top">{%constraintinfo:columns%}</td> |
| 57 |
<td nowrap valign="top"><a href="fr://properties?object_type=TABLE&object_name={%fkinfo:ref_table%}&parent_window={%parent_window%}&helper_object={%object_handle%}">{%fkinfo:ref_table%}</a></td> |
| 58 |
<td valign="top">{%fkinfo:ref_columns%}</td> |
| 59 |
<td nowrap valign="top">{%fkinfo:update_action%}</td> |
| 60 |
<td nowrap valign="top">{%fkinfo:delete_action%}</td> |
| 61 |
</tr>%} |
| 62 |
</tbody> |
| 63 |
</table> |
| 64 |
<br> |
| 65 |
{%ifeq:{%is_system%}:false: |
| 66 |
<a href="fr://add_constraint?type=FK&parent_window={%parent_window%}&object_handle={%object_handle%}">Add foreign key</a> |
| 67 |
%} |
| 68 |
<br><br> |
| 69 |
<table cellspacing=1 cellpadding=2 border=0 bgcolor=black> |
| 70 |
<tbody> |
| 71 |
<tr bgcolor="navy"> |
| 72 |
{%ifeq:{%is_system%}:false: |
| 73 |
<td width="20"></td> |
| 74 |
%} |
| 75 |
<td nowrap><b><font color=white>Unique constraint</font></b></td> |
| 76 |
<td nowrap><b><font color=white>On field(s)</font></b></td> |
| 77 |
</tr> |
| 78 |
{%foreach:unique_constraint:: |
| 79 |
<tr bgcolor="{%alternate:#DDDDFF:#CCCCFF%}"> |
| 80 |
{%ifeq:{%parent:{%is_system%}%}:false: |
| 81 |
<td nowrap valign="top"> |
| 82 |
<a href="fr://drop_constraint?parent_window={%parent_window%}&object_handle={%object_handle%}"><img src="{%template_root%}drop.png" height="16" width="16"></a> |
| 83 |
</td> |
| 84 |
%} |
| 85 |
<td nowrap valign="top">{%object_name%}</td> |
| 86 |
<td nowrap valign="top">{%constraintinfo:columns%}</td> |
| 87 |
</tr>%} |
| 88 |
</tbody> |
| 89 |
</table> |
| 90 |
<br> |
| 91 |
{%ifeq:{%is_system%}:false: |
| 92 |
<a href="fr://add_constraint?type=UNQ&parent_window={%parent_window%}&object_handle={%object_handle%}">Add unique</a> |
| 93 |
%} |
| 94 |
<br><br> |
| 95 |
<table cellspacing=1 cellpadding=2 border=0 bgcolor=black> |
| 96 |
<tbody> |
| 97 |
<tr bgcolor="navy"> |
| 98 |
{%ifeq:{%is_system%}:false: |
| 99 |
<td width="20"></td> |
| 100 |
%} |
| 101 |
<td nowrap><b><font color=white>Check constraint</font></b></td> |
| 102 |
<td nowrap><b><font color=white>Source</font></b></td> |
| 103 |
</tr> |
| 104 |
{%foreach:check_constraint:: |
| 105 |
<tr bgcolor="{%alternate:#DDDDFF:#CCCCFF%}"> |
| 106 |
{%ifeq:{%parent:{%is_system%}%}:false: |
| 107 |
<td nowrap valign="top"> |
| 108 |
<a href="fr://drop_constraint?parent_window={%parent_window%}&object_handle={%object_handle%}"><img src="{%template_root%}drop.png" height="16" width="16"></a> |
| 109 |
</td> |
| 110 |
%} |
| 111 |
<td nowrap valign="top">{%object_name%}</td> |
| 112 |
<td nowrap valign="top">{%checkconstraintinfo:source%}</td> |
| 113 |
</tr>%} |
| 114 |
</tbody> |
| 115 |
</table> |
| 116 |
<br> |
| 117 |
{%ifeq:{%is_system%}:false: |
| 118 |
<a href="fr://add_constraint?type=CHK&parent_window={%parent_window%}&object_handle={%object_handle%}">Add check</a> |
| 119 |
%} |
| 120 |
<br> |
| 121 |
</body> |
| 122 |
</html> |