mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 01:52:22 +00:00
Add back hashed hex for secret sharing
This commit is contained in:
@@ -17,13 +17,6 @@ export async function up(knex: Knex): Promise<void> {
|
||||
t.timestamp("lastViewedAt").nullable();
|
||||
});
|
||||
}
|
||||
|
||||
const doesHashedHexExist = await knex.schema.hasColumn(TableName.SecretSharing, "hashedHex");
|
||||
if (doesHashedHexExist) {
|
||||
await knex.schema.alterTable(TableName.SecretSharing, (t) => {
|
||||
t.dropColumn("hashedHex");
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ export const SecretSharingSchema = z.object({
|
||||
encryptedValue: z.string(),
|
||||
iv: z.string(),
|
||||
tag: z.string(),
|
||||
hashedHex: z.string(),
|
||||
expiresAt: z.date(),
|
||||
userId: z.string().uuid().nullable().optional(),
|
||||
orgId: z.string().uuid().nullable().optional(),
|
||||
|
||||
Reference in New Issue
Block a user