From 4de8be8cf003f531469117bbafa7b356b8d99212 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Wed, 10 Oct 2007 06:01:51 +0000 Subject: [PATCH] * [ 1798539 ] Cannot Save a User Query --- .../330-trunk/018_SaveUserQueryMessage.sql | 19 +++++++++++++++++++ .../postgresql/018_SaveUserQueryMessage.sql | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 migration/330-trunk/018_SaveUserQueryMessage.sql create mode 100644 migration/330-trunk/postgresql/018_SaveUserQueryMessage.sql diff --git a/migration/330-trunk/018_SaveUserQueryMessage.sql b/migration/330-trunk/018_SaveUserQueryMessage.sql new file mode 100644 index 0000000000..22c287a9b4 --- /dev/null +++ b/migration/330-trunk/018_SaveUserQueryMessage.sql @@ -0,0 +1,19 @@ +INSERT INTO AD_Message +(AD_Message_ID, AD_Client_ID, AD_Org_ID, IsActive, +Created, CreatedBy, +Updated, UpdatedBy, +Value, MsgText, MsgType +) +VALUES (53005, 0, 0, 'Y', +TO_DATE ('10/10/2007 14:00:00', 'MM/DD/YYYY HH24:MI:SS'), 100, +TO_DATE ('10/10/2007 14:00:00', 'MM/DD/YYYY HH24:MI:SS'), 100, +'QueryName','Query Name','M' +); + +UPDATE AD_Sequence +SET CurrentNextSys = (SELECT MAX (AD_Message_ID) + 1 +FROM AD_Message +WHERE AD_message_ID < 1000000) +WHERE NAME = 'AD_Message'; + +COMMIT; diff --git a/migration/330-trunk/postgresql/018_SaveUserQueryMessage.sql b/migration/330-trunk/postgresql/018_SaveUserQueryMessage.sql new file mode 100644 index 0000000000..22c287a9b4 --- /dev/null +++ b/migration/330-trunk/postgresql/018_SaveUserQueryMessage.sql @@ -0,0 +1,19 @@ +INSERT INTO AD_Message +(AD_Message_ID, AD_Client_ID, AD_Org_ID, IsActive, +Created, CreatedBy, +Updated, UpdatedBy, +Value, MsgText, MsgType +) +VALUES (53005, 0, 0, 'Y', +TO_DATE ('10/10/2007 14:00:00', 'MM/DD/YYYY HH24:MI:SS'), 100, +TO_DATE ('10/10/2007 14:00:00', 'MM/DD/YYYY HH24:MI:SS'), 100, +'QueryName','Query Name','M' +); + +UPDATE AD_Sequence +SET CurrentNextSys = (SELECT MAX (AD_Message_ID) + 1 +FROM AD_Message +WHERE AD_message_ID < 1000000) +WHERE NAME = 'AD_Message'; + +COMMIT;