Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

alter id column in formkey to be varchar(30)

  • Loading branch information...
commit 8e7f0da08ca18e5223109ea91790d76057aff737 1 parent bf68b92
Patrick Galbraith authored June 07, 2000
2  sql/slashschema_create.sql
@@ -70,7 +70,7 @@ CREATE TABLE formkeys (
70 70
   formname varchar(20) DEFAULT '' NOT NULL,
71 71
   id varchar(30) DEFAULT '' NOT NULL,
72 72
   sid varchar(30) DEFAULT '' NOT NULL,
73  
-  uid int(1) DEFAULT '-1' NOT NULL,
  73
+  uid int(11) DEFAULT '-1' NOT NULL,
74 74
   host_name varchar(30) DEFAULT '0.0.0.0' NOT NULL,
75 75
   value int(1) DEFAULT '0' NOT NULL,
76 76
   cid int(15) DEFAULT '0' NOT NULL,
12  sql/updates/1.0.5/db_update.sql
... ...
@@ -1,6 +1,8 @@
1  
-alter table abusers add column reason varchar(60) not null default '';
2  
-alter table abusers add key reason(reason);
3  
-alter table abusers add column querystring varchar(120) not null default '';
4  
-alter table formkeys drop column comment_length;
5  
-alter table formkeys add column content_length int(4) NOT NULL DEFAULT 0;
  1
+ALTER TABLE formkeys MODIFY column id varchar(30) NOT NULL DEFAULT '';
  2
+ALTER TABLE formkeys MODIFY column uid int(11) NOT NULL DEFAULT -1;
  3
+ALTER TABLE abusers ADD column reason varchar(60) not null default '';
  4
+ALTER TABLE abusers ADD key reason(reason);
  5
+ALTER TABLE abusers ADD column querystring varchar(120) not null default '';
  6
+ALTER TABLE formkeys DROP column comment_length;
  7
+ALTER TABLE formkeys ADD column content_length int(4) NOT NULL DEFAULT 0;
6 8
 

0 notes on commit 8e7f0da

Please sign in to comment.
Something went wrong with that request. Please try again.