summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Albertson <ramereth@gentoo.org>2005-10-03 13:36:22 +0000
committerLance Albertson <ramereth@gentoo.org>2005-10-03 13:36:22 +0000
commit5beee344a92acf99bbc27a9870b4bf609f7388b1 (patch)
treef01709881afc9103d604d046b977e5383049602d /www-apps/viewcvs
parentMark 3.4.1 stable on alpha (diff)
downloadgentoo-2-5beee344a92acf99bbc27a9870b4bf609f7388b1.tar.gz
gentoo-2-5beee344a92acf99bbc27a9870b4bf609f7388b1.tar.bz2
gentoo-2-5beee344a92acf99bbc27a9870b4bf609f7388b1.zip
Added two mysql scripts I forgot, resolves #107969
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'www-apps/viewcvs')
-rw-r--r--www-apps/viewcvs/ChangeLog6
-rw-r--r--www-apps/viewcvs/files/viewcvs-mysql-4.0.sql84
-rw-r--r--www-apps/viewcvs/files/viewcvs-mysql-4.1.sql83
3 files changed, 172 insertions, 1 deletions
diff --git a/www-apps/viewcvs/ChangeLog b/www-apps/viewcvs/ChangeLog
index e30b268f2b1c..4e96d6649a3d 100644
--- a/www-apps/viewcvs/ChangeLog
+++ b/www-apps/viewcvs/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for www-apps/viewcvs
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/viewcvs/ChangeLog,v 1.20 2005/10/03 05:06:28 ramereth Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apps/viewcvs/ChangeLog,v 1.21 2005/10/03 13:36:22 ramereth Exp $
+
+ 03 Oct 2005; Lance Albertson <ramereth@gentoo.org>
+ +files/viewcvs-mysql-4.0.sql, +files/viewcvs-mysql-4.1.sql:
+ * Added two mysql scripts I forgot, resolves #107969
*viewcvs-1.0_pre20050929 (03 Oct 2005)
diff --git a/www-apps/viewcvs/files/viewcvs-mysql-4.0.sql b/www-apps/viewcvs/files/viewcvs-mysql-4.0.sql
new file mode 100644
index 000000000000..98701648626e
--- /dev/null
+++ b/www-apps/viewcvs/files/viewcvs-mysql-4.0.sql
@@ -0,0 +1,84 @@
+DROP TABLE IF EXISTS branches;
+CREATE TABLE branches (
+ id mediumint(9) DEFAULT '0' NOT NULL auto_increment,
+ branch varchar(64) binary DEFAULT '' NOT NULL,
+ PRIMARY KEY (id),
+ UNIQUE branch (branch)
+);
+
+DROP TABLE IF EXISTS checkins;
+CREATE TABLE checkins (
+ type enum('Change','Add','Remove'),
+ ci_when datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
+ whoid mediumint(9) DEFAULT '0' NOT NULL,
+ repositoryid mediumint(9) DEFAULT '0' NOT NULL,
+ dirid mediumint(9) DEFAULT '0' NOT NULL,
+ fileid mediumint(9) DEFAULT '0' NOT NULL,
+ revision varchar(32) binary DEFAULT '' NOT NULL,
+ stickytag varchar(255) binary DEFAULT '' NOT NULL,
+ branchid mediumint(9) DEFAULT '0' NOT NULL,
+ addedlines int(11) DEFAULT '0' NOT NULL,
+ removedlines int(11) DEFAULT '0' NOT NULL,
+ descid mediumint(9),
+ UNIQUE repositoryid (repositoryid,dirid,fileid,revision),
+ KEY ci_when (ci_when),
+ KEY whoid (whoid),
+ KEY repositoryid_2 (repositoryid),
+ KEY dirid (dirid),
+ KEY fileid (fileid),
+ KEY branchid (branchid)
+);
+
+DROP TABLE IF EXISTS descs;
+CREATE TABLE descs (
+ id mediumint(9) DEFAULT '0' NOT NULL auto_increment,
+ description text,
+ hash bigint(20) DEFAULT '0' NOT NULL,
+ PRIMARY KEY (id),
+ KEY hash (hash)
+);
+DROP TABLE IF EXISTS dirs;
+CREATE TABLE dirs (
+ id mediumint(9) DEFAULT '0' NOT NULL auto_increment,
+ dir varchar(255) binary DEFAULT '' NOT NULL,
+ PRIMARY KEY (id),
+ UNIQUE dir (dir)
+);
+
+DROP TABLE IF EXISTS files;
+CREATE TABLE files (
+ id mediumint(9) DEFAULT '0' NOT NULL auto_increment,
+ file varchar(255) binary DEFAULT '' NOT NULL,
+ PRIMARY KEY (id),
+ UNIQUE file (file)
+);
+
+DROP TABLE IF EXISTS people;
+CREATE TABLE people (
+ id mediumint(9) DEFAULT '0' NOT NULL auto_increment,
+ who varchar(32) binary DEFAULT '' NOT NULL,
+ PRIMARY KEY (id),
+ UNIQUE who (who)
+);
+
+DROP TABLE IF EXISTS repositories;
+CREATE TABLE repositories (
+ id mediumint(9) DEFAULT '0' NOT NULL auto_increment,
+ repository varchar(64) binary DEFAULT '' NOT NULL,
+ PRIMARY KEY (id),
+ UNIQUE repository (repository)
+);
+
+DROP TABLE IF EXISTS tags;
+CREATE TABLE tags (
+ repositoryid mediumint(9) DEFAULT '0' NOT NULL,
+ branchid mediumint(9) DEFAULT '0' NOT NULL,
+ dirid mediumint(9) DEFAULT '0' NOT NULL,
+ fileid mediumint(9) DEFAULT '0' NOT NULL,
+ revision varchar(32) binary DEFAULT '' NOT NULL,
+ UNIQUE repositoryid (repositoryid,dirid,fileid,branchid,revision),
+ KEY repositoryid_2 (repositoryid),
+ KEY dirid (dirid),
+ KEY fileid (fileid),
+ KEY branchid (branchid)
+);
diff --git a/www-apps/viewcvs/files/viewcvs-mysql-4.1.sql b/www-apps/viewcvs/files/viewcvs-mysql-4.1.sql
new file mode 100644
index 000000000000..f1529ecc400b
--- /dev/null
+++ b/www-apps/viewcvs/files/viewcvs-mysql-4.1.sql
@@ -0,0 +1,83 @@
+DROP TABLE IF EXISTS branches;
+CREATE TABLE branches (
+ id mediumint(9) NOT NULL auto_increment,
+ branch varchar(64) binary DEFAULT '' NOT NULL,
+ PRIMARY KEY (id),
+ UNIQUE branch (branch)
+);
+
+DROP TABLE IF EXISTS checkins;
+CREATE TABLE checkins (
+ type enum('Change','Add','Remove'),
+ ci_when datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
+ whoid mediumint(9) DEFAULT '0' NOT NULL,
+ repositoryid mediumint(9) DEFAULT '0' NOT NULL,
+ dirid mediumint(9) DEFAULT '0' NOT NULL,
+ fileid mediumint(9) DEFAULT '0' NOT NULL,
+ revision varchar(32) binary DEFAULT '' NOT NULL,
+ stickytag varchar(255) binary DEFAULT '' NOT NULL,
+ branchid mediumint(9) DEFAULT '0' NOT NULL,
+ addedlines int(11) DEFAULT '0' NOT NULL,
+ removedlines int(11) DEFAULT '0' NOT NULL,
+ descid mediumint(9),
+ UNIQUE repositoryid (repositoryid,dirid,fileid,revision),
+ KEY ci_when (ci_when),
+ KEY whoid (whoid),
+ KEY repositoryid_2 (repositoryid),
+ KEY dirid (dirid),
+ KEY fileid (fileid),
+ KEY branchid (branchid)
+);
+
+DROP TABLE IF EXISTS descs;
+CREATE TABLE descs (
+ id mediumint(9) NOT NULL auto_increment,
+ description text,
+ hash bigint(20) DEFAULT '0' NOT NULL,
+ PRIMARY KEY (id),
+ KEY hash (hash)
+);
+
+DROP TABLE IF EXISTS dirs;
+CREATE TABLE dirs (
+ id mediumint(9) NOT NULL auto_increment,
+ dir varchar(255) binary DEFAULT '' NOT NULL,
+ PRIMARY KEY (id),
+ UNIQUE dir (dir)
+);
+DROP TABLE IF EXISTS files;
+CREATE TABLE files (
+ id mediumint(9) NOT NULL auto_increment,
+ file varchar(255) binary DEFAULT '' NOT NULL,
+ PRIMARY KEY (id),
+ UNIQUE file (file)
+);
+
+DROP TABLE IF EXISTS people;
+CREATE TABLE people (
+ id mediumint(9) NOT NULL auto_increment,
+ who varchar(32) binary DEFAULT '' NOT NULL,
+ PRIMARY KEY (id),
+ UNIQUE who (who)
+);
+
+DROP TABLE IF EXISTS repositories;
+CREATE TABLE repositories (
+ id mediumint(9) NOT NULL auto_increment,
+ repository varchar(64) binary DEFAULT '' NOT NULL,
+ PRIMARY KEY (id),
+ UNIQUE repository (repository)
+);
+DROP TABLE IF EXISTS tags;
+CREATE TABLE tags (
+ repositoryid mediumint(9) DEFAULT '0' NOT NULL,
+ branchid mediumint(9) DEFAULT '0' NOT NULL,
+ dirid mediumint(9) DEFAULT '0' NOT NULL,
+ fileid mediumint(9) DEFAULT '0' NOT NULL,
+ revision varchar(32) binary DEFAULT '' NOT NULL,
+ UNIQUE repositoryid (repositoryid,dirid,fileid,branchid,revision),
+ KEY repositoryid_2 (repositoryid),
+ KEY dirid (dirid),
+ KEY fileid (fileid),
+ KEY branchid (branchid)
+);