Merge pull request #15223 from seamuslee001/when_package_upgrade
[civicrm-core.git] / xml / schema / Mailing / TrackableURL.xml
CommitLineData
6a488035
TO
1<?xml version="1.0" encoding="iso-8859-1" ?>
2
3<table>
5435b737
EM
4 <base>CRM/Mailing</base>
5 <class>TrackableURL</class>
6 <name>civicrm_mailing_trackable_url</name>
7 <comment>Stores URLs for which we should track click-throughs from mailings</comment>
8 <archive>true</archive>
9 <field>
10 <name>id</name>
fa6ace1a 11 <title>Trackable URL ID</title>
5435b737
EM
12 <type>int unsigned</type>
13 <required>true</required>
14 </field>
15 <primaryKey>
16 <name>id</name>
17 <autoincrement>true</autoincrement>
18 </primaryKey>
19 <field>
20 <name>url</name>
fa6ace1a 21 <title>Url</title>
22 <type>text</type>
5435b737
EM
23 <required>true</required>
24 <comment>The URL to be tracked.</comment>
25 </field>
26 <field>
27 <name>mailing_id</name>
fa6ace1a 28 <title>Mailing</title>
5435b737
EM
29 <type>int unsigned</type>
30 <required>true</required>
31 <comment>FK to the mailing</comment>
32 </field>
33 <foreignKey>
34 <name>mailing_id</name>
35 <table>civicrm_mailing</table>
36 <key>id</key>
37 <onDelete>CASCADE</onDelete>
38 </foreignKey>
6a488035 39</table>