IDEMPIERE-5168 column AD_AuthorizationAccount.AccessToken is short on some case - fix oracle script when table has data (#1210)

This commit is contained in:
Nicolas Micoud 2022-03-02 13:55:20 +01:00 committed by GitHub
parent 2d70269daf
commit 2bd20ff26e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -23,8 +23,10 @@ UPDATE AD_Column SET FieldLength=0, AD_Reference_ID=14,Updated=TO_DATE('2022-01-
; ;
-- Jan 30, 2022, 11:33:02 PM CET -- Jan 30, 2022, 11:33:02 PM CET
ALTER TABLE AD_AuthorizationAccount MODIFY AccessToken LONG DEFAULT NULL ALTER TABLE AD_AuthorizationAccount ADD Tmp_AccessToken LONG DEFAULT NULL;
; UPDATE AD_AuthorizationAccount SET Tmp_AccessToken = AccessToken;
ALTER TABLE AD_AuthorizationAccount DROP COLUMN AccessToken;
ALTER TABLE AD_AuthorizationAccount RENAME COLUMN Tmp_AccessToken TO AccessToken;
ALTER TABLE AD_AuthorizationAccount MODIFY AccessToken CLOB DEFAULT NULL ALTER TABLE AD_AuthorizationAccount MODIFY AccessToken CLOB DEFAULT NULL
; ;