CRM-14181, more clean and fixes to support callback
[civicrm-core.git] / xml / schema / Core / Extension.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Core</base>
5 <class>Extension</class>
6 <name>civicrm_extension</name>
7 <add>4.2</add>
8 <log>false</log>
9 <field>
10 <name>id</name>
11 <type>int unsigned</type>
12 <required>true</required>
13 <comment>Local Extension ID</comment>
14 <add>4.2</add>
15 </field>
16 <primaryKey>
17 <name>id</name>
18 <autoincrement>true</autoincrement>
19 </primaryKey>
20 <field>
21 <name>type</name>
22 <title>Type</title>
23 <type>varchar</type>
24 <length>8</length>
25 <required>true</required>
26 <comment></comment>
27 <pseudoconstant>
28 <callback>CRM_Core_SelectValues::getExtensionTypes</callback>
29 </pseudoconstant>
30 <add>4.2</add>
31 <html>
32 <type>Select</type>
33 </html>
34 </field>
35 <field>
36 <!-- "key" is a reserved word in MySQL -->
37 <name>full_name</name>
38 <title>Key</title>
39 <type>varchar</type>
40 <length>255</length>
41 <required>true</required>
42 <comment>Fully qualified extension name</comment>
43 <add>4.2</add>
44 </field>
45 <index>
46 <name>UI_extension_full_name</name>
47 <fieldName>full_name</fieldName>
48 <unique>true</unique>
49 <add>4.2</add>
50 </index>
51 <field>
52 <name>name</name>
53 <title>Name</title>
54 <type>varchar</type>
55 <length>255</length>
56 <import>true</import>
57 <comment>Short name</comment>
58 <add>4.2</add>
59 </field>
60 <index>
61 <name>UI_extension_name</name>
62 <fieldName>name</fieldName>
63 <add>4.2</add>
64 </index>
65 <field>
66 <name>label</name>
67 <title>Label</title>
68 <type>varchar</type>
69 <length>255</length>
70 <import>true</import>
71 <comment>Short, printable name</comment>
72 <add>4.2</add>
73 </field>
74 <field>
75 <name>file</name>
76 <title>File</title>
77 <type>varchar</type>
78 <length>255</length>
79 <import>true</import>
80 <comment>Primary PHP file</comment>
81 <add>4.2</add>
82 </field>
83 <field>
84 <name>schema_version</name>
85 <title>Schema Version</title>
86 <type>varchar</type>
87 <length>63</length>
88 <import>true</import>
89 <comment>Revision code of the database schema; the format is module-defined</comment>
90 <add>4.2</add>
91 </field>
92 <field>
93 <name>is_active</name>
94 <type>boolean</type>
95 <default>1</default>
96 <comment>Is this extension active?</comment>
97 <add>4.2</add>
98 </field>
99 </table>