summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/db.py b/db.py
index 248d56a..00ce023 100644
--- a/db.py
+++ b/db.py
@@ -82,7 +82,7 @@ class Album(Base):
id = Column(Integer, primary_key = True)
name = Column(String, nullable = False, index = True)
- artist_id = Column(Integer, ForeignKey('artists.id'), nullable = False)
+ artist_id = Column(Integer, ForeignKey('artists.id'))
artist = relationship(Artist, backref = backref('albums', order_by = name))