ALTER TABLE weblib_user_roles ADD COLUMN permissions text not null;
ALTER TABLE weblib_user_roles ADD COLUMN is_system_role tinyint unsigned not null;

ALTER TABLE weblib_md_attributes MODIFY COLUMN element_id smallint unsigned null;

ALTER TABLE weblib_users DROP COLUMN workspace_password;