Database error on upgrade to 16.4.1

When I try to upgrade 16.3.1 or 16.3.5 to 16.4.1 I encounter an error on database migration like this:

main:    -> 0.0065s
main: -- change_column_default("notes", :id_convert_to_bigint, 0)
main:    -> 0.0073s
main: -- execute("ALTER TABLE notes DROP CONSTRAINT notes_pkey")
rake aborted!
StandardError: An error has occurred, all later migrations canceled:

PG::DependentObjectsStillExist: ERROR:  cannot drop constraint notes_pkey on table notes because other objects depend on it
DETAIL:  constraint fk_c262d728d4 on table system_note_metadata depends on index notes_pkey
HINT:  Use DROP ... CASCADE to drop the dependent objects too.


Tasks: TOP => db:migrate
(See full trace by running task with --trace)
---- End output of "bash"  ----
Ran "bash"  returned 1
There was an error running gitlab-ctl reconfigure. Please check the output above for more

dpkg: Fehler beim Bearbeiten des Paketes gitlab-ce (--configure):
 »installiertes gitlab-ce-Skript des Paketes post-installation«-Unterprozess gab den Fehlerwert 1 zurück
Fehler traten auf beim Bearbeiten von:

Anyone arround with the same issues and maybe a solution how to fix this?

Looks like a known issue: