mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 04:27:29 +00:00
skip verify
This commit is contained in:
@@ -8,11 +8,11 @@ export async function up(knex: Knex): Promise<void> {
|
|||||||
await knex.schema.alterTable(TableName.SuperAdmin, (t) => {
|
await knex.schema.alterTable(TableName.SuperAdmin, (t) => {
|
||||||
t.uuid("instanceId").notNullable().defaultTo(knex.fn.uuid());
|
t.uuid("instanceId").notNullable().defaultTo(knex.fn.uuid());
|
||||||
});
|
});
|
||||||
|
|
||||||
// this is updated to avoid race condition on replication
|
// this is updated to avoid race condition on replication
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
await knex(TableName.SuperAdmin)
|
await knex(TableName.SuperAdmin).update({ id: ADMIN_CONFIG_UUID })
|
||||||
.update({ id: ADMIN_CONFIG_UUID })
|
|
||||||
.whereNotNull("id")
|
.whereNotNull("id")
|
||||||
.andWhere("id", "<>", ADMIN_CONFIG_UUID)
|
.andWhere("id", "<>", ADMIN_CONFIG_UUID)
|
||||||
.limit(1);
|
.limit(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user