Skip to content

Commit

Permalink
added BB tables
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.code.sf.net/p/rts-2/code/trunk/rts-2@10838 65ab8f4e-f147-0410-b3a9-f14133ecfe55
  • Loading branch information
pkubanek committed Sep 10, 2012
1 parent eaf8d10 commit 4914945
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,7 @@ AC_OUTPUT([Makefile
src/sql/update/Makefile
src/sql/telma/Makefile
src/sql/phot/Makefile
src/sql/bb/Makefile
src/pgsql/Makefile
src/phot/Makefile
src/centrald/Makefile
Expand Down
2 changes: 1 addition & 1 deletion src/sql/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sqldatadir = ${datadir}/doc/@PACKAGE@/sql

SUBDIRS = auger data create drop update telma phot
SUBDIRS = auger data create drop update telma phot bb

dist_sqldata_DATA = grant.sql \
README
Expand Down
3 changes: 3 additions & 0 deletions src/sql/bb/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sqldatadir = ${datadir}/doc/@PACKAGE@/sql/bb

dist_sqldata_DATA = create.sql
26 changes: 26 additions & 0 deletions src/sql/bb/create.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
CREATE TABLE observatories (
observatory_id integer PRIMARY KEY,
longitude float8, -- geographical informations
latitude float8,
altitude float8,
apiurl VARCHAR(100)
);

CREATE TABLE targets_observatories (
observatory_id integer REFERENCES observatories(observatory_id),
tar_id integer REFERENCES targets (tar_id),
obs_tar_id integer NOT NULL
);

CREATE TABLE observatory_observations (
observatory_id integer REFERENCES observatories (observatory_id),
obs_id integer NOT NULL,
tar_id integer REFERENCES targets (tar_id),
obs_ra float8,
obs_dec float8,
obs_slew timestamp,
obs_start timestamp,
obs_end timestamp,
good_images integer,
bad_images integer
);

0 comments on commit 4914945

Please sign in to comment.