mirror of
https://gitlab01.pm.org.ru/tnt/liquibase/liquibase-maven.git
synced 2026-01-12 09:24:47 +08:00
- /diff.views/changelog-dir/drop_liquibase_tables/02_drop_liquibase_tables_ceanup.sql - /diff.views/changelog-dir/changelog-master.xml - /cleanup.views/changelog-dir/cleanup_all_views/01_cleanup-allviews.sql - /cleanup.views/changelog-dir/changelog-master.xml - /diff.tables/changelog-dir/changelog-master.xml
11 lines
462 B
SQL
11 lines
462 B
SQL
do $$ declare
|
|
r record;
|
|
begin
|
|
for r in (select table_name from information_schema.tables where table_type = 'VIEW' and table_schema = 'public' and table_name != 'pg_stat_statements' and table_name != 'pg_stat_statements_info') loop
|
|
execute 'drop view if exists public.' || quote_ident(r.table_name) || ' cascade';
|
|
end loop;
|
|
end $$;
|
|
|
|
DROP TABLE IF EXISTS liquibase.datachangelog_views;
|
|
DROP TABLE IF EXISTS liquibase.datachangeloglock_views;
|