Table Reflection and missing triggers #503
-
I am attempting to use table reflection for a read only application that I am developing. I keep getting errors pertaining to |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I haven't personally come across it yet, but the error is being raised here: The code is probably trying to work out the I think that bit of code needs changing, so it handles the exception gracefully, and instead outputs a warning. Until a fix is released, you can patch your local version by changing that line of code, so it returns |
Beta Was this translation helpful? Give feedback.
I haven't personally come across it yet, but the error is being raised here:
piccolo/piccolo/apps/schema/commands/generate.py
Line 173 in 570b395
The code is probably trying to work out the
ON UPDATE
andON DELETE
for a foreign key, and it's failing for some reason.I think that bit of code needs changing, so it handles the exception gracefully, and instead outputs a warning.
Until a fix is released, you can patch your local version by changing that line of code, so it returns
None
instead of raising an exception.