Permalink
Browse files

Need to update `pgtap_version()`, too.

  • Loading branch information...
1 parent 35cf17e commit 11e494998fc5e09c580f0729bfa643fcf56ba166 @theory committed Jan 25, 2013
Showing with 14 additions and 0 deletions.
  1. +2 −0 Changes
  2. +4 −0 sql/pgtap--0.90.0--0.91.0.sql
  3. +4 −0 sql/pgtap--0.91.0--0.92.0.sql
  4. +4 −0 sql/pgtap--0.92.0--0.93.0.sql
View
@@ -16,6 +16,8 @@ Revision history for pgTAP
function so that type names always include the schema name if the schema is
not in the search path. You might have to update data type tests to include
the schema name if the type is not in the search path.
+* Added code to the `ALTER EXTENSION` upgrade scripts to update the value
+ returned by `pgtap_version()`.
0.92.0 2013-01-16T00:41:07Z
---------------------------
@@ -1,3 +1,7 @@
+CREATE OR REPLACE FUNCTION pgtap_version()
+RETURNS NUMERIC AS 'SELECT 0.91;'
+LANGUAGE SQL IMMUTABLE;
+
CREATE OR REPLACE FUNCTION has_tablespace( NAME, TEXT, TEXT )
RETURNS TEXT AS $$
BEGIN
@@ -1,3 +1,7 @@
+CREATE OR REPLACE FUNCTION pgtap_version()
+RETURNS NUMERIC AS 'SELECT 0.92;'
+LANGUAGE SQL IMMUTABLE;
+
CREATE OR REPLACE FUNCTION _cexists ( NAME, NAME )
RETURNS BOOLEAN AS $$
SELECT EXISTS(
@@ -1,3 +1,7 @@
+CREATE OR REPLACE FUNCTION pgtap_version()
+RETURNS NUMERIC AS 'SELECT 0.93;'
+LANGUAGE SQL IMMUTABLE;
+
-- _get_schema_owner( schema )
CREATE OR REPLACE FUNCTION _get_schema_owner( NAME )
RETURNS NAME AS $$

0 comments on commit 11e4949

Please sign in to comment.