Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

misc: remove not nullable from alter

Sheen Capadnganc64966113383
diff --git a/backend/src/db/migrations/20241107112632_skip-bootstrap-cert-validation-est.ts b/backend/src/db/migrations/20241107112632_skip-bootstrap-cert-validation-est.ts
index dd6bcf8ad9..fbee179b38 100644
--- a/backend/src/db/migrations/20241107112632_skip-bootstrap-cert-validation-est.ts
+++ b/backend/src/db/migrations/20241107112632_skip-bootstrap-cert-validation-est.ts
@@ -27,15 +27,9 @@ export async function down(knex: Knex): Promise<void> {
"disableBootstrapCertValidation"
);
- const hasCaChainCol = await knex.schema.hasColumn(TableName.CertificateTemplateEstConfig, "encryptedCaChain");
-
await knex.schema.alterTable(TableName.CertificateTemplateEstConfig, (t) => {
if (hasDisableBootstrapCertValidationCol) {
t.dropColumn("disableBootstrapCertValidation");
}
-
- if (hasCaChainCol) {
- t.binary("encryptedCaChain").notNullable().alter();
- }
});
}