Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix 0.3.2 -> 0.4.0 update to drop the old create_parent() earlier so …

…that the update doesn't complain about needing the old custom type
  • Loading branch information...
commit 8c6830019cd3af397113aa389f0a0ba6d523b40b 1 parent d072bbb
@keithf4 authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 updates/pg_partman--0.3.2--0.4.0.sql
5 updates/pg_partman--0.3.2--0.4.0.sql
@@ -17,6 +17,9 @@ BEGIN
+DROP FUNCTION @extschema@.create_parent(text, text, @extschema@.partition_type, text, int, boolean);
+DROP TABLE @extschema@.part_grants;
ALTER TABLE @extschema@.part_config ADD COLUMN new_type text;
UPDATE @extschema@.part_config SET new_type = type;
ALTER TABLE @extschema@.part_config ALTER new_type SET NOT NULL;
@@ -25,8 +28,6 @@ DROP TYPE @extschema@.partition_type;
ALTER TABLE @extschema@.part_config RENAME new_type TO type;
ALTER TABLE @extschema@.part_config ADD CONSTRAINT part_config_type_check CHECK (@extschema@.check_partition_type(type));
-DROP TABLE @extschema@.part_grants;
-DROP FUNCTION @extschema@.create_parent(text, text, @extschema@.partition_type, text, int, boolean);
* Function to apply ownership & privileges on child tables using parent table as reference
Please sign in to comment.
Something went wrong with that request. Please try again.