Commit 8a7a353f authored by Mac Newbold's avatar Mac Newbold

Fix the comments table so that rerunning db-fill doesn't bloat things. (If

a null field is part of a primary key, there are no collisions. So
table_name "foo" and column_name NULL can have multiple rows, which is

Also updated some state timeouts.
parent e988689a
......@@ -25,8 +25,8 @@ CREATE TABLE cdroms (
CREATE TABLE comments (
table_name varchar(64) NOT NULL default '',
column_name varchar(64) default NULL,
description text,
column_name varchar(64) NOT NULL default '',
description text NOT NULL,
UNIQUE KEY table_name (table_name,column_name)
This diff is collapsed.
......@@ -686,3 +686,10 @@ last_net_act,last_cpu_act,last_ext_act);
while (($idx,$creator) = $query_result->fetchrow_array()) {
print "update testbed_stats set uid='$creator' where idx=$idx;\n";
1.157 Take nulls out of comments table, so primary key works right.
alter ignore table comments modify description text not null;
alter ignore table comments modify
column_name varchar(64) not null default "";
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment