Skip to content

Commit

Permalink
Prepare a new empty upgrade script and adjust the regression test env…
Browse files Browse the repository at this point in the history
…ironment for the new version.
  • Loading branch information
beaud76 committed Apr 3, 2022
1 parent 46cca0c commit 4ac0fe3
Show file tree
Hide file tree
Showing 18 changed files with 400 additions and 184 deletions.
6 changes: 3 additions & 3 deletions test/10/expected/after_upg_while_logging.out
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ select hist_function, hist_event, hist_object,
order by hist_id;
hist_function | hist_event | hist_object | regexp_replace | hist_user
--------------------------+--------------------+-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------+-----------
EMAJ_INSTALL | | E-Maj 4.0.0 | Initialisation completed | postgres
EMAJ_INSTALL | | E-Maj 4.0.1 | Initialisation completed | postgres
CREATE_GROUP | BEGIN | myGroup1 | rollbackable | postgres
CREATE_GROUP | END | myGroup1 | | postgres
CREATE_GROUP | BEGIN | myGroup2 | rollbackable | postgres
Expand Down Expand Up @@ -539,8 +539,8 @@ select hist_function, hist_event, hist_object,
SET_MARK_GROUP | BEGIN | myGroup6 | STOP_% | postgres
SET_MARK_GROUP | END | myGroup6 | STOP_% | postgres
STOP_GROUP | END | myGroup6 | 3 tables/sequences processed | postgres
EMAJ_INSTALL | BEGIN | E-Maj <devel> | Upgrade from 4.0.0 started | postgres
EMAJ_INSTALL | END | E-Maj <devel> | Upgrade from 4.0.0 completed | postgres
EMAJ_INSTALL | BEGIN | E-Maj <devel> | Upgrade from 4.0.1 started | postgres
EMAJ_INSTALL | END | E-Maj <devel> | Upgrade from 4.0.1 completed | postgres
UNPROTECT_GROUP | | myGroup1 | Status 1 | postgres
ROLLBACK_GROUPS | BEGIN | myGroup1,myGroup2 | Unlogged rollback to mark Common (timestamp) | postgres
DBLINK_OPEN_CNX | | rlbk#1 | Status = -5 | postgres
Expand Down
8 changes: 4 additions & 4 deletions test/10/expected/install_previous.out
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,28 @@ SET default_tablespace TO tspemaj;
------------------------------------------------------------
-- emaj installation in its previous version as an extension
------------------------------------------------------------
CREATE EXTENSION emaj VERSION '4.0.0';
CREATE EXTENSION emaj VERSION '4.0.1';
------------------------------------------------------------
-- check installation
------------------------------------------------------------
-- check impact in catalog
select extname, extversion from pg_extension where extname = 'emaj';
extname | extversion
---------+------------
emaj | 4.0.0
emaj | 4.0.1
(1 row)

-- check the emaj_param content
SELECT param_value_text FROM emaj.emaj_param WHERE param_key = 'emaj_version';
param_value_text
------------------
4.0.0
4.0.1
(1 row)

-- check history
select hist_id, hist_function, hist_event, hist_object, hist_wording, hist_user from emaj.emaj_hist order by hist_id;
hist_id | hist_function | hist_event | hist_object | hist_wording | hist_user
---------+---------------+------------+-------------+--------------------------+-----------
1 | EMAJ_INSTALL | | E-Maj 4.0.0 | Initialisation completed | postgres
1 | EMAJ_INSTALL | | E-Maj 4.0.1 | Initialisation completed | postgres
(1 row)

0 comments on commit 4ac0fe3

Please sign in to comment.