diff --git a/internal/db/schema/migrations/oss/postgres/44/03_targets.up.sql b/internal/db/schema/migrations/oss/postgres/44/03_targets.up.sql index 791fcb7a6c..33b197ffe1 100644 --- a/internal/db/schema/migrations/oss/postgres/44/03_targets.up.sql +++ b/internal/db/schema/migrations/oss/postgres/44/03_targets.up.sql @@ -79,23 +79,6 @@ begin; end; $$ language plpgsql; - -- Replaces target_all_subtypes defined in 1/01_server_tags_migrations.up.sql - drop view target_all_subtypes; - create view target_all_subtypes as - select public_id, - project_id, - name, - description, - default_port, - session_max_seconds, - session_connection_limit, - version, - create_time, - update_time, - worker_filter, - 'tcp' as type - from target_tcp; - -- warehouse -- Replaces whx_host_dimension_source defined in 26/02_wh_network_address_dimensions.up.sql. @@ -232,4 +215,21 @@ begin; and o.public_id = p.parent_id and o.type = 'org'; + -- Replaces target_all_subtypes defined in 1/01_server_tags_migrations.up.sql + drop view target_all_subtypes; + create view target_all_subtypes as + select public_id, + project_id, + name, + description, + default_port, + session_max_seconds, + session_connection_limit, + version, + create_time, + update_time, + worker_filter, + 'tcp' as type + from target_tcp; + commit;