core-jgi/migration/i9/postgresql/202208111553_IDEMPIERE-5372...

40 lines
1.3 KiB
SQL

-- IDEMPIERE-5372 Wrong default for IsApproved column on C_Order, C_Invoice and C_CashPlan
SELECT register_migration_script('202208111553_IDEMPIERE-5372.sql') FROM dual;
-- Aug 11, 2022, 3:53:54 PM CEST
UPDATE AD_Column SET DefaultValue='N',Updated=TO_TIMESTAMP('2022-08-11 15:53:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=2175
;
-- Aug 11, 2022, 3:55:19 PM CEST
INSERT INTO t_alter_column values('c_order','IsApproved','CHAR(1)',null,'N')
;
-- Aug 11, 2022, 3:55:21 PM CEST
UPDATE C_Order SET IsApproved='N' WHERE IsApproved IS NULL
;
-- Aug 11, 2022, 3:58:17 PM CEST
UPDATE AD_Column SET DefaultValue='N',Updated=TO_TIMESTAMP('2022-08-11 15:58:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=3503
;
-- Aug 11, 2022, 3:58:28 PM CEST
INSERT INTO t_alter_column values('c_invoice','IsApproved','CHAR(1)',null,'N')
;
-- Aug 11, 2022, 3:58:28 PM CEST
UPDATE C_Invoice SET IsApproved='N' WHERE IsApproved IS NULL
;
-- Aug 11, 2022, 4:00:09 PM CEST
UPDATE AD_Column SET DefaultValue='N',Updated=TO_TIMESTAMP('2022-08-11 16:00:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=60172
;
-- Aug 11, 2022, 4:00:31 PM CEST
INSERT INTO t_alter_column values('c_cashplan','IsApproved','CHAR(1)',null,'N')
;
-- Aug 11, 2022, 4:00:31 PM CEST
UPDATE C_CashPlan SET IsApproved='N' WHERE IsApproved IS NULL
;