From 1c6277a3d2a0a0b53cb064943a2f627300a381ab Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 16 Oct 2007 17:15:57 +0000 Subject: [PATCH] svn path=/trunk/boinc/; revision=13852 --- checkin_notes | 3 +++ db/bossa_constraints.sql | 6 ++++++ db/bossa_schema.sql | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 db/bossa_constraints.sql create mode 100644 db/bossa_schema.sql diff --git a/checkin_notes b/checkin_notes index 1e4fcb984d..f7f5b1a72f 100644 --- a/checkin_notes +++ b/checkin_notes @@ -9526,6 +9526,9 @@ David 16 Oct 2007 it should go in a different repository, but for now I'm putting it here. + db/ + bossa_constraints.sql + bossa_schema.sql html/ inc/ bossa_db.inc diff --git a/db/bossa_constraints.sql b/db/bossa_constraints.sql new file mode 100644 index 0000000000..1c05f25b31 --- /dev/null +++ b/db/bossa_constraints.sql @@ -0,0 +1,6 @@ +alter table bossa_app + add unique(name); + +alter table bossa_job + add unique(name) + add index bj_more_needed(more_needed); diff --git a/db/bossa_schema.sql b/db/bossa_schema.sql new file mode 100644 index 0000000000..da3dd8d99c --- /dev/null +++ b/db/bossa_schema.sql @@ -0,0 +1,37 @@ +create table bossa_app ( + id integer not null auto_increment, + create_time integer not null, + name varchar(255) not null, + user_friendly_name varchar(255) not null, + long_jobs tinyint not null, + start_url varchar(255) not null, + finish_url varchar(255) not null, + deprecated tinyint not null, + beta tinyint not null, + primary key(id) +); + +create table bossa_job ( + id integer not null auto_increment, + create_time integer not null, + name varchar(255) not null, + app_id integer not null, + info varchar(255) not null, + batch integer not null, + time_estimate integer not null, + time_limit integer not null, + more_needed tinyint not null, + npending smallint not null, + nsuccess smallint not null, + nsuccess_needed smallint not null, + primary key(id) +); + +create table bossa_job_inst ( + id integer not null auto_increment, + create_time integer not null, + job_id integer not null, + user_id integer not null, + finish_time integer not null, + primary key(id) +);