PDA

View Full Version : How can i drop all signatures?


ryans
07-18-2003, 07:00 PM
I'm running 2.30 and curious how I can drop all signatures and avatars. moving to subscription based and want these to start all over.

thanks!

ryans
07-18-2003, 07:01 PM
I prefer to do command line. I know how to log into mysql etc.

thanks!

SmEdD
07-18-2003, 09:10 PM
UPDATE $table SET '' WHERE $column;

$table = Table sigs are in
$column = Sig column name

Xenon
07-18-2003, 09:45 PM
UPDATE user SET avatarid=0,customavatar=0,signature=''

SmEdD
07-18-2003, 09:58 PM
Definatly use his ^^^^^^^^

He is a god at this stuff.

ryans
07-18-2003, 10:52 PM
Thanks, i'll give that a try. I just had to restore my database and it took a few hours. 900MB worth :)

ryans
07-18-2003, 10:53 PM
I get an error message:

ERROR 1054: Unknown column 'customavatar' in 'field list'

Link14716
07-18-2003, 11:24 PM
It's because it should only be:
UPDATE user SET signature='', avatar='0'

Xenon
07-19-2003, 10:14 AM
oops, yes but it's not just one query:

UPDATE user SET avatarid=0, signature=''
DELETE FROM customavatar