 |
vtiger The Honest Open Source CRM
|
| Previous topic :: Next topic |
| Author |
Message |
chriscast
Joined: 10 Jul 2008
Posts: 24
Location: Pisa
|
| Posted: Thu Aug 28, 2008 7:37 am Post subject: How can I really delete entities from MySQL? |
|
|
Hi there,
I'm new to vTiger and I've discovered that when I delete an item from the system (via browser), vTiger set to 1 the field vtiger_crmentity in the database.
I can see all deleted items by a simpel query (and if I'm not wrong, in future releases it will be possibile to restore these items by the GUI, won't it?).
My question is: how can I really delete those items in MySQL (in order to make it cleaner) that I've deleted from vTiger? What queries are involved?
Thanks. |
|
| Back to top |
|
pinaki
Joined: 18 Oct 2007
Posts: 57
|
| Posted: Thu Aug 28, 2008 11:09 am Post subject: How can I really delete entities from MySQL? |
|
|
Hi chriscast,
In vtiger, all the tablenames related to a module are saved in the array variable $tab_name in the class file of that module (for e.g. Contacts.php for Contacts module). Also since crmid of vtiger_crmentity table is the base key (it has on delete cascade defined on it for other tables), deleting the row from vtiger_crmentity table will remove it from most of the tables of a module. Others you will have to manually check and delete.
Please be careful when database records directly as you can seriously damage your vtiger installation. I would recommend a backup before proceeding.
Let me know how you go.
Thanks
Pinaki
vTiger team |
|
| Back to top |
|
| |
|