Skip to content

Commit

Permalink
Setup new 2.0.0 version
Browse files Browse the repository at this point in the history
  • Loading branch information
beaud76 committed Nov 15, 2016
1 parent d9c7786 commit 32b3c06
Show file tree
Hide file tree
Showing 8 changed files with 76 additions and 310 deletions.
6 changes: 6 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ E-Maj - Release notes
---------------------
<NEXT_VERSION>
------
Enhancements:

Bug fixes:

2.0.0
------
Enhancements:
- E-Maj is now installed as a standard extension using the CREATE
EXTENSION SQL command.
Expand Down
34 changes: 17 additions & 17 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -38,30 +38,30 @@ In both environments, being able to examine the history of updates performed on
- AUTHORS who is behind E-Maj
- META.json meta file for PGXN

- sql/emaj.sql psql installation script
- sql/check-0.10.1-to-0.11.0-conditions.sql psql script to check that all conditions allowing a
direct migration from 0.10.1 to 0.11.0 are met
- sql/emaj-0.10.0-to-0.10.1.sql psql upgrade script from 0.10.0 to 0.10.1
- sql/emaj-0.10.1-to-0.11.0.sql psql upgrade script from 0.10.1 to 0.11.0
- sql/emaj-0.11.0-to-0.11.1.sql psql upgrade script from 0.11.0 to 0.11.1
- sql/emaj-0.11.1-to-1.0.0.sql psql upgrade script from 0.11.1 to 1.0.0
- sql/emaj-1.0.0-to-1.0.1.sql psql upgrade script from 1.0.0 to 1.0.1
- sql/emaj-1.0.1-to-1.0.2.sql psql upgrade script from 1.0.1 to 1.0.2
- sql/emaj-1.0.2-to-1.1.0.sql psql upgrade script from 1.0.2 to 1.1.0
- sql/emaj-1.1.0-to-1.2.0.sql psql upgrade script from 1.1.0 to 1.2.0
- sql/emaj-1.2.0-to-1.3.0.sql psql upgrade script from 1.2.0 to 1.3.0
- sql/emaj--2.0.0.sql extension installation script
- sql/emaj.control extension control file
- sql/emaj--1.3.1--2.0.0.sql extension upgrade script from 1.3.1 to 2.0.0
- sql/emaj--unpackaged--1.3.1.sql script to register 1.3.1 as an extension
- sql/emaj-1.3.0-to-1.3.1.sql psql upgrade script from 1.3.0 to 1.3.1
- sql/uninstall.sql uninstallation script
- sql/demo.sql demonstration psql script
- sql/prep-pr.sql psql script to prepare parallel rollback demonstration
- sql/emaj-1.2.0-to-1.3.0.sql psql upgrade script from 1.2.0 to 1.3.0
- sql/emaj-1.1.0-to-1.2.0.sql psql upgrade script from 1.1.0 to 1.2.0
- sql/emaj-1.0.2-to-1.1.0.sql psql upgrade script from 1.0.2 to 1.1.0
- sql/emaj-1.0.1-to-1.0.2.sql psql upgrade script from 1.0.1 to 1.0.2
- sql/emaj-1.0.0-to-1.0.1.sql psql upgrade script from 1.0.0 to 1.0.1
- sql/emaj-0.11.1-to-1.0.0.sql psql upgrade script from 0.11.1 to 1.0.0
- sql/emaj-0.11.0-to-0.11.1.sql psql upgrade script from 0.11.0 to 0.11.1
- sql/emaj_uninstall.sql psql uninstallation script
- sql/emaj_demo.sql psql demonstration script
- sql/emaj_prepare_parallel_rollback_test.sql psql script to prepare parallel rollback demonstration
- sql/emaj_upgrade_after_postgres_upgrade.sql psql script that adjust the E-Maj extension after a postgres upgrade

- doc/emaj.<NEXT_VERSION>_doc_en.pdf E-Maj user's guide in English
- doc/emaj.<NEXT_VERSION>_doc_fr.pdf E-Maj user's guide in French
- doc/emaj.<NEXT_VERSION>_pres_en.pdf E-Maj presentation in English
- doc/emaj.<NEXT_VERSION>_pres_fr.pdf E-Maj presentation in French

- php/emajParallelRollback.php external client for parallel rollback
- php/emajRollbackMonitor.php external client to monitor in progress rollback operations
- php/emajParallelRollback.php external php client for parallel rollback
- php/emajRollbackMonitor.php external php client to monitor in progress rollback operations


4- How to install and use E-Maj
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--
-- E-Maj extension: upgrade from 1.3.1 to <NEXT_VERSION>
-- E-Maj extension: upgrade from 1.3.1 to 2.0.0
--
-- This software is distributed under the GNU General Public License.
--
Expand Down Expand Up @@ -36,7 +36,7 @@ $do$
END IF;
-- the installed postgres version must be at least 9.1
IF current_setting('server_version_num')::int < 90100 THEN
RAISE EXCEPTION 'E-Maj upgrade: the current PostgreSQL version (%) is not compatible with E-Maj <NEXT_VERSION>. The PostgreSQL version should be at least 9.1.', current_setting('server_version');
RAISE EXCEPTION 'E-Maj upgrade: the current PostgreSQL version (%) is not compatible with E-Maj 2.0.0. The PostgreSQL version should be at least 9.1.', current_setting('server_version');
END IF;
-- no existing group must have been created with a postgres version prior 8.4
SELECT string_agg(group_name, ', ') INTO v_groupList FROM emaj.emaj_group
Expand Down Expand Up @@ -6180,10 +6180,10 @@ INSERT INTO pg_catalog.pg_description (objoid, classoid, objsubid, description)
);

-- update the version id in the emaj_param table
UPDATE emaj.emaj_param SET param_value_text = '<NEXT_VERSION>' WHERE param_key = 'emaj_version';
UPDATE emaj.emaj_param SET param_value_text = '2.0.0' WHERE param_key = 'emaj_version';

-- insert the upgrade record in the operation history
INSERT INTO emaj.emaj_hist (hist_function, hist_object, hist_wording) VALUES ('EMAJ_INSTALL','E-Maj <NEXT_VERSION>', 'Upgrade from 1.3.1 completed');
INSERT INTO emaj.emaj_hist (hist_function, hist_object, hist_wording) VALUES ('EMAJ_INSTALL','E-Maj 2.0.0', 'Upgrade from 1.3.1 completed');

-- post installation checks
DO
Expand Down
3 changes: 3 additions & 0 deletions sql/emaj--2.0.0--next_version.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--
-- E-Maj: migration from 2.0.0 to <NEXT_VERSION>
--
246 changes: 0 additions & 246 deletions sql/emaj_set_event_triggers_protection.sql

This file was deleted.

0 comments on commit 32b3c06

Please sign in to comment.