mirror of
https://gitlab01.pm.org.ru/tnt/liquibase/liquibase-maven.git
synced 2026-01-12 06:34:48 +08:00
- /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 - /diff.views/changelog-dir/changelog-master.xml - /pom.xml - /README.md
7 lines
233 B
SQL
7 lines
233 B
SQL
do $$ declare
|
|
r record;
|
|
begin
|
|
for r in (select tablename from pg_tables where schemaname = 'my-schema-name') loop
|
|
execute 'drop table if exists public.' || quote_ident(r.tablename) || ' cascade';
|
|
end loop;
|
|
end $$; |