summaryrefslogtreecommitdiff
path: root/db.py
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-01-27 16:01:00 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2010-01-27 16:01:00 +0100
commit7ae6693f33ee4c7f92729dd0e076491421427063 (patch)
treee99958eb9ff0cc903ecf35ba7282799ae82cd3cb /db.py
parent736f28928e0003b27707ec6e1ecbe61534751525 (diff)
Default fields to None, and don't allow paste text to be None.
This requires a recreation of the database.
Diffstat (limited to 'db.py')
-rw-r--r--db.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/db.py b/db.py
index b5c5a3f..9885b4e 100644
--- a/db.py
+++ b/db.py
@@ -16,7 +16,7 @@ class Paste(Base):
date = Column(DateTime, nullable = False)
syntax = Column(String)
title = Column(String)
- text = Column(Text)
+ text = Column(Text, nullable = False)
def __init__(self, hash, nick, date, syntax, title, text):
self.nick = nick