mirror of
https://gitlab01.pm.org.ru/tnt/liquibase/liquibase-maven.git
synced 2026-09-07 20:15:23 +08:00
Update 6 files
- /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
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
|
||||
<databaseChangeLog
|
||||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
|
||||
xmlns:pro="http://www.liquibase.org/xml/ns/pro"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext
|
||||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd
|
||||
http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-latest.xsd
|
||||
http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
|
||||
|
||||
<includeAll path="changelog-dir/update-changelog/"/>
|
||||
</databaseChangeLog>
|
||||
@@ -0,0 +1,7 @@
|
||||
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 $$;
|
||||
Reference in New Issue
Block a user