Versioning

Fork/mirror of https://gitlab.com/depesz/Versioning
git clone https://ccx.te2000.cz/git/Versioning
Log | Files | Refs | README | LICENSE

commit 9e2302df9905330113e187e7cec961fa557d0b83
parent f5ac10f95e0c959e8b41236feed1e4db0407d61d
Author: Hubert depesz Lubaczewski <depesz@depesz.com>
Date:   Thu, 16 Jun 2011 05:38:29 -0700

Merge pull request #1 from theory/another-alias

Add alias with dependencies but not conflicts. - code by Theory
Diffstat:
Minstall.versioning.sql | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/install.versioning.sql b/install.versioning.sql @@ -61,6 +61,10 @@ END; $$ language plpgsql; COMMENT ON FUNCTION _v.register_patch( TEXT, TEXT[], TEXT[] ) IS 'Function to register patches in database. Raises exception if there are conflicts, prerequisites are not installed or the migration has already been installed.'; +CREATE OR REPLACE FUNCTION _v.register_patch( TEXT, TEXT[] ) RETURNS setof INT4 AS $$ + SELECT _v.register_patch( $1, $2, NULL ); +$$ language sql; +COMMENT ON FUNCTION _v.register_patch( TEXT, TEXT[] ) IS 'Wrapper to allow registration of patches without conflicts.'; CREATE OR REPLACE FUNCTION _v.register_patch( TEXT ) RETURNS setof INT4 AS $$ SELECT _v.register_patch( $1, NULL, NULL ); $$ language sql;