News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

dupliate ID for key last_message on topic table?

Started by Red Squirrel, April 29, 2015, 10:48:08 PM

Previous topic - Next topic

Red Squirrel

Writing a script to combine several forums into one and getting a hard time.  What is last_message and why am I getting a duplicate error, when that column does not even exist?  This is my query and the error:

Query: INSERT INTO smf_topics(is_sticky,id_board,id_member_started,id_member_updated,id_poll,num_views,locked,approved)
    VALUES('0','11','1','1','0','9001','0','1');
Error:Duplicate entry '0-11' for key 'last_message'


What in the world is last_message?  I don't see that column anywhere when looking at the topics table in phpmyadmin.  And what is 0-11 about?  How and where is it getting that?  That's not even an integer.

margarett

Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Red Squirrel

Hmmm that may be an option, I can convert all 4 forums to 4 separate SMF then use that script... I'll have to play with that.

I did end up figuring out the duplicate ID stuff though, honestly no idea what I even did... lol.

Advertisement: