Fix default value

This commit is contained in:
Tim Bentley 2011-08-26 14:13:32 +01:00
parent 1adac78588
commit 4f0c7716bc

View File

@ -198,7 +198,8 @@ def init_schema(url):
Column(u'search_title', types.Unicode(255), index=True, nullable=False), Column(u'search_title', types.Unicode(255), index=True, nullable=False),
Column(u'search_lyrics', types.UnicodeText, nullable=False), Column(u'search_lyrics', types.UnicodeText, nullable=False),
Column(u'create_date', types.DateTime(), default=func.now()), Column(u'create_date', types.DateTime(), default=func.now()),
Column(u'last_modified', types.DateTime(), onupdate=func.now()) Column(u'last_modified', types.DateTime(), default=func.now(),
onupdate=func.now())
) )
# Definition of the "topics" table # Definition of the "topics" table