graphql-engine/server/src-rsr/migrations/33_to_34.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
246 B
MySQL
Raw Normal View History

DO $$ DECLARE
r RECORD;
BEGIN
FOR r IN (SELECT viewname FROM pg_views WHERE schemaname = 'hdb_views' ORDER BY viewname) LOOP
EXECUTE 'DROP VIEW IF EXISTS hdb_views.' || quote_ident(r.viewname) || ' CASCADE';
END LOOP;
END $$;