Create Schema Manager and propagate contexts into the DB calls downstream. Add checks at controller startup and database init for correct schema version and schema migration dirty bit being set.
16 lines
239 B
PL/PgSQL
16 lines
239 B
PL/PgSQL
begin;
|
|
|
|
drop table target cascade;
|
|
drop table target_host_set cascade;
|
|
drop table target_tcp;
|
|
drop view target_all_subtypes;
|
|
drop view target_host_set_catalog;
|
|
|
|
|
|
delete
|
|
from oplog_ticket
|
|
where name in (
|
|
'target_tcp'
|
|
);
|
|
|
|
commit; |