diff --git a/VERSION b/VERSION index 2c5b643e..9d472ba4 100644 --- a/VERSION +++ b/VERSION @@ -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 diff --git a/gluon/dal.py b/gluon/dal.py index d5107111..f72b1036 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -8307,7 +8307,7 @@ class Table(object): field_type = self if same_db else 'bigint' clones = [] 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( unique=False, type=field.type if nfk else 'bigint')) archive_db.define_table(