legacyfile=/usr/pgsql-11/share/contrib/postgis-2.5/legacy.sql
if [ "$what" = 'source' ]; then
+ psql -Aqt service=source -f scripts/gen_migration_id_script.sql > scripts/add_source_migration_id.sql
+ psql -Aqt service=source -f scripts/add_source_migration_id.sql
{
cat <<-EOS
\set VERBOSITY 'terse'
# must setup the schema on the target, the disable_target_triggers() function
# uses the posting table to figure out what tables to operate on
+ psql -Aqt service=target -f scripts/gen_migration_id_script.sql > scripts/add_target_migration_id.sql
+ psql -Aqt service=target -f scripts/add_target_migration_id.sql
{
cat <<-EOS
\set VERBOSITY 'terse'
set search_path to migration;
set client_min_messages to notice;
- select add_schema_migration_ids(exclude := ARRAY['junk', 'archive'], initqueue := false);
+ -- 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