Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
2 | <table> | |
3 | <base>CRM/Core</base> | |
4 | <class>OpenID</class> | |
5 | <name>civicrm_openid</name> | |
6 | <comment>OpenID information for a specific location.</comment> | |
7 | <add>2.0</add> | |
8 | <field> | |
8f069c03 | 9 | <name>id</name> |
491c60cd | 10 | <title>Open ID identifier</title> |
8f069c03 EM |
11 | <type>int unsigned</type> |
12 | <required>true</required> | |
13 | <comment>Unique OpenID ID</comment> | |
14 | <add>2.0</add> | |
6a488035 TO |
15 | </field> |
16 | <primaryKey> | |
8f069c03 EM |
17 | <name>id</name> |
18 | <autoincrement>true</autoincrement> | |
6a488035 TO |
19 | </primaryKey> |
20 | <field> | |
8f069c03 | 21 | <name>contact_id</name> |
491c60cd | 22 | <title>OpenID Contact</title> |
8f069c03 EM |
23 | <type>int unsigned</type> |
24 | <comment>FK to Contact ID</comment> | |
25 | <add>2.0</add> | |
6a488035 TO |
26 | </field> |
27 | <foreignKey> | |
8f069c03 EM |
28 | <name>contact_id</name> |
29 | <table>civicrm_contact</table> | |
30 | <key>id</key> | |
31 | <add>2.0</add> | |
32 | <onDelete>CASCADE</onDelete> | |
6a488035 TO |
33 | </foreignKey> |
34 | <field> | |
8f069c03 EM |
35 | <name>location_type_id</name> |
36 | <title>OpenID Location Type</title> | |
37 | <type>int unsigned</type> | |
38 | <comment>Which Location does this email belong to.</comment> | |
39 | <add>2.0</add> | |
6a488035 TO |
40 | </field> |
41 | <index> | |
42 | <name>index_location_type</name> | |
43 | <fieldName>location_type_id</fieldName> | |
44 | <add>2.0</add> | |
45 | </index> | |
46 | <field> | |
8f069c03 EM |
47 | <name>openid</name> |
48 | <title>OpenID</title> | |
49 | <type>varchar</type> | |
50 | <length>255</length> | |
51 | <import>true</import> | |
52 | <headerPattern>/^Open.?ID|u(niq\w*)?.?ID/i</headerPattern> | |
53 | <dataPattern>/^[\w\/\:\.]+$/</dataPattern> | |
54 | <comment>the OpenID (or OpenID-style http://username.domain/) unique identifier for this contact mainly used for logging in to CiviCRM</comment> | |
55 | <rule>url</rule> | |
56 | <comment>OpenID</comment> | |
57 | <add>2.0</add> | |
6a488035 TO |
58 | </field> |
59 | <index> | |
8f069c03 EM |
60 | <name>UI_openid</name> |
61 | <fieldName>openid</fieldName> | |
62 | <unique>true</unique> | |
63 | <add>2.0</add> | |
6a488035 TO |
64 | </index> |
65 | <field> | |
8f069c03 | 66 | <name>allowed_to_login</name> |
491c60cd | 67 | <title>Allowed to login?</title> |
8f069c03 EM |
68 | <type>boolean</type> |
69 | <required>true</required> | |
70 | <default>0</default> | |
71 | <comment>Whether or not this user is allowed to login</comment> | |
72 | <add>2.0</add> | |
6a488035 TO |
73 | </field> |
74 | <field> | |
8f069c03 EM |
75 | <name>is_primary</name> |
76 | <title>Is OpenID Primary?</title> | |
77 | <type>boolean</type> | |
78 | <default>0</default> | |
79 | <comment>Is this the primary email for this contact and location.</comment> | |
80 | <add>2.0</add> | |
6a488035 TO |
81 | </field> |
82 | </table> |