Skip to content

Commit

Permalink
Add a couple pks explicitely to catalogdb
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed May 4, 2020
1 parent c186a1b commit 9116ea8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/sdssdb/peewee/sdss5db/catalogdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ class Meta:

class Legacy_Survey_DR8(CatalogdbModel):

ls_id = BigIntegerField(primary_key=True)
ref_cat = TextField()
ref_id = BigIntegerField()

Expand Down Expand Up @@ -429,7 +430,7 @@ class BHM_Spiders_Generic_Superset(CatalogdbModel):
opt_modelflux_z = FloatField(null=True)
opt_modelflux_ivar_z = FloatField(null=True)

ls = ForeignKeyField(Legacy_Survey_DR8, backref='+')
ls = ForeignKeyField(Legacy_Survey_DR8, field='ls_id', backref='+')
gaia = ForeignKeyField(Gaia_DR2, object_id_name='gaia_dr2_source_id', backref='+')

class Meta:
Expand Down Expand Up @@ -639,6 +640,8 @@ class Meta:

class SkyMapper_DR1_1(CatalogdbModel):

object_id = BigIntegerField(primary_key=True)

allwise = ForeignKeyField(AllWise, field='cntr',
column_name='allwise_cntr',
object_id_name='allwise_cntr',
Expand Down

0 comments on commit 9116ea8

Please sign in to comment.