unless you drop the column and recreate it, web2py will not enforce a 
redefinition on ondelete actions cause they can end up in exceptions.

On Monday, May 20, 2013 10:14:10 PM UTC+2, Denis Rykov wrote:
>
> I have field defenition:
>
>     Field('company', 'reference company', notnull=True, label='Company')
>
> and I want to add ondelete restriction:
>
>     Field('company', 'reference company', notnull=True, label='Company', 
> ondelete='NO ACTION')
>
> But web2py did not alter database.  Is it expected behavior?
>
> P.S. I'm using PostgreSQL
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to