change README.md

This commit is contained in:
pashko 2024-05-08 14:38:29 +08:00
parent fb890fb324
commit d48d2721c6

View File

@ -46,13 +46,11 @@ mvn liquibase:history > liquibase_log/liquibase_log_history-$(date +%Y%m%d%H%M%S
```
```sql
DO $$ DECLARE
r RECORD;
BEGIN
FOR r IN (SELECT tablename FROM pg_tables WHERE schemaname =
'public') LOOP
EXECUTE 'DROP TABLE IF EXISTS ' || quote_ident(r.tablename) || '
CASCADE';
END LOOP;
END $$;
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 $$;
```