Commit 86d814b
committed
[FIX] util.fields: error when table of model base_import.mapping doesn't exist
In 1d9e20e, a new feature was implemented to consider the model
`base_import.mapping` when removing fields. However, it was not
considering if the table doesn't exist, which could occur when migrating
from a version <= 11.0. That causes the following error in such cases:
relation "base_import_mapping" does not exist
This commit fixes the above issue by ensuring the table actually exists
before accessing it.
closes #107
Signed-off-by: Christophe Simonis (chs) <[email protected]>1 parent a05df66 commit 86d814b
1 file changed
+14
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
508 | 511 | | |
509 | | - | |
| 512 | + | |
510 | 513 | | |
511 | 514 | | |
512 | 515 | | |
| |||
0 commit comments