9d62b407e7
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1774 6335cc39-0255-0410-8fd6-9bcaacd3b74c
26 lines
643 B
SQL
26 lines
643 B
SQL
/**
|
|
* $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
|
|
);
|