Permalink
Browse files

Merge branch 'master' of git@github.com:openjsan/openjsan

  • Loading branch information...
2 parents be25e29 + 0e44935 commit 2d3b57f3ca5b249a907067f3f8faf66ac362d01e jcap committed May 6, 2009
Showing with 12 additions and 12 deletions.
  1. +12 −12 etc/openjsan.sql
View
@@ -1,5 +1,5 @@
CREATE TABLE authors (
- id int not null auto_increment primary key,
+ id SERIAL not null primary key,
login varchar(20) not null unique,
pass varchar(100) not null,
name varchar(100) not null,
@@ -11,7 +11,7 @@ CREATE TABLE authors (
);
CREATE TABLE distributions (
- id int not null auto_increment primary key,
+ id SERIAL not null primary key,
filename varchar(100) not null unique,
name varchar(100),
description text,
@@ -23,52 +23,52 @@ CREATE TABLE distributions (
);
CREATE TABLE distribution_tags (
- id int not null auto_increment primary key,
+ id SERIAL not null primary key,
distribution int not null references distributions,
tag int not null references tags
);
CREATE TABLE tags (
- id int not null auto_increment primary key,
+ id SERIAL not null primary key,
name varchar(50) not null unique
);
CREATE TABLE namespaces (
- id int not null auto_increment primary key,
+ id SERIAL not null primary key,
version varchar(20),
name varchar(100),
filename varchar(100),
distribution int not null references distributions
);
CREATE TABLE trusted_clients (
- id int not null auto_increment primary key,
+ id SERIAL not null primary key,
ip varchar(15) not null unique
);
CREATE TABLE seeds (
- id int not null auto_increment primary key,
+ id SERIAL not null primary key,
seed varchar(35) not null unique,
- author int
+ author int not null references authors
);
create table user_agent (
- id integer not null primary key auto_increment,
+ id SERIAL not null primary key,
name varchar(250) not null unique
);
create table running_test (
- id bigint not null primary key auto_increment,
+ id SERIAL not null primary key,
user_agent integer not null references user_agent (id),
distributions integer not null references distributions (id),
started_on timestamp not null
);
create table smoke_test (
- id bigint not null primary key auto_increment,
+ id SERIAL not null primary key,
user_agent integer not null references user_agent (id),
distributions integer not null references distributions (id),
- success tinyint not null,
+ success char not null,
ended_on timestamp not null,
started_on timestamp not null,
failure_text text

0 comments on commit 2d3b57f

Please sign in to comment.