Revert "Fixed an issue where shared server entries not getting deleted from SQLite database if the user gets deleted. Fixes #6143"

This reverts commit 57ed02a9aa.
This commit is contained in:
Akshay Joshi 2021-01-21 15:23:03 +05:30
parent 57ed02a9aa
commit f92b0961ee
2 changed files with 1 additions and 4 deletions

View File

@ -52,5 +52,4 @@ Bug fixes
| `Issue #6122 <https://redmine.postgresql.org/issues/6122>`_ - Added informative message when there is no difference found for schema diff.
| `Issue #6128 <https://redmine.postgresql.org/issues/6128>`_ - Fixed an issue where sequences are not created.
| `Issue #6140 <https://redmine.postgresql.org/issues/6140>`_ - Ensure that verbose logs should be visible for Utility(Backup, Maintenance) jobs.
| `Issue #6143 <https://redmine.postgresql.org/issues/6143>`_ - Fixed an issue where shared server entries not getting deleted from SQLite database if the user gets deleted.
| `Issue #6144 <https://redmine.postgresql.org/issues/6144>`_ - Ensure that the current value of the sequence should be ignored while comparing using schema diff.

View File

@ -28,7 +28,7 @@ from pgadmin.utils.constants import MIMETYPE_APP_JS, INTERNAL,\
SUPPORTED_AUTH_SOURCES, KERBEROS
from pgadmin.utils.validation_utils import validate_email
from pgadmin.model import db, Role, User, UserPreference, Server, \
ServerGroup, Process, Setting, SharedServer
ServerGroup, Process, Setting
# set template path for sql scripts
MODULE_NAME = 'user_management'
@ -347,8 +347,6 @@ def delete(uid):
Process.query.filter_by(user_id=uid).delete()
SharedServer.query.filter_by(user_id=uid).delete()
# Finally delete user
db.session.delete(usr)