Skip to content
Snippets Groups Projects
Commit 5b1beec1 authored by Christophe Simonis's avatar Christophe Simonis
Browse files

[FIX] models: commit *before* trying to set NOT NULL constraint

Setting NOT NULL constraints on required fields may fail if there are
any row with unset value for this column.
The ORM handle this case by catching the exception raised and warning
user.

However, not commiting the current transaction before, will rollback
changes made before like setting default values or renaming a column.
parent 8a1d7dfe
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment