Skip to content

Commit f433810

Browse files
committed
fix(db): Update migration comments to reference correct folder (101 instead of 99)
1 parent 659b55b commit f433810

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

internal/db/schema/migrations/oss/postgres/100/01_credential_vault_ldap_library.up.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ begin;
7878
create trigger default_vault_ldap_credential_type before insert on credential_vault_ldap_library
7979
for each row execute procedure default_vault_ldap_credential_type();
8080

81+
-- Replaces view from 99/01_credential_vault_library_refactor.up.sql
8182
-- Replaced in 101/02_credential_vault_password_library.up.sql
8283
drop view credential_vault_library_issue_credentials;
8384
create view credential_vault_library_issue_credentials as

internal/db/schema/migrations/oss/postgres/98/01_credential_static_username_password_domain_credential.up.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ begin;
153153
comment on view credential_static_username_password_domain_credential_hst_agg is
154154
'credential_static_username_password_domain_credential_hst_aggregate contains the username password credential history data along with its store and purpose data.';
155155

156-
157-
-- This constraint is replaced in 99/01_credential_static_password_credential.up.sql
156+
-- This constraint replaces the previous constraint created in 63/01_credential_vault_ssh_cert_library.up.sql
157+
-- This constraint is replaced in 101/01_credential_static_password_credential.up.sql
158158
alter table credential_type_enm
159159
drop constraint only_predefined_credential_types_allowed;
160160

@@ -173,8 +173,8 @@ begin;
173173
insert into credential_type_enm (name)
174174
values ('username_password_domain');
175175

176-
177-
-- This function is updated in 99/01_credential_static_password_credential.up.sql.
176+
-- This function replaces the previous function created in 71/14_recording_static_credential.up.sql
177+
-- This function is replaced in 101/01_credential_static_password_credential.up.sql
178178
create or replace function insert_recording_static_credentials() returns trigger
179179
as $$
180180
begin

internal/db/schema/migrations/oss/postgres/98/02_username_password_domain_vault.up.sql

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ begin;
3737
create trigger delete_credential_vault_library_mapping_override_subtype after delete on credential_vault_library_username_password_domain_mapping_ovrd
3838
for each row execute procedure delete_credential_vault_library_mapping_override_subtype();
3939

40-
41-
-- Replaces view from 78/01_ssh_signed_certs_additional_valid_principals.up.sql
42-
-- Replaced in 99/01_credential_vault_library_refactor.up.sql
40+
-- Replaces view from 78/01_ssh_signed_certs_additional_valid_principals.up.sql
41+
-- Replaced in 99/01_credential_vault_library_refactor.up.sql
4342
drop view credential_vault_library_issue_credentials;
4443
create view credential_vault_library_issue_credentials as
4544
with
@@ -161,10 +160,9 @@ begin;
161160
'This view should only be used when issuing credentials from a Vault credential library. Each row may contain encrypted data. '
162161
'This view should not be used to retrieve data which will be returned external to boundary.';
163162

164-
165-
-- Replaces view created in 49/01_vault_credentials.up.sql
166-
-- Replaced in 99/01_credential_vault_library_refactor.up.sql where this
167-
-- view's name changed to credential_vault_generic_library_list_lookup.
163+
-- Replaces view created in 49/01_vault_credentials.up.sql
164+
-- Replaced in 99/01_credential_vault_library_refactor.up.sql where this
165+
-- view's name changed to credential_vault_generic_library_list_lookup.
168166
drop view credential_vault_library_list_lookup;
169167
create view credential_vault_library_list_lookup as
170168
with

0 commit comments

Comments
 (0)