Created
May 30, 2019 15:19
-
-
Save accasey/019ae9305156d63708bb65b8c207fe13 to your computer and use it in GitHub Desktop.
Updates to PSOPRDEFN handling the VERSION
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE PSVERSION SET VERSION = VERSION + 1 WHERE OBJECTTYPENAME IN ('UPM','SYS') | |
/ | |
UPDATE PSLOCK SET VERSION = VERSION + 1 WHERE OBJECTTYPENAME = 'UPM' | |
/ | |
DELETE FROM PSROLEUSER WHERE ROLEUSER = :1 AND ROLENAME LIKE '%%' | |
/ | |
UPDATE PSOPRDEFN SET VERSION = (SELECT VERSION | |
FROM PSVERSION | |
WHERE OBJECTTYPENAME = 'UPM' | |
) | |
WHERE OPRID = :1 | |
/ | |
COMMIT | |
/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment