This commit is contained in:
Kovid Goyal 2011-07-03 10:24:16 -06:00
parent 6481066d73
commit e501c52622
2 changed files with 4 additions and 2 deletions

View File

@ -519,6 +519,8 @@ class DB(SchemaUpgrade):
'timestamp', 'pubdate', 'uuid', 'path', 'cover',
'last_modified'):
metadata = self.field_metadata[col].copy()
if col == 'comments':
metadata['table'], metadata['column'] = 'comments', 'text'
if not metadata['table']:
metadata['table'], metadata['column'] = 'books', ('has_cover'
if col == 'cover' else col)

View File

@ -220,8 +220,8 @@ class FieldMetadata(dict):
'is_custom':False,
'is_category':False,
'is_csp': False}),
('comments', {'table':'comments',
'column':'text',
('comments', {'table':None,
'column':None,
'datatype':'text',
'is_multiple':{},
'kind':'field',