fix bad sql upgrade

This commit is contained in:
Garvin Hicking 2009-12-23 13:57:59 +00:00
parent 4e9fcf7696
commit 8735d3cb46

View File

@ -1,5 +1,3 @@
ALTER TABLE {PREFIX}authors ADD COLUMN hashtype int(1);
create table {PREFIX}tempauthors (
realname varchar(255) NOT NULL default '',
username varchar(32) default null,
@ -15,7 +13,7 @@ create table {PREFIX}tempauthors (
INSERT INTO {PREFIX}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 FROM {PREFIX}authors;
realname,username,password,authorid,mail_comments,mail_trackbacks,email,userlevel,right_publish,1 FROM {PREFIX}authors;
DROP TABLE {PREFIX}authors;
create table {PREFIX}authors (