From 2bd20ff26e5194af87c0c834a513e3d15be85d53 Mon Sep 17 00:00:00 2001 From: Nicolas Micoud <58596990+nmicoud@users.noreply.github.com> Date: Wed, 2 Mar 2022 13:55:20 +0100 Subject: [PATCH] IDEMPIERE-5168 column AD_AuthorizationAccount.AccessToken is short on some case - fix oracle script when table has data (#1210) --- migration/i9/oracle/202201302336_IDEMPIERE-5168.sql | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/migration/i9/oracle/202201302336_IDEMPIERE-5168.sql b/migration/i9/oracle/202201302336_IDEMPIERE-5168.sql index cf89f3eb58..4990267ca6 100644 --- a/migration/i9/oracle/202201302336_IDEMPIERE-5168.sql +++ b/migration/i9/oracle/202201302336_IDEMPIERE-5168.sql @@ -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 -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 ;