head	1.1;
access;
symbols;
locks; strict;
comment	@# @;


1.1
date	2001.08.28.21.46.30;	author kmaples;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Issue number: 4053
Removed 'platform' and 'operating system' from database enums(); both are
now abstracted into their own tables, though no interface is currently being
provided for making edits to these fields.
@
text
@# Mapping tables for operating system, platform fields:
# $Id: $

CREATE TABLE opsys (
    id           mediumint(9) DEFAULT '0' NOT NULL auto_increment,
    name         varchar(40)              NOT NULL, 
    closed       tinyint(4)   DEFAULT '0' NOT NULL,
    sortkey      mediumint(9) DEFAULT '0' NOT NULL,

    PRIMARY KEY (id),
    UNIQUE name (name)
);

CREATE TABLE platform (
    id           mediumint(9) DEFAULT '0' NOT NULL auto_increment,
    name         varchar(40)              NOT NULL, 
    closed       tinyint(4)   DEFAULT '0' NOT NULL,
    sortkey      mediumint(9) DEFAULT '0' NOT NULL,

    PRIMARY KEY (id),
    UNIQUE name (name)
);
                 
CREATE TABLE opsys_x_platform (
    opsys_id     mediumint(9)             NOT NULL,
    platform_id  mediumint(9)             NOT NULL,
     
    PRIMARY KEY (opsys_id, platform_id)
);

@
