I upgraded 1.5.2 as I thought it would add the hashtype column to the authors table, but it hasn't (my bad)
![Smile :)](./images/smilies/icon_smile.gif)
I executed the following SQL query via phpmyadmin:
Code: Select all
create table serendipity_tempauthors (
realname varchar(255) NOT NULL default '',
username varchar(32) default null,
password varchar(64) default null,
authorid {AUTOINCREMENT} {PRIMARY},
mail_comments int(1) default '1',
mail_trackbacks int(1) default '1',
email varchar(128) not null default '',
userlevel int(4) {UNSIGNED} not null default '0',
right_publish int(1) default '1',
hashtype int(1) default '0'
) {UTF_8};
INSERT INTO serendipity_tempauthors
(realname,username,password,authorid,mail_comments,mail_trackbacks,email,userlevel,right_publish,hashtype) SELECT
realname,username,password,authorid,mail_comments,mail_trackbacks,email,userlevel,right_publish,0 FROM serendipity_authors;
DROP TABLE serendipity_authors;
create table serendipity_authors (
realname varchar(255) NOT NULL default '',
username varchar(32) default null,
password varchar(64) default null,
authorid {AUTOINCREMENT} {PRIMARY},
mail_comments int(1) default '1',
mail_trackbacks int(1) default '1',
email varchar(128) not null default '',
userlevel int(4) {UNSIGNED} not null default '0',
right_publish int(1) default '1',
hashtype int(1) default '0'
) {UTF_8};
INSERT INTO serendipity_authors
(realname,username,password,authorid,mail_comments,mail_trackbacks,email,userlevel,right_publish,hashtype) SELECT
realname,username,password,authorid,mail_comments,mail_trackbacks,email,userlevel,right_publish,hashtype FROM serendipity_tempauthors;
DROP TABLE serendipity_tempauthors;
Any idea what I am doing wrong and what the best method is in resolving this.MySQL said:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '{AUTOINCREMENT} {PRIMARY},
mail_comments int(1) default '1',
mail_trackbac' at line 5
Thanks,
Kevin