File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed
Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -138,21 +138,21 @@ jobs:
138138
139139 export PGPASSWORD=$DEST_DATABASE_PASSWORD
140140
141- # cat <<'EOF' | psql -h localhost -p 5454 -U data_feeds_user -d $DEST_DATABASE_NAME
142- # DO $$
143- # DECLARE
144- # r RECORD;
145- # BEGIN
146- # FOR r IN
147- # SELECT table_name
148- # FROM information_schema.tables
149- # WHERE table_schema = 'public'
150- # LOOP
151- # EXECUTE format('ALTER TABLE public.%I OWNER TO postgres;', r.table_name);
152- # END LOOP;
153- # END
154- # $$;
155- # EOF
141+ cat <<'EOF' | psql -h localhost -p 5454 -U data_feeds_user -d $DEST_DATABASE_NAME
142+ DO $$
143+ DECLARE
144+ r RECORD;
145+ BEGIN
146+ FOR r IN
147+ SELECT table_name
148+ FROM information_schema.tables
149+ WHERE table_schema = 'public'
150+ LOOP
151+ EXECUTE format('ALTER TABLE public.%I OWNER TO postgres;', r.table_name);
152+ END LOOP;
153+ END
154+ $$;
155+ EOF
156156
157157 cat <<'EOF' | psql -h localhost -p 5454 -U data_feeds_user -d $DEST_DATABASE_NAME
158158 UPDATE feed
You can’t perform that action at this time.
0 commit comments