From: Nathan Wagner Date: Sat, 2 Oct 2021 19:45:27 +0000 (-0500) Subject: use internal function to add migration_id in setup X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=159b02a9f7c2f872ad50f756405de9a31ce84197;p=pgm use internal function to add migration_id in setup --- diff --git a/setup b/setup index 337a72f..205753b 100755 --- a/setup +++ b/setup @@ -38,7 +38,6 @@ elif [ "$what" = 'target' ]; then $PSQL service=target -c 'create extension if not exists pg_trgm' $PSQL service=target -c 'create extension if not exists pgcrypto' $PSQL service=target -q -f schema.sql - $PSQL service=target -q -f scripts/add_migration_id.sql set +x fi @@ -53,6 +52,7 @@ elif [ "$what" = 'target' ]; then set search_path to migration; set client_min_messages to notice; + select add_schema_migration_ids(exclude := ARRAY['junk', 'archive'], initqueue := false); select setup_schema(exclude := ARRAY['junk', 'archive'], initqueue := false); select disable_target_triggers(); EOS