diff --git a/VBA/changes.frx b/VBA/changes.frx index c86cb41..9e92f81 100644 Binary files a/VBA/changes.frx and b/VBA/changes.frx differ diff --git a/VBA/fpvt.frx b/VBA/fpvt.frx index 8fcb79f..2825156 100644 Binary files a/VBA/fpvt.frx and b/VBA/fpvt.frx differ diff --git a/VBA/openf.frx b/VBA/openf.frx index e396c3b..46418b7 100644 Binary files a/VBA/openf.frx and b/VBA/openf.frx differ diff --git a/build/build_baseline_from_FAnalysis.sql b/build/build_baseline_from_FAnalysis.sql index 8bc89e6..34b8409 100644 --- a/build/build_baseline_from_FAnalysis.sql +++ b/build/build_baseline_from_FAnalysis.sql @@ -15,14 +15,18 @@ ** 2. In a proper text editor, aka Neovim, remove all instances of NULL from the exported file, leaving nothing between the commas. ** 3. In DBeaver, ** a. Log into usmidsap01 -** b. Navigate to the ubm.rlarp.osm_pool table -** c. Right-click, and choose Import Data. -** d. Follow the self-explanatory steps in the wizard. Make sure to choose the option to empty the table first. -** e. Verify the import worked correctly. -** f. Run the following statements to finish setting up the system. -** DELETE FROM rlarp.osm_log WHERE id > 1; +** b. Run the following statements in the ubm database: +** TRUNCATE TABLE rlarp.osm_log CASCADE; +** ** ALTER SEQUENCE rlarp.osm_log_id_seq RESTART 1; ** +** INSERT INTO rlarp.osm_log (doc) +** SELECT jsonb_build_object('user',current_user,'tag','baseline','type','build_pool','stamp',current_timestamp,'source','top level','message','DON''T UNDO') +** c. Navigate to the ubm.rlarp.osm_pool table +** d. Right-click, and choose Import Data. +** e. Follow the self-explanatory steps in the wizard. Make sure to choose the option to empty the table first. +** f. Verify the import worked correctly. +** ******************************************************************************************************************************************* ******************************************************************************************************************************************* diff --git a/route_sql/undo.sql b/route_sql/undo.sql index e5bc8b0..4105000 100644 --- a/route_sql/undo.sql +++ b/route_sql/undo.sql @@ -1,8 +1,8 @@ WITH d AS ( - DELETE FROM rlarp.osm_log WHERE id = replace_id RETURNING id + DELETE FROM rlarp.osm_log WHERE id <> 1 AND id = replace_id RETURNING id ) ,d_osm AS ( DELETE FROM rlarp.osm_pool WHERE logid IN (select id from d) ) -SELECT json_agg(row_to_json(d)) x from d \ No newline at end of file +SELECT json_agg(row_to_json(d)) x from d