Skip to content
Snippets Groups Projects
Commit c6496611 authored by Sheen Capadngan's avatar Sheen Capadngan
Browse files

misc: remove not nullable from alter

parent 027b200b
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
});
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment