mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 11:27:47 +00:00
misc: addressed failing github actions
This commit is contained in:
@@ -36,12 +36,6 @@ export async function up(knex: Knex): Promise<void> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function down(knex: Knex): Promise<void> {
|
export async function down(knex: Knex): Promise<void> {
|
||||||
const hasCertificateTemplateTable = await knex.schema.hasTable(TableName.CertificateTemplate);
|
|
||||||
if (hasCertificateTemplateTable) {
|
|
||||||
await knex.schema.dropTable(TableName.CertificateTemplate);
|
|
||||||
await dropOnUpdateTrigger(knex, TableName.CertificateTemplate);
|
|
||||||
}
|
|
||||||
|
|
||||||
const doesCertificateTableHaveTemplateId = await knex.schema.hasColumn(
|
const doesCertificateTableHaveTemplateId = await knex.schema.hasColumn(
|
||||||
TableName.Certificate,
|
TableName.Certificate,
|
||||||
"certificateTemplateId"
|
"certificateTemplateId"
|
||||||
@@ -52,4 +46,10 @@ export async function down(knex: Knex): Promise<void> {
|
|||||||
t.dropColumn("certificateTemplateId");
|
t.dropColumn("certificateTemplateId");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const hasCertificateTemplateTable = await knex.schema.hasTable(TableName.CertificateTemplate);
|
||||||
|
if (hasCertificateTemplateTable) {
|
||||||
|
await knex.schema.dropTable(TableName.CertificateTemplate);
|
||||||
|
await dropOnUpdateTrigger(knex, TableName.CertificateTemplate);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1218,7 +1218,7 @@ export const certificateAuthorityServiceFactory = ({
|
|||||||
await certificateDAL.transaction(async (tx) => {
|
await certificateDAL.transaction(async (tx) => {
|
||||||
const cert = await certificateDAL.create(
|
const cert = await certificateDAL.create(
|
||||||
{
|
{
|
||||||
caId: ca.id,
|
caId: (ca as TCertificateAuthorities).id,
|
||||||
caCertId: caCert.id,
|
caCertId: caCert.id,
|
||||||
certificateTemplateId: certificateTemplate?.id,
|
certificateTemplateId: certificateTemplate?.id,
|
||||||
status: CertStatus.ACTIVE,
|
status: CertStatus.ACTIVE,
|
||||||
@@ -1474,7 +1474,7 @@ export const certificateAuthorityServiceFactory = ({
|
|||||||
await certificateDAL.transaction(async (tx) => {
|
await certificateDAL.transaction(async (tx) => {
|
||||||
const cert = await certificateDAL.create(
|
const cert = await certificateDAL.create(
|
||||||
{
|
{
|
||||||
caId: ca.id,
|
caId: (ca as TCertificateAuthorities).id,
|
||||||
caCertId: caCert.id,
|
caCertId: caCert.id,
|
||||||
certificateTemplateId: certificateTemplate?.id,
|
certificateTemplateId: certificateTemplate?.id,
|
||||||
status: CertStatus.ACTIVE,
|
status: CertStatus.ACTIVE,
|
||||||
|
|||||||
Reference in New Issue
Block a user