| 1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
| 2 | |
| 3 | <table> |
| 4 | <base>CRM/Core</base> |
| 5 | <class>LocBlock</class> |
| 6 | <name>civicrm_loc_block</name> |
| 7 | <comment>Define location specific properties</comment> |
| 8 | <add>2.0</add> |
| 9 | <log>true</log> |
| 10 | <field> |
| 11 | <name>id</name> |
| 12 | <title>Location Block ID</title> |
| 13 | <type>int unsigned</type> |
| 14 | <required>true</required> |
| 15 | <comment>Unique ID</comment> |
| 16 | <add>2.0</add> |
| 17 | </field> |
| 18 | <primaryKey> |
| 19 | <name>id</name> |
| 20 | <autoincrement>true</autoincrement> |
| 21 | </primaryKey> |
| 22 | <field> |
| 23 | <name>address_id</name> |
| 24 | <title>Location Block Address</title> |
| 25 | <type>int unsigned</type> |
| 26 | <add>2.0</add> |
| 27 | </field> |
| 28 | <foreignKey> |
| 29 | <name>address_id</name> |
| 30 | <table>civicrm_address</table> |
| 31 | <key>id</key> |
| 32 | <add>2.0</add> |
| 33 | <onDelete>SET NULL</onDelete> |
| 34 | </foreignKey> |
| 35 | <field> |
| 36 | <name>email_id</name> |
| 37 | <title>Location Block Email</title> |
| 38 | <type>int unsigned</type> |
| 39 | <add>2.0</add> |
| 40 | </field> |
| 41 | <foreignKey> |
| 42 | <name>email_id</name> |
| 43 | <table>civicrm_email</table> |
| 44 | <key>id</key> |
| 45 | <add>2.0</add> |
| 46 | <onDelete>SET NULL</onDelete> |
| 47 | </foreignKey> |
| 48 | <field> |
| 49 | <name>phone_id</name> |
| 50 | <type>int unsigned</type> |
| 51 | <add>2.0</add> |
| 52 | </field> |
| 53 | <foreignKey> |
| 54 | <name>phone_id</name> |
| 55 | <table>civicrm_phone</table> |
| 56 | <key>id</key> |
| 57 | <add>2.0</add> |
| 58 | <onDelete>SET NULL</onDelete> |
| 59 | </foreignKey> |
| 60 | <field> |
| 61 | <name>im_id</name> |
| 62 | <type>int unsigned</type> |
| 63 | <add>2.0</add> |
| 64 | </field> |
| 65 | <foreignKey> |
| 66 | <name>im_id</name> |
| 67 | <table>civicrm_im</table> |
| 68 | <key>id</key> |
| 69 | <add>2.0</add> |
| 70 | <onDelete>SET NULL</onDelete> |
| 71 | </foreignKey> |
| 72 | <field> |
| 73 | <name>address_2_id</name> |
| 74 | <type>int unsigned</type> |
| 75 | <add>2.0</add> |
| 76 | </field> |
| 77 | <foreignKey> |
| 78 | <name>address_2_id</name> |
| 79 | <table>civicrm_address</table> |
| 80 | <key>id</key> |
| 81 | <add>2.0</add> |
| 82 | <onDelete>SET NULL</onDelete> |
| 83 | </foreignKey> |
| 84 | <field> |
| 85 | <name>email_2_id</name> |
| 86 | <type>int unsigned</type> |
| 87 | <add>2.0</add> |
| 88 | </field> |
| 89 | <foreignKey> |
| 90 | <name>email_2_id</name> |
| 91 | <table>civicrm_email</table> |
| 92 | <key>id</key> |
| 93 | <add>2.0</add> |
| 94 | <onDelete>SET NULL</onDelete> |
| 95 | </foreignKey> |
| 96 | <field> |
| 97 | <name>phone_2_id</name> |
| 98 | <type>int unsigned</type> |
| 99 | <add>2.0</add> |
| 100 | </field> |
| 101 | <foreignKey> |
| 102 | <name>phone_2_id</name> |
| 103 | <table>civicrm_phone</table> |
| 104 | <key>id</key> |
| 105 | <add>2.0</add> |
| 106 | <onDelete>SET NULL</onDelete> |
| 107 | </foreignKey> |
| 108 | <field> |
| 109 | <name>im_2_id</name> |
| 110 | <type>int unsigned</type> |
| 111 | <add>2.0</add> |
| 112 | </field> |
| 113 | <foreignKey> |
| 114 | <name>im_2_id</name> |
| 115 | <table>civicrm_im</table> |
| 116 | <key>id</key> |
| 117 | <add>2.0</add> |
| 118 | <onDelete>SET NULL</onDelete> |
| 119 | </foreignKey> |
| 120 | </table> |