From cab22dfe9ce179ff7fc526e4e354d94d33c391c3 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sat, 8 Sep 2018 16:19:06 +0200 Subject: [PATCH] IDEMPIERE-2652 default value of ad_ctxhelpmsg_trl.create and ad_ctxhelpmsg_trl.update should now() --- .../i5.1/oracle/201809081618_IDEMPIERE-2652.sql | 15 +++++++++++++++ .../postgresql/201809081618_IDEMPIERE-2652.sql | 12 ++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 migration/i5.1/oracle/201809081618_IDEMPIERE-2652.sql create mode 100644 migration/i5.1/postgresql/201809081618_IDEMPIERE-2652.sql diff --git a/migration/i5.1/oracle/201809081618_IDEMPIERE-2652.sql b/migration/i5.1/oracle/201809081618_IDEMPIERE-2652.sql new file mode 100644 index 0000000000..f8cfb694d0 --- /dev/null +++ b/migration/i5.1/oracle/201809081618_IDEMPIERE-2652.sql @@ -0,0 +1,15 @@ +SET SQLBLANKLINES ON +SET DEFINE OFF + +-- IDEMPIERE-2652 default value of ad_ctxhelpmsg_trl.create and ad_ctxhelpmsg_trl.update should now() +-- Sep 8, 2018 4:14:56 PM CEST +ALTER TABLE AD_CtxHelpMsg_Trl MODIFY Created DATE DEFAULT SYSDATE +; + +-- Sep 8, 2018 4:15:28 PM CEST +ALTER TABLE AD_CtxHelpMsg_Trl MODIFY Updated DATE DEFAULT SYSDATE +; + +SELECT register_migration_script('201809081618_IDEMPIERE-2652.sql') FROM dual +; + diff --git a/migration/i5.1/postgresql/201809081618_IDEMPIERE-2652.sql b/migration/i5.1/postgresql/201809081618_IDEMPIERE-2652.sql new file mode 100644 index 0000000000..8d0a8cceea --- /dev/null +++ b/migration/i5.1/postgresql/201809081618_IDEMPIERE-2652.sql @@ -0,0 +1,12 @@ +-- IDEMPIERE-2652 default value of ad_ctxhelpmsg_trl.create and ad_ctxhelpmsg_trl.update should now() +-- Sep 8, 2018 4:14:56 PM CEST +INSERT INTO t_alter_column values('ad_ctxhelpmsg_trl','Created','TIMESTAMP',null,'statement_timestamp()') +; + +-- Sep 8, 2018 4:15:28 PM CEST +INSERT INTO t_alter_column values('ad_ctxhelpmsg_trl','Updated','TIMESTAMP',null,'statement_timestamp()') +; + +SELECT register_migration_script('201809081618_IDEMPIERE-2652.sql') FROM dual +; +