Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
2 | ||
3 | <table> | |
4 | <base>CRM/Core</base> | |
5 | <class>Managed</class> | |
6 | <name>civicrm_managed</name> | |
7 | <comment>List of declaratively managed objects</comment> | |
8 | <add>4.2</add> | |
9 | <log>false</log> | |
10 | <field> | |
11 | <name>id</name> | |
fa6ace1a | 12 | <title>Managed ID</title> |
6a488035 TO |
13 | <type>int unsigned</type> |
14 | <required>true</required> | |
15 | <comment>Surrogate Key</comment> | |
16 | <add>4.2</add> | |
17 | </field> | |
18 | <primaryKey> | |
19 | <name>id</name> | |
20 | <autoincrement>true</autoincrement> | |
21 | </primaryKey> | |
22 | <field> | |
23 | <name>module</name> | |
24 | <title>Module</title> | |
25 | <type>varchar</type> | |
26 | <length>127</length> | |
27 | <required>true</required> | |
28 | <comment>Name of the module which declared this object</comment> | |
29 | <add>4.2</add> | |
30 | </field> | |
31 | <field> | |
32 | <name>name</name> | |
33 | <title>Name</title> | |
34 | <type>varchar</type> | |
35 | <length>127</length> | |
36 | <comment>Symbolic name used by the module to identify the object</comment> | |
37 | <add>4.2</add> | |
38 | </field> | |
39 | <index> | |
40 | <name>UI_managed_module_name</name> | |
41 | <fieldName>module</fieldName> | |
42 | <fieldName>name</fieldName> | |
43 | <add>4.2</add> | |
44 | </index> | |
45 | <field> | |
46 | <name>entity_type</name> | |
f3ea5182 | 47 | <title>Entity Type</title> |
6a488035 TO |
48 | <type>varchar</type> |
49 | <length>64</length> | |
50 | <required>true</required> | |
51 | <comment>API entity type</comment> | |
52 | <add>4.2</add> | |
53 | </field> | |
54 | <field> | |
55 | <name>entity_id</name> | |
f3ea5182 | 56 | <title>Entity ID</title> |
6a488035 TO |
57 | <type>int unsigned</type> |
58 | <required>true</required> | |
59 | <comment>Foreign key to the referenced item.</comment> | |
60 | <add>4.2</add> | |
61 | </field> | |
1f103dc4 TO |
62 | <field> |
63 | <name>cleanup</name> | |
f3ea5182 | 64 | <title>Cleanup Setting</title> |
1f103dc4 TO |
65 | <type>varchar</type> |
66 | <length>32</length> | |
67 | <comment>Policy on when to cleanup entity (always, never, unused)</comment> | |
68 | <pseudoconstant> | |
69 | <callback>CRM_Core_ManagedEntities::getCleanupOptions</callback> | |
70 | </pseudoconstant> | |
71 | <html> | |
72 | <type>Select</type> | |
73 | </html> | |
74 | <add>4.5</add> | |
75 | </field> | |
6a488035 TO |
76 | <index> |
77 | <name>UI_managed_entity</name> | |
78 | <fieldName>entity_type</fieldName> | |
79 | <fieldName>entity_id</fieldName> | |
80 | <add>4.2</add> | |
81 | </index> | |
82 | </table> |