/** * $Id: create_site_tables.mysql,v 1.2 2003/11/13 16:57:47 mdb Exp $ * * Creates the necessary database tables in MySQL for the JDBC table site * identifier. */ /** * The sites table contains a row for every site, along with its human * readable name identifier. */ DROP TABLE IF EXISTS sites; CREATE TABLE sites ( siteId INTEGER(5) PRIMARY KEY NOT NULL AUTO_INCREMENT, siteString VARCHAR(24) NOT NULL ); /** * The domains table contains a row for every domain to site mapping. */ DROP TABLE IF EXISTS domains; CREATE TABLE domains ( domain VARCHAR(128) PRIMARY KEY NOT NULL, siteId INTEGER(5) NOT NULL );