mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
8 lines
246 B
MySQL
8 lines
246 B
MySQL
|
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 $$;
|