Replace tabs with spaces. Align datatypes in columns

This commit is contained in:
Chris Morgan
2005-10-01 00:38:08 +00:00
committed by WineHQ
parent 77e623b59f
commit e1ca09c170

View File

@@ -21,9 +21,9 @@ drop table if exists sessionMessages;
* vendor information * vendor information
*/ */
create table vendor ( create table vendor (
vendorId int not null auto_increment, vendorId int not null auto_increment,
vendorName varchar(100) not null, vendorName varchar(100) not null,
vendorURL varchar(200), vendorURL varchar(200),
key(vendorId) key(vendorId)
); );
@@ -32,16 +32,16 @@ create table vendor (
* application * application
*/ */
create table appFamily ( create table appFamily (
appId int not null auto_increment, appId int not null auto_increment,
appName varchar(100) not null, appName varchar(100) not null,
vendorId int not null, vendorId int not null,
keywords text, keywords text,
description text, description text,
webPage varchar(100), webPage varchar(100),
catId int, catId int,
submitTime timestamp(14) NOT NULL, submitTime timestamp(14) NOT NULL,
submitterId int(11) NOT NULL default '0', submitterId int(11) NOT NULL default '0',
queued enum('true','false','rejected') NOT NULL default 'false', queued enum('true','false','rejected') NOT NULL default 'false',
key(appId) key(appId)
); );
@@ -50,29 +50,29 @@ create table appFamily (
* a version of an application * a version of an application
*/ */
create table appVersion ( create table appVersion (
versionId int not null auto_increment, versionId int not null auto_increment,
appId int not null, appId int not null,
versionName varchar(100) not null, versionName varchar(100) not null,
description text, description text,
maintainer_rating text, maintainer_rating text,
maintainer_release text, maintainer_release text,
submitTime timestamp(14) NOT NULL, submitTime timestamp(14) NOT NULL,
submitterId int(11) NOT NULL default '0', submitterId int(11) NOT NULL default '0',
queued enum('true','false','rejected') NOT NULL default 'false', queued enum('true','false','rejected') NOT NULL default 'false',
key(versionId) key(versionId)
); );
create table userExperience ( create table userExperience (
uExpId int not null auto_increment, uExpId int not null auto_increment,
versionId int not null, versionId int not null,
userComments text, userComments text,
testPlatform varchar(100), testPlatform varchar(100),
wineVintage varchar(100), wineVintage varchar(100),
entryDate timestamp not null, entryDate timestamp not null,
userId int not null, userId int not null,
wineCfgFile text, wineCfgFile text,
key(uExpId) key(uExpId)
); );
@@ -80,10 +80,10 @@ create table userExperience (
* application category * application category
*/ */
create table appCategory ( create table appCategory (
catId int not null auto_increment, catId int not null auto_increment,
catName varchar(64) not null, catName varchar(64) not null,
catDescription text, catDescription text,
catParent int default 0, catParent int default 0,
key(catId) key(catId)
); );
@@ -92,10 +92,10 @@ create table appCategory (
* bundleId is the appId of the 'owner app' * bundleId is the appId of the 'owner app'
*/ */
create table appBundle ( create table appBundle (
bundleId int not null, bundleId int not null,
appId int not null, appId int not null,
key(bundleId), key(bundleId),
index(appId) index(appId)
); );
@@ -103,21 +103,21 @@ create table appBundle (
* appHitStats and catHitStats are to record statistics * appHitStats and catHitStats are to record statistics
*/ */
create table appHitStats ( create table appHitStats (
appHitId int not null auto_increment, appHitId int not null auto_increment,
time timestamp, time timestamp,
ip varchar(16), ip varchar(16),
appId int not null, appId int not null,
count int, count int,
key(appHitId) key(appHitId)
); );
create table catHitStats ( create table catHitStats (
catHitId int not null auto_increment, catHitId int not null auto_increment,
time timestamp, time timestamp,
ip varchar(16), ip varchar(16),
catId int not null, catId int not null,
count int, count int,
key(catHitId) key(catHitId)
); );
@@ -125,16 +125,16 @@ create table catHitStats (
* user comments * user comments
*/ */
create table appComments ( create table appComments (
time datetime, time datetime,
commentId int not null auto_increment, commentId int not null auto_increment,
parentId int default 0, parentId int default 0,
versionId int not null, versionId int not null,
userId int, userId int,
hostname varchar(80), hostname varchar(80),
subject varchar(128), subject varchar(128),
body text, body text,
key(commentId), key(commentId),
index(versionId) index(versionId)
); );
@@ -143,15 +143,15 @@ create table appComments (
* links to screenshots and other stuff * links to screenshots and other stuff
*/ */
create table appData ( create table appData (
id int not null auto_increment, id int not null auto_increment,
appId int not null, appId int not null,
versionId int default 0, versionId int default 0,
type enum('image', 'url', 'bug'), type enum('image', 'url', 'bug'),
description text, description text,
url varchar(255) default NULL, url varchar(255) default NULL,
submitTime timestamp(14) NOT NULL, submitTime timestamp(14) NOT NULL,
submitterId int(11) NOT NULL default '0', submitterId int(11) NOT NULL default '0',
queued enum('true','false') NOT NULL default 'false', queued enum('true','false') NOT NULL default 'false',
KEY id (id), KEY id (id),
KEY versionId (versionId) KEY versionId (versionId)
); );