Update docs for Infisical SSH, fix Infisical SSH project deletion bug

This commit is contained in:
Tuan Dang
2025-04-04 11:59:05 -07:00
parent 9fc9f69fc9
commit 18c8fc66ee
17 changed files with 58 additions and 5 deletions
@@ -15,6 +15,12 @@ export async function up(knex: Knex): Promise<void> {
t.string("keySource").notNullable().alter();
});
}
if (await knex.schema.hasColumn(TableName.SshCertificate, "sshCaId")) {
await knex.schema.alterTable(TableName.SshCertificate, (t) => {
t.uuid("sshCaId").nullable().alter();
});
}
}
export async function down(knex: Knex): Promise<void> {
+1 -1
View File
@@ -11,7 +11,7 @@ export const SshCertificatesSchema = z.object({
id: z.string().uuid(),
createdAt: z.date(),
updatedAt: z.date(),
sshCaId: z.string().uuid(),
sshCaId: z.string().uuid().nullable().optional(),
sshCertificateTemplateId: z.string().uuid().nullable().optional(),
serialNumber: z.string(),
certType: z.string(),