Fix revert for contact_web
If there were contacts added with add_contact passing an empty string to `web` parameter, contact_web would not have such row, and during the revert the `web` parameter of contact would end up being NULL.
This commit is contained in:
parent
843379a908
commit
2bd7b2e952
|
@ -14,6 +14,11 @@ from contact_web as web
|
||||||
where web.contact_id = contact.contact_id
|
where web.contact_id = contact.contact_id
|
||||||
;
|
;
|
||||||
|
|
||||||
|
update contact
|
||||||
|
set web = ''
|
||||||
|
where web is null
|
||||||
|
;
|
||||||
|
|
||||||
alter table contact
|
alter table contact
|
||||||
alter column web set not null
|
alter column web set not null
|
||||||
;
|
;
|
||||||
|
|
Loading…
Reference in New Issue