mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-12 02:29:09 +00:00
20 lines
652 B
TypeScript
20 lines
652 B
TypeScript
import { Knex } from "knex";
|
|
|
|
import { TableName } from "@app/db/schemas";
|
|
|
|
export async function up(knex: Knex): Promise<void> {
|
|
if (await knex.schema.hasTable(TableName.SecretApprovalRequestSecretV2)) {
|
|
await knex.schema.alterTable(TableName.SecretApprovalRequestSecretV2, (t) => {
|
|
t.boolean("skipMultilineEncoding").alter();
|
|
});
|
|
}
|
|
}
|
|
|
|
export async function down(knex: Knex): Promise<void> {
|
|
if (await knex.schema.hasTable(TableName.SecretApprovalRequestSecretV2)) {
|
|
await knex.schema.alterTable(TableName.SecretApprovalRequestSecretV2, (t) => {
|
|
t.boolean("skipMultilineEncoding").defaultTo(false).alter();
|
|
});
|
|
}
|
|
}
|