JBAS-1839 Stock browse migration create_date repair
authorBill Erickson <berickxx@gmail.com>
Tue, 30 Oct 2018 19:04:56 +0000 (12:04 -0700)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
KCLS/sql/schema/deploy/stock-browse-schema.sql

index cd9897e..c35bfe7 100644 (file)
@@ -770,8 +770,9 @@ BEGIN
         -- existing entries do not have truncated sort values that
         -- contain both sort value and value.  fix that here.
         INSERT INTO metabib.browse_entry 
-            (value, index_vector, sort_value, combo_sort_value)
+            (create_date, value, index_vector, sort_value, combo_sort_value)
         SELECT 
+            legacy_entry.create_date,
             legacy_entry.value,
             legacy_entry.index_vector, 
             legacy_entry.sort_value,