[Vtigercrm-commits] [vtiger-commits] r7099 - /vtigercrm/trunk/modules/Settings/DeleteCustomField.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Jun 15 02:22:45 EDT 2006
Author: don
Date: Thu Jun 15 00:22:41 2006
New Revision: 7099
Log:
prefixed vtiger_ in all table names
Modified:
vtigercrm/trunk/modules/Settings/DeleteCustomField.php
Modified: vtigercrm/trunk/modules/Settings/DeleteCustomField.php
==============================================================================
--- vtigercrm/trunk/modules/Settings/DeleteCustomField.php (original)
+++ vtigercrm/trunk/modules/Settings/DeleteCustomField.php Thu Jun 15 00:22:41 2006
@@ -19,15 +19,15 @@
$uitype = $_REQUEST["uitype"];
//Deleting the CustomField from the Custom Field Table
-$query='delete from vtiger_field where vtiger_fieldid="'.$id.'"';
+$query='delete from vtiger_field where fieldid="'.$id.'"';
$adb->query($query);
//Deleting from vtiger_profile2field vtiger_table
-$query='delete from vtiger_profile2field where vtiger_fieldid="'.$id.'"';
+$query='delete from vtiger_profile2field where fieldid="'.$id.'"';
$adb->query($query);
//Deleting from vtiger_def_org_field vtiger_table
-$query='delete from vtiger_def_org_field where vtiger_fieldid="'.$id.'"';
+$query='delete from vtiger_def_org_field where fieldid="'.$id.'"';
$adb->query($query);
//Dropping the column in the module vtiger_table
@@ -57,7 +57,7 @@
}
//echo '<BR>';
//echo $tableName;
-$dbquery = 'Alter vtiger_table '.$tableName.' Drop Column '.$colName;
+$dbquery = 'Alter table '.$tableName.' Drop Column '.$colName;
$adb->query($dbquery);
//Deleting from convert lead mapping vtiger_table- Jaguar
@@ -70,7 +70,7 @@
if($uitype == 15)
{
-$deltablequery = 'drop vtiger_table '.$colName;
+$deltablequery = 'drop table '.$colName;
$adb->query($deltablequery);
}
header("Location:index.php?module=Settings&action=CustomFieldList&fld_module=".$fld_module."&parenttab=Settings");
More information about the vtigercrm-commits
mailing list