you cannot set the unique attribute after the table definition.

Moreover it would be a problem with archive unless you make the
archive table manually with fields that corrspond to the table to be
archived but with unique=False.

Massimo

On Aug 23, 10:14 pm, Jurgis Pralgauskis <jurgis.pralgaus...@gmail.com>
wrote:
> Hello,
> if I have "unique" field in mytable.
> How should crud.archive deal with it?
>
> I tried setting it after mytable and mytable_archive declaration, but
> then it doesn't apply it to mytable...
>
> db.mytable.name.unique=True
>
> ps.: inhttp://web2py.com/book/default/chapter/07#Record-Versioning
> and in docstrings
> there is said, thtat crud.archive creates "mytable_history",
> but it creates "mytable_archive" ..

Reply via email to