fix(db): target address relabel migration id (#2769)

pull/2773/head
Damian Debkowski 3 years ago committed by GitHub
parent beb97ac9f2
commit a8ee18e177
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -10,7 +10,7 @@ begin;
alter column credential_group_key drop default;
-- replaces function from 15/01_wh_rename_key_columns.up.sql
-- replaced function in 70/03_wh_sessions.up.sql
-- replaced function in 60/03_wh_sessions.up.sql
drop trigger wh_insert_session on session;
drop function wh_insert_session;

@ -70,7 +70,7 @@ begin;
-- replaces function from 15/02_wh_rename_key_columns.up.sql
-- replaced function in 70/03_wh_sessions.up.sql
-- replaced function in 60/03_wh_sessions.up.sql
-- adds the network address key to the host dimension table.
drop function wh_upsert_host;
create function wh_upsert_host(p_host_id wt_public_id, p_host_set_id wt_public_id, p_target_id wt_public_id) returns wh_dim_key

@ -82,7 +82,7 @@ begin;
-- warehouse
-- Replaces whx_host_dimension_source defined in 26/02_wh_network_address_dimensions.up.sql.
-- Replaced view in 70/03_wh_sessions.up.sql
-- Replaced view in 60/03_wh_sessions.up.sql
drop view whx_host_dimension_source;
create view whx_host_dimension_source as
select -- id is the first column in the target view

@ -35,7 +35,7 @@ begin;
$$ language plpgsql;
-- Replaces trigger from 01/50_session.up.sql
-- Replaced trigger in 70/02_sessions.up.sql
-- Replaced trigger in 60/02_sessions.up.sql
create or replace function insert_session() returns trigger
as $$
begin

@ -32,7 +32,7 @@ begin;
on update cascade;
-- Replaces trigger from 44/04_session.up.sql
-- Replaced in 70/02_sessions.up.sql
-- Replaced in 60/02_sessions.up.sql
-- Adding a foreign key reference to the kms key means we have
-- to set the key_id to null when the scope_id is set to null,
-- otherwise we can't delete scopes with sessions, since deleting

@ -86,7 +86,7 @@ select public_id,
from target_tcp;
-- Replaces view from 56/06_add_session_private_key_column.up.sql
-- Replaced in 70/02_sessions.up.sql
-- Replaced in 60/02_sessions.up.sql
drop view session_list;
create view session_list as
select

Loading…
Cancel
Save