The commit which added the grant_mode column to the permissions table
was reverted (604ae480ab677b06e53abd0edfaf0ec04f017fb8).
If you upgraded the DB since the 25/3, please run manually the next
command in order to drop that column and run refresh procedure
afterwards/run upgrade script:
echo 'alter table permissions drop column grant_mode' | psql engine postgres
(supply database name if differ from engine).