fixed bug in recent commit, thanks Olivier Johner
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.6.0-development+timestamp.2013.07.15.09.33.15
|
Version 2.6.0-development+timestamp.2013.07.16.05.17.59
|
||||||
|
|||||||
+1
-1
@@ -8307,7 +8307,7 @@ class Table(object):
|
|||||||
field_type = self if same_db else 'bigint'
|
field_type = self if same_db else 'bigint'
|
||||||
clones = []
|
clones = []
|
||||||
for field in self:
|
for field in self:
|
||||||
nfk = same_db or field.type.startswith('reference')
|
nfk = same_db or not field.type.startswith('reference')
|
||||||
clones.append(field.clone(
|
clones.append(field.clone(
|
||||||
unique=False, type=field.type if nfk else 'bigint'))
|
unique=False, type=field.type if nfk else 'bigint'))
|
||||||
archive_db.define_table(
|
archive_db.define_table(
|
||||||
|
|||||||
Reference in New Issue
Block a user