diff --git a/VERSION b/VERSION index 77c9380a..db26717e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.00.0 (2012-08-01 12:01:12) dev +Version 2.00.0 (2012-08-01 17:04:35) dev diff --git a/gluon/dal.py b/gluon/dal.py index a20579f0..892ecaee 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -7290,8 +7290,10 @@ class Table(dict): current_record = 'current_record', is_active = 'is_active'): archive_db = archive_db or self._db - fieldnames = self.fields() archive_name = archive_name % dict(tablename=self._tablename) + if archive_name in archive_db.tables(): + return # do not try define the archive if already exists + fieldnames = self.fields() field_type = self if archive_db is self._db else 'bigint' archive_table = archive_db.define_table( archive_name,