From b8fffa0015d7191d73ab7d0f009e5c379de8f7c3 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Fri, 12 Jan 2007 14:57:16 +0000 Subject: [PATCH] Fix bad year in dictionary, there are a lot of entries with year 99 instead of 1999 --- .../004_fix_bad_year_dictionary.sql | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 _Project-ID-ADempiere/sqls_3.1.3/004_fix_bad_year_dictionary.sql diff --git a/_Project-ID-ADempiere/sqls_3.1.3/004_fix_bad_year_dictionary.sql b/_Project-ID-ADempiere/sqls_3.1.3/004_fix_bad_year_dictionary.sql new file mode 100644 index 0000000000..81de3b2811 --- /dev/null +++ b/_Project-ID-ADempiere/sqls_3.1.3/004_fix_bad_year_dictionary.sql @@ -0,0 +1,49 @@ +UPDATE ad_table + SET created = ADD_MONTHS (created, 22800) + WHERE created < DATE '1000-01-01'; + +UPDATE ad_column + SET created = ADD_MONTHS (created, 22800) + WHERE created < DATE '1000-01-01'; + +UPDATE ad_field + SET created = ADD_MONTHS (created, 22800) + WHERE created < DATE '1000-01-01'; + +UPDATE ad_menu + SET created = ADD_MONTHS (created, 22800) + WHERE created < DATE '1000-01-01'; + +UPDATE ad_message + SET created = ADD_MONTHS (created, 22800) + WHERE created < DATE '1000-01-01'; + +UPDATE ad_reference + SET created = ADD_MONTHS (created, 22800) + WHERE created < DATE '1000-01-01'; + +UPDATE ad_ref_list + SET created = ADD_MONTHS (created, 22800) + WHERE created < DATE '1000-01-01'; + +UPDATE ad_ref_table + SET created = ADD_MONTHS (created, 22800) + WHERE created < DATE '1000-01-01'; + +UPDATE ad_tab + SET created = ADD_MONTHS (created, 22800) + WHERE created < DATE '1000-01-01'; + +UPDATE ad_treenodemm + SET created = ADD_MONTHS (created, 22800) + WHERE created < DATE '1000-01-01'; + +UPDATE ad_val_rule + SET created = ADD_MONTHS (created, 22800) + WHERE created < DATE '1000-01-01'; + +UPDATE ad_window + SET created = ADD_MONTHS (created, 22800) + WHERE created < DATE '1000-01-01'; + +COMMIT ; \ No newline at end of file