From 51e559aba9c56af36f2683e63db812051870bcd1 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 9 Jan 2006 08:49:53 +0000 Subject: [PATCH] Change revision to UNSIGNED and PKEY --- index.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 95e507a..99d9b17 100644 --- a/index.php +++ b/index.php @@ -47,11 +47,12 @@ foreach ($viewsvn->repos->fetch_list() AS $repos) $db->query(" CREATE TABLE $hash ( - revision INT(20) NOT NULL DEFAULT 0, + revision INT(20) UNSIGNED NOT NULL DEFAULT 0, author VARCHAR(255) NOT NULL DEFAULT '', dateline VARCHAR(100) NOT NULL DEFAULT '', files MEDIUMTEXT NOT NULL DEFAULT '', - message MEDIUMTEXT NOT NULL DEFAULT '' + message MEDIUMTEXT NOT NULL DEFAULT '', + PRIMARY KEY (revision) )" ); } -- 2.43.5