Skip to content

Commit

Permalink
alter id column in formkey to be varchar(30)
Browse files Browse the repository at this point in the history
  • Loading branch information
CaptTofu committed Jun 7, 2000
1 parent bf68b92 commit 8e7f0da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sql/slashschema_create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ CREATE TABLE formkeys (
formname varchar(20) DEFAULT '' NOT NULL,
id varchar(30) DEFAULT '' NOT NULL,
sid varchar(30) DEFAULT '' NOT NULL,
uid int(1) DEFAULT '-1' NOT NULL,
uid int(11) DEFAULT '-1' NOT NULL,
host_name varchar(30) DEFAULT '0.0.0.0' NOT NULL,
value int(1) DEFAULT '0' NOT NULL,
cid int(15) DEFAULT '0' NOT NULL,
Expand Down
12 changes: 7 additions & 5 deletions sql/updates/1.0.5/db_update.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
alter table abusers add column reason varchar(60) not null default '';
alter table abusers add key reason(reason);
alter table abusers add column querystring varchar(120) not null default '';
alter table formkeys drop column comment_length;
alter table formkeys add column content_length int(4) NOT NULL DEFAULT 0;
ALTER TABLE formkeys MODIFY column id varchar(30) NOT NULL DEFAULT '';
ALTER TABLE formkeys MODIFY column uid int(11) NOT NULL DEFAULT -1;
ALTER TABLE abusers ADD column reason varchar(60) not null default '';
ALTER TABLE abusers ADD key reason(reason);
ALTER TABLE abusers ADD column querystring varchar(120) not null default '';
ALTER TABLE formkeys DROP column comment_length;
ALTER TABLE formkeys ADD column content_length int(4) NOT NULL DEFAULT 0;

0 comments on commit 8e7f0da

Please sign in to comment.