From 2cf7a292410f0e4c355ddabfca96189e06812467 Mon Sep 17 00:00:00 2001 From: Zachary Way Date: Thu, 24 Oct 2024 14:42:47 -0400 Subject: [PATCH] rank in SdssIdFlatAddendum is nullable --- python/target_selection/sdss_id/append_to_sdss_id.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/target_selection/sdss_id/append_to_sdss_id.py b/python/target_selection/sdss_id/append_to_sdss_id.py index 179fed20..ab8e115d 100644 --- a/python/target_selection/sdss_id/append_to_sdss_id.py +++ b/python/target_selection/sdss_id/append_to_sdss_id.py @@ -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: @@ -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