File tree Expand file tree Collapse file tree 1 file changed +22
-14
lines changed
Expand file tree Collapse file tree 1 file changed +22
-14
lines changed Original file line number Diff line number Diff line change @@ -137,19 +137,27 @@ jobs:
137137 sleep 10 # Wait for the tunnel to establish
138138
139139 export PGPASSWORD=$DEST_DATABASE_PASSWORD
140- cat <<'EOF' | psql -h localhost -p 5454 -U data_feeds_user -d $DEST_DATABASE_NAME
141- DO $$
142- DECLARE
143- r RECORD;
144- BEGIN
145- FOR r IN
146- SELECT table_name
147- FROM information_schema.tables
148- WHERE table_schema = 'public'
149- LOOP
150- EXECUTE format('ALTER TABLE public.%I OWNER TO postgres;', r.table_name);
151- END LOOP;
152- END
153- $$;
140+
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
156+
157+ cat <<'EOF' | psql -h localhost -p 5454 -U data_feeds_user -d $DEST_DATABASE_NAME
158+ UPDATE feed
159+ SET feed_contact_email = REPLACE(feed_contact_email, '@', '_') || '@mobilitydata.org'
160+ WHERE feed_contact_email IS NOT NULL
161+ AND TRIM(feed_contact_email) <> '';
154162 EOF
155163
You can’t perform that action at this time.
0 commit comments