mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 06:35:21 +00:00
misc: migrated json filters to new op
This commit is contained in:
@@ -8,8 +8,14 @@ export async function up(knex: Knex): Promise<void> {
|
||||
`CREATE INDEX "audit_logs_actorMetadata_idx" ON ${TableName.AuditLog} USING gin("actorMetadata" jsonb_path_ops)`
|
||||
);
|
||||
}
|
||||
if (await knex.schema.hasColumn(TableName.AuditLog, "eventMetadata")) {
|
||||
await knex.raw(
|
||||
`CREATE INDEX "audit_logs_eventMetadata_idx" ON ${TableName.AuditLog} USING gin("eventMetadata" jsonb_path_ops)`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export async function down(knex: Knex): Promise<void> {
|
||||
await knex.raw(`DROP INDEX IF EXISTS "audit_logs_actorMetadata_idx"`);
|
||||
await knex.raw(`DROP INDEX IF EXISTS "audit_logs_eventMetadata_idx"`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user