Still need to declare primary key in column lists
This commit is contained in:
parent
fdad2c6a31
commit
e1ef416240
2 changed files with 2 additions and 1 deletions
|
@ -57,6 +57,7 @@ class Message(DatabaseTable):
|
|||
name = 'newsgroup_message'
|
||||
key = 'id'
|
||||
columns = (
|
||||
'id',
|
||||
'newsgroup_id',
|
||||
'created_on',
|
||||
'message_id',
|
||||
|
|
|
@ -3,4 +3,4 @@ from nntp.tiny.db import DatabaseTable
|
|||
class Newsgroup(DatabaseTable):
|
||||
name = 'newsgroup'
|
||||
key = 'id'
|
||||
columns = 'created_on', 'name', 'description',
|
||||
columns = 'id', 'created_on', 'name', 'description',
|
||||
|
|
Loading…
Add table
Reference in a new issue