]> granicus.if.org Git - pgm/commitdiff
use internal function to add migration_id in setup
authorNathan Wagner <nw@hydaspes.if.org>
Sat, 2 Oct 2021 19:45:27 +0000 (14:45 -0500)
committerNathan Wagner <nw@hydaspes.if.org>
Sat, 2 Oct 2021 19:45:27 +0000 (14:45 -0500)
setup

diff --git a/setup b/setup
index 337a72fd44b040d9d17a416ce626b85ecb4de124..205753bdfb773705311e99f88fa989f7b2524837 100755 (executable)
--- 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