Permalink
Browse files

alter id column in formkey to be varchar(30)

  • Loading branch information...
1 parent bf68b92 commit 8e7f0da08ca18e5223109ea91790d76057aff737 @CaptTofu CaptTofu committed Jun 7, 2000
Showing with 8 additions and 6 deletions.
  1. +1 −1 sql/slashschema_create.sql
  2. +7 −5 sql/updates/1.0.5/db_update.sql
View
2 sql/slashschema_create.sql
@@ -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,
View
12 sql/updates/1.0.5/db_update.sql
@@ -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.