mirror of
https://gitlab01.pm.org.ru/tnt/liquibase/liquibase-maven.git
synced 2026-01-12 09:24:47 +08:00
Update 5 files
- /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
This commit is contained in:
parent
c9237c6d50
commit
b0884ade14
@ -9,5 +9,5 @@
|
|||||||
http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-latest.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">
|
http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
|
||||||
|
|
||||||
<includeAll path="changelog-dir/update-changelog/"/>
|
<includeAll path="cleanup.views/changelog-dir/cleanup_all_views"/>
|
||||||
</databaseChangeLog>
|
</databaseChangeLog>
|
||||||
@ -1,7 +1,10 @@
|
|||||||
do $$ declare
|
do $$ declare
|
||||||
r record;
|
r record;
|
||||||
begin
|
begin
|
||||||
for r in (select tablename from pg_tables where schemaname = 'my-schema-name') loop
|
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 table if exists public.' || quote_ident(r.tablename) || ' cascade';
|
execute 'drop view if exists public.' || quote_ident(r.table_name) || ' cascade';
|
||||||
end loop;
|
end loop;
|
||||||
end $$;
|
end $$;
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS liquibase.datachangelog_views;
|
||||||
|
DROP TABLE IF EXISTS liquibase.datachangeloglock_views;
|
||||||
|
|||||||
@ -9,5 +9,7 @@
|
|||||||
http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-latest.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">
|
http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
|
||||||
|
|
||||||
<includeAll path="changelog-dir/update-changelog/"/>
|
<includeAll path="diff.tables/changelog-dir/function_before_create_tables"/>
|
||||||
|
<includeAll path="diff.tables/changelog-dir/update-changelog"/>
|
||||||
|
<includeAll path="diff.tables/changelog-dir/functions_after_create_tables"/>
|
||||||
</databaseChangeLog>
|
</databaseChangeLog>
|
||||||
@ -9,5 +9,11 @@
|
|||||||
http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-latest.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">
|
http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
|
||||||
|
|
||||||
<includeAll path="changelog-dir/update-changelog/"/>
|
|
||||||
|
<includeAll path="diff.views/changelog-dir/drop_liquibase_tables"/>
|
||||||
|
<includeAll path="diff.views/changelog-dir/function_before_create_views"/>
|
||||||
|
<includeAll path="diff.views/changelog-dir/update-changelog"/>
|
||||||
|
<includeAll path="diff.views/changelog-dir/functions_after_create_views"/>
|
||||||
|
|
||||||
|
|
||||||
</databaseChangeLog>
|
</databaseChangeLog>
|
||||||
@ -0,0 +1,2 @@
|
|||||||
|
DROP TABLE IF EXISTS liquibase.datachangelog_cleanup;
|
||||||
|
DROP TABLE IF EXISTS liquibase.datachangeloglock_cleanup;
|
||||||
Loading…
x
Reference in New Issue
Block a user