[Vtigercrm-commits] [vtiger-commits] r11025 - /vtigercrm/branches/5.0.3/schema/DatabaseSchema.xml

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Fri May 25 02:09:52 EDT 2007


Author: jerrydgeorge
Date: Fri May 25 00:09:45 2007
New Revision: 11025

Log:
On Delete Cascade changed to On Update Cascade for all grouprelation tables

Modified:
    vtigercrm/branches/5.0.3/schema/DatabaseSchema.xml

Modified: vtigercrm/branches/5.0.3/schema/DatabaseSchema.xml
==============================================================================
--- vtigercrm/branches/5.0.3/schema/DatabaseSchema.xml (original)
+++ vtigercrm/branches/5.0.3/schema/DatabaseSchema.xml Fri May 25 00:09:45 2007
@@ -1958,7 +1958,6 @@
 			<notnull />
 			<default value="no" />
 		</field>
-
 		<index name="import_maps_assigned_user_id_module_name_deleted_idx">
 			<col>assigned_user_id</col>
 			<col>module</col>
@@ -1984,7 +1983,7 @@
 	</table>
 
 <table name="vtiger_leadgrouprelation" alter="true">
-<constraint>ADD CONSTRAINT fk_1_vtiger_leadgrouprelation FOREIGN KEY (groupname) REFERENCES vtiger_groups(groupname) ON DELETE CASCADE</constraint>
+<constraint>ADD CONSTRAINT fk_1_vtiger_leadgrouprelation FOREIGN KEY (groupname) REFERENCES vtiger_groups(groupname) ON UPDATE CASCADE</constraint>
 <constraint>ADD CONSTRAINT fk_2_vtiger_leadgrouprelation FOREIGN KEY (leadid) REFERENCES vtiger_leaddetails(leadid) ON DELETE CASCADE</constraint>
 <opt>Type=InnoDB</opt>
 <data>
@@ -2006,7 +2005,7 @@
 
 <table name="vtiger_accountgrouprelation" alter="true">
 <constraint>ADD CONSTRAINT fk_1_vtiger_accountgrouprelation FOREIGN KEY (accountid) REFERENCES vtiger_account(accountid) ON DELETE CASCADE</constraint>
-<constraint>ADD CONSTRAINT fk_2_vtiger_accountgrouprelation FOREIGN KEY (groupname) REFERENCES vtiger_groups(groupname) ON DELETE CASCADE</constraint>
+<constraint>ADD CONSTRAINT fk_2_vtiger_accountgrouprelation FOREIGN KEY (groupname) REFERENCES vtiger_groups(groupname) ON UPDATE CASCADE</constraint>
 <opt>Type=InnoDB</opt>
 <data>
 </data>
@@ -2027,7 +2026,7 @@
 
 <table name="vtiger_contactgrouprelation" alter="true">
 <constraint>ADD CONSTRAINT fk_1_vtiger_contactgrouprelation FOREIGN KEY (contactid) REFERENCES vtiger_contactdetails(contactid) ON DELETE CASCADE</constraint>
-<constraint>ADD CONSTRAINT fk_2_vtiger_contactgrouprelation FOREIGN KEY (groupname) REFERENCES vtiger_groups(groupname) ON DELETE CASCADE</constraint>
+<constraint>ADD CONSTRAINT fk_2_vtiger_contactgrouprelation FOREIGN KEY (groupname) REFERENCES vtiger_groups(groupname) ON UPDATE CASCADE</constraint>
 <opt>Type=InnoDB</opt>
 <data>
 </data>
@@ -2047,7 +2046,7 @@
 	</table>
 
 <table name="vtiger_potentialgrouprelation" alter="true">
-<constraint>ADD CONSTRAINT fk_1_vtiger_potentialgrouprelation FOREIGN KEY (groupname) REFERENCES vtiger_groups(groupname) ON DELETE CASCADE</constraint>
+<constraint>ADD CONSTRAINT fk_1_vtiger_potentialgrouprelation FOREIGN KEY (groupname) REFERENCES vtiger_groups(groupname) ON UPDATE CASCADE</constraint>
 <constraint>ADD CONSTRAINT fk_2_vtiger_potentialgrouprelation FOREIGN KEY (potentialid) REFERENCES vtiger_potential(potentialid) ON DELETE CASCADE</constraint>
 <opt>Type=InnoDB</opt>
 <data>
@@ -2069,7 +2068,7 @@
 
 <table name="vtiger_campaigngrouprelation" alter="true">
 <constraint>ADD CONSTRAINT fk_1_vtiger_campaigngrouprelation FOREIGN KEY (campaignid) REFERENCES vtiger_campaign(campaignid) ON DELETE CASCADE</constraint>
-<constraint>ADD CONSTRAINT fk_2_vtiger_campaigngrouprelation FOREIGN KEY (groupname) REFERENCES vtiger_groups(groupname) ON DELETE CASCADE</constraint>
+<constraint>ADD CONSTRAINT fk_2_vtiger_campaigngrouprelation FOREIGN KEY (groupname) REFERENCES vtiger_groups(groupname) ON UPDATE CASCADE</constraint>
 <opt>Type=InnoDB</opt>
 <data>
 </data>
@@ -2093,7 +2092,7 @@
 
 <table name="vtiger_activitygrouprelation" alter="true">
 <constraint>ADD CONSTRAINT fk_1_vtiger_activitygrouprelation FOREIGN KEY (activityid) REFERENCES vtiger_activity(activityid) ON DELETE CASCADE</constraint>
-<constraint>ADD CONSTRAINT fk_2_vtiger_activitygrouprelation FOREIGN KEY (groupname) REFERENCES vtiger_groups(groupname) ON DELETE CASCADE</constraint>
+<constraint>ADD CONSTRAINT fk_2_vtiger_activitygrouprelation FOREIGN KEY (groupname) REFERENCES vtiger_groups(groupname) ON UPDATE CASCADE</constraint>
 <opt>Type=InnoDB</opt>
 <data>
 </data>
@@ -2116,7 +2115,7 @@
 	</table>
 
 <table name="vtiger_ticketgrouprelation" alter="true">
-<constraint>ADD CONSTRAINT fk_1_vtiger_ticketgrouprelation FOREIGN KEY (groupname) REFERENCES vtiger_groups(groupname) ON DELETE CASCADE</constraint>
+<constraint>ADD CONSTRAINT fk_1_vtiger_ticketgrouprelation FOREIGN KEY (groupname) REFERENCES vtiger_groups(groupname) ON UPDATE CASCADE</constraint>
 <constraint>ADD CONSTRAINT fk_2_vtiger_ticketgrouprelation FOREIGN KEY (ticketid) REFERENCES vtiger_troubletickets(ticketid) ON DELETE CASCADE</constraint>
 <opt>Type=InnoDB</opt>
 <data>
@@ -3446,7 +3445,7 @@
 	</table>
 
 <table name="vtiger_sogrouprelation" alter="true">
-<constraint>ADD CONSTRAINT fk_1_vtiger_sogrouprelation FOREIGN KEY (groupname) REFERENCES vtiger_groups(groupname) ON DELETE CASCADE</constraint>
+<constraint>ADD CONSTRAINT fk_1_vtiger_sogrouprelation FOREIGN KEY (groupname) REFERENCES vtiger_groups(groupname) ON UPDATE CASCADE</constraint>
 <constraint>ADD CONSTRAINT fk_2_vtiger_sogrouprelation FOREIGN KEY (salesorderid) REFERENCES vtiger_salesorder(salesorderid) ON DELETE CASCADE</constraint>
 <opt>Type=InnoDB</opt>
 <data>
@@ -3810,7 +3809,7 @@
 	</table>
 
 <table name="vtiger_quotegrouprelation" alter="true">
-<constraint>ADD CONSTRAINT fk_1_vtiger_quotegrouprelation FOREIGN KEY (groupname) REFERENCES vtiger_groups(groupname) ON DELETE CASCADE</constraint>
+<constraint>ADD CONSTRAINT fk_1_vtiger_quotegrouprelation FOREIGN KEY (groupname) REFERENCES vtiger_groups(groupname) ON UPDATE CASCADE</constraint>
 <constraint>ADD CONSTRAINT fk_2_vtiger_quotegrouprelation FOREIGN KEY (quoteid) REFERENCES vtiger_quotes(quoteid) ON DELETE CASCADE</constraint>
 <opt>Type=InnoDB</opt>
 <data>
@@ -3900,7 +3899,7 @@
 	</table>
 
 <table name="vtiger_pogrouprelation" alter="true">
-<constraint>ADD CONSTRAINT fk_1_vtiger_pogrouprelation FOREIGN KEY (groupname) REFERENCES vtiger_groups(groupname) ON DELETE CASCADE</constraint>
+<constraint>ADD CONSTRAINT fk_1_vtiger_pogrouprelation FOREIGN KEY (groupname) REFERENCES vtiger_groups(groupname) ON UPDATE CASCADE</constraint>
 <constraint>ADD CONSTRAINT fk_2_vtiger_pogrouprelation FOREIGN KEY (purchaseorderid) REFERENCES vtiger_purchaseorder(purchaseorderid) ON DELETE CASCADE</constraint>
 <opt>Type=InnoDB</opt>
 <data>
@@ -4032,7 +4031,7 @@
 	</table>
 
 <table name="vtiger_invoicegrouprelation" alter="true">
-<constraint>ADD CONSTRAINT fk_1_vtiger_invoicegrouprelation FOREIGN KEY (groupname) REFERENCES vtiger_groups(groupname) ON DELETE CASCADE</constraint>
+<constraint>ADD CONSTRAINT fk_1_vtiger_invoicegrouprelation FOREIGN KEY (groupname) REFERENCES vtiger_groups(groupname) ON UPDATE CASCADE</constraint>
 <constraint>ADD CONSTRAINT fk_2_vtiger_invoicegrouprelation FOREIGN KEY (invoiceid) REFERENCES vtiger_invoice(invoiceid) ON DELETE CASCADE</constraint>
 <opt>Type=InnoDB</opt>
 <data>





More information about the vtigercrm-commits mailing list