diff --git a/mifosng-db/patches/patch-16-remove_portfolio_organisation_and_user_super_users.sql b/mifosng-db/patches/patch-16-remove_portfolio_organisation_and_user_super_users.sql new file mode 100644 index 000000000..f620d9bc8 --- /dev/null +++ b/mifosng-db/patches/patch-16-remove_portfolio_organisation_and_user_super_users.sql @@ -0,0 +1,11 @@ + + +DELETE FROM m_role_permission +where exists +(select 'f' from m_permission p +where p.id = m_role_permission.permission_id +and p.code in ("ORGANISATION_ADMINISTRATION_SUPER_USER", "PORTFOLIO_MANAGEMENT_SUPER_USER", "USER_ADMINISTRATION_SUPER_USER")); + + +DELETE from m_permission +where code in ("ORGANISATION_ADMINISTRATION_SUPER_USER", "PORTFOLIO_MANAGEMENT_SUPER_USER", "USER_ADMINISTRATION_SUPER_USER");