Skip to content

Commit

Permalink
rank in SdssIdFlatAddendum is nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Way committed Oct 24, 2024
1 parent 1c7f8b6 commit 2cf7a29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/target_selection/sdss_id/append_to_sdss_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class SdssIdFlat(peewee.Model):
n_associated = peewee.SmallIntegerField()
ra_catalogid = peewee.DoubleField()
dec_catalogid = peewee.DoubleField()
rank = peewee.SmallIntegerField()
rank = peewee.SmallIntegerField(null=False)
pk = peewee.BigAutoField(primary_key=True)

class Meta:
Expand Down Expand Up @@ -119,7 +119,7 @@ class SdssIdFlatAddendum(peewee.Model):
n_associated = peewee.SmallIntegerField(null=True)
ra_catalogid = peewee.DoubleField(null=True)
dec_catalogid = peewee.DoubleField(null=True)
rank = peewee.SmallIntegerField()
rank = peewee.SmallIntegerField(null=True)

class Meta:
database = database
Expand Down

0 comments on commit 2cf7a29

Please sign in to comment.