By jasonargo on Saturday, 19 April 2014
Posted in General Issues
Replies 19
Likes 0
Views 693
Votes 0
I need to delete two fields Profile, they are deleted from the database also.

If I delete two fields eliminare data collected so far in the database?
Thank's
Hello Jason,

When you delete a field, the data is not deleted but it would be an orphan record
·
Saturday, 19 April 2014 14:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark,

Then the data are in Phpmyadmin?
·
Sunday, 20 April 2014 19:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, these data are still stored in #__social_fields_data
·
Sunday, 20 April 2014 22:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark as I delete this?
·
Monday, 21 April 2014 22:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry, but I don't get you here but no, don't delete the table If you delete this table, all other custom fields would lose it's values.
·
Monday, 21 April 2014 23:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark wrote:

When you delete a field, the data is not deleted but it would be an orphan record


So when you delete a custom field, it's records associated are not removed? So for example if I create a custom field called "Years of Joomla Experience", a few members fill it out, and later I decide to remove the custom field altogether, your saying those few records will still exist?
·
Tuesday, 22 April 2014 01:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Josh,

Looking at the codes, yeah it looks like it's left there as an orphan record in case you need to back up in the future or when we add in the export tool (whichever comes first )
·
Tuesday, 22 April 2014 03:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Makes sense. In the future it would be nice to have a way to remove the orphan records or remove the field data when deleting the custom field. It is nice however that right now the data can be saved in case of a future import/export.
·
Tuesday, 22 April 2014 04:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Josh,

Yep, you are right. Perhaps a new maintenance script is necessary if you want to remove all orphan records
·
Tuesday, 22 April 2014 10:42
·
0 Likes
·
0 Votes
·
0 Comments
·
That would do it. Also perhaps a way to re-associate those records with a custom field. Perhaps that aspect is left up to the importing/exporting idea.
·
Tuesday, 22 April 2014 10:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Josh,

Thanks for the heads up and your suggestion. We will see what is the best approach to address this matter
Thanks again and have a nice day
Sam
·
Tuesday, 22 April 2014 16:38
·
0 Likes
·
0 Votes
·
0 Comments
·
I have sensitive data that I deleted, I deleted those fields, but do not want who are not in the tables, a hacker could get

Yo tengo datos sensibles que he borrado, he eliminado esos campos, pero no quiero que esten en las tablas tampoco, un hacker podria conseguirlos
·
Thursday, 24 April 2014 15:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Jasonargo,

Try the below sql form your phpmyadmin to remove the fields data from your database which does not associated with any fields.


delete from `jos_social_fields_data`
where `type` = 'user'
and `field_id` not in ( select `id` from `jos_social_fields` );


Replace jos_ with your own Joomla table prefix. Also, please do a backup of your database first before execute the above sql statement.

Hope this help and have a nice day
Sam
·
Thursday, 24 April 2014 17:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Error: #1046 - No database selected
·
Saturday, 10 May 2014 03:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Jason,

You need to first select your database first on the left (If you are using phpmyadmin)
·
Saturday, 10 May 2014 15:38
·
0 Likes
·
0 Votes
·
0 Comments
·
There are three databases, which is?
·
Monday, 12 May 2014 18:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Jason,

I really have no idea which database are you using for your site You should know it better than me haha
·
Tuesday, 13 May 2014 02:17
·
0 Likes
·
0 Votes
·
0 Comments
·
To figure out which database you are using check your configuration.php file in the root section of Joomla. It can be found at yoursite/configuration.php but can only be seen via a ftp. Once you open it, look for "public $db" (without the quotes). You will see the equal sign next to the name of your database.
·
Tuesday, 13 May 2014 11:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for sharing Josh
·
Tuesday, 13 May 2014 15:51
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post