Skip to content

Commit

Permalink
๐Ÿš‘๏ธ Hash can be null (#246)
Browse files Browse the repository at this point in the history
๐Ÿš‘๏ธ Fix null column
  • Loading branch information
falexwolf authored Jul 26, 2023
1 parent c1e9059 commit 102a138
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,6 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name="featureset",
name="hash",
field=models.CharField(db_index=True, default=None, max_length=20),
field=models.CharField(db_index=True, default=None, max_length=20, null=True),
),
]
2 changes: 1 addition & 1 deletion lnschema_core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1150,7 +1150,7 @@ class FeatureSet(ORM):
"""The reference ORM for feature identifiers."""
ref_schema = models.CharField(max_length=64, db_index=True)
"""The schema where the reference ORM is defined."""
hash = models.CharField(max_length=20, default=None, db_index=True)
hash = models.CharField(max_length=20, default=None, db_index=True, null=True)
"""The hash of the set."""
created_at = models.DateTimeField(auto_now_add=True, db_index=True)
"""Time of creation of record."""
Expand Down

0 comments on commit 102a138

Please sign in to comment.