-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from sdss/skymapper_dr2_peewee
Skymapper dr2 peewee
- Loading branch information
Showing
2 changed files
with
57 additions
and
0 deletions.
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
15 changes: 15 additions & 0 deletions
15
schema/sdss5db/catalogdb/skymapper/dr2/skymapper_dr2_alter_table_fkey.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,15 @@ | ||
\o skymapper_dr2_alter_table_fkey.out | ||
|
||
ALTER TABLE catalogdb.skymapper_dr2 | ||
ADD FOREIGN KEY (allwise_cntr) | ||
REFERENCES catalogdb.allwise(cntr); | ||
|
||
ALTER TABLE catalogdb.skymapper_dr2 | ||
ADD FOREIGN KEY (gaia_dr2_id2) | ||
REFERENCES catalogdb.gaia_dr2_source(source_id); | ||
|
||
ALTER TABLE catalogdb.skymapper_dr2 | ||
ADD FOREIGN KEY (gaia_dr2_id1) | ||
REFERENCES catalogdb.gaia_dr2_source(source_id); | ||
|
||
\o |