fixed issue topic/web2py/LGxJR85pG88, thanks Oliver
This commit is contained in:
2
VERSION
2
VERSION
@@ -1 +1 @@
|
||||
Version 2.6.0-development+timestamp.2013.07.14.16.51.54
|
||||
Version 2.6.0-development+timestamp.2013.07.15.09.21.09
|
||||
|
||||
@@ -8307,8 +8307,9 @@ class Table(object):
|
||||
field_type = self if same_db else 'bigint'
|
||||
clones = []
|
||||
for field in self:
|
||||
nfk = same_db or field.type.startswith('reference')
|
||||
clones.append(field.clone(
|
||||
unique=False, type=field.type if same_db else 'bigint'))
|
||||
unique=False, type=field.type if nfk else 'bigint'))
|
||||
archive_db.define_table(
|
||||
archive_name, Field(current_record,field_type), *clones)
|
||||
self._before_update.append(
|
||||
|
||||
Reference in New Issue
Block a user