mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 19:28:16 +00:00
Merge pull request #3888 from Infisical/revert-3885-misc/add-indices-for-referencing-columns-in-identity-access-token
Revert "misc: add indices for referencing columns in identity access token"
This commit is contained in:
@@ -1,29 +0,0 @@
|
|||||||
import { Knex } from "knex";
|
|
||||||
|
|
||||||
import { TableName } from "../schemas";
|
|
||||||
|
|
||||||
export async function up(knex: Knex): Promise<void> {
|
|
||||||
await knex.raw(`
|
|
||||||
CREATE INDEX CONCURRENTLY IF NOT EXISTS ${TableName.IdentityAccessToken}_identityid_index
|
|
||||||
ON ${TableName.IdentityAccessToken} ("identityId")
|
|
||||||
`);
|
|
||||||
|
|
||||||
await knex.raw(`
|
|
||||||
CREATE INDEX CONCURRENTLY IF NOT EXISTS ${TableName.IdentityAccessToken}_identityuaclientsecretid_index
|
|
||||||
ON ${TableName.IdentityAccessToken} ("identityUAClientSecretId")
|
|
||||||
`);
|
|
||||||
}
|
|
||||||
|
|
||||||
export async function down(knex: Knex): Promise<void> {
|
|
||||||
await knex.raw(`
|
|
||||||
DROP INDEX IF EXISTS ${TableName.IdentityAccessToken}_identityid_index
|
|
||||||
`);
|
|
||||||
|
|
||||||
await knex.raw(`
|
|
||||||
DROP INDEX IF EXISTS ${TableName.IdentityAccessToken}_identityuaclientsecretid_index
|
|
||||||
`);
|
|
||||||
}
|
|
||||||
|
|
||||||
const config = { transaction: false };
|
|
||||||
|
|
||||||
export { config };
|
|
||||||
Reference in New Issue
Block a user