-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: http://svn.code.sf.net/p/rts-2/code/trunk/rts-2@10838 65ab8f4e-f147-0410-b3a9-f14133ecfe55
- Loading branch information
Showing
4 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
); |