Prevent accidental undo of initial baseline load.
This commit is contained in:
parent
9e1299e49c
commit
cecd647ee7
BIN
VBA/changes.frx
BIN
VBA/changes.frx
Binary file not shown.
BIN
VBA/fpvt.frx
BIN
VBA/fpvt.frx
Binary file not shown.
BIN
VBA/openf.frx
BIN
VBA/openf.frx
Binary file not shown.
@ -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.
|
||||
**
|
||||
*******************************************************************************************************************************************
|
||||
*******************************************************************************************************************************************
|
||||
|
||||
|
||||
@ -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
|
||||
SELECT json_agg(row_to_json(d)) x from d
|
||||
|
||||
Loading…
Reference in New Issue
Block a user