mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 09:28:06 +00:00
misc: remove not nullable from alter
This commit is contained in:
@@ -27,15 +27,9 @@ export async function down(knex: Knex): Promise<void> {
|
|||||||
"disableBootstrapCertValidation"
|
"disableBootstrapCertValidation"
|
||||||
);
|
);
|
||||||
|
|
||||||
const hasCaChainCol = await knex.schema.hasColumn(TableName.CertificateTemplateEstConfig, "encryptedCaChain");
|
|
||||||
|
|
||||||
await knex.schema.alterTable(TableName.CertificateTemplateEstConfig, (t) => {
|
await knex.schema.alterTable(TableName.CertificateTemplateEstConfig, (t) => {
|
||||||
if (hasDisableBootstrapCertValidationCol) {
|
if (hasDisableBootstrapCertValidationCol) {
|
||||||
t.dropColumn("disableBootstrapCertValidation");
|
t.dropColumn("disableBootstrapCertValidation");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hasCaChainCol) {
|
|
||||||
t.binary("encryptedCaChain").notNullable().alter();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user