__pkginfo__.py
author Laurent Peuch <cortex@worlddomination.be>
Thu, 16 May 2019 04:42:59 +0200
changeset 12614 8ac9ac8d9143
parent 11382 dab704a0e4b1
permissions lrwxrwxrwx
[mod] make ViolatedConstraint actually display useful information Move from: (Pdb++) raise some_exception *** ViolatedConstraint: To: (Pdb++) raise some_exception *** ViolatedConstraint: constraint 'cstr56c2ab4b3154f21d08b067742ce5bd9d' is being violated by the query 'ALTER TABLE cw_Bibliography ADD CONSTRAINT cstr56c2ab4b3154f21d08b067742ce5bd9d CHECK(cw_item_type IN ('journalArticle', 'note', 'book', 'thesis', 'film', 'web page', 'manuscrit', 'tapuscrit'))'. You can run the inverted constraint on the database to list the problematic rows. And save hours of debugging to actually understand what is going on.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11382
dab704a0e4b1 Symlink __pkginfo__.py at root
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
diff changeset
     1
cubicweb/__pkginfo__.py