mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-09 16:28:19 +00:00
patch super user migration
This commit is contained in:
@@ -11,7 +11,11 @@ export async function up(knex: Knex): Promise<void> {
|
|||||||
// 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).update({ id: ADMIN_CONFIG_UUID }).whereNotNull("id").limit(1);
|
await knex(TableName.SuperAdmin)
|
||||||
|
.update({ id: ADMIN_CONFIG_UUID })
|
||||||
|
.whereNotNull("id")
|
||||||
|
.andWhere("id", "<>", ADMIN_CONFIG_UUID)
|
||||||
|
.limit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function down(knex: Knex): Promise<void> {
|
export async function down(knex: Knex): Promise<void> {
|
||||||
|
|||||||
Reference in New Issue
Block a user