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:
jordi fita mas 2024-01-20 19:47:26 +01:00
parent 843379a908
commit 2bd7b2e952
1 changed files with 5 additions and 0 deletions

View File

@ -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
; ;