mirror of
https://github.com/Infisical/infisical.git
synced 2025-03-29 22:02:57 +00:00
add ignore type script
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
import { Knex } from "knex";
|
||||
|
||||
import { TableName } from "../schemas";
|
||||
@ -8,15 +10,12 @@ export async function up(knex: Knex): Promise<void> {
|
||||
await knex.schema.alterTable(TableName.SuperAdmin, (t) => {
|
||||
t.uuid("instanceId").notNullable().defaultTo(knex.fn.uuid());
|
||||
});
|
||||
|
||||
// this is updated to avoid race condition on replication
|
||||
/* eslint-disable */
|
||||
// eslint-disable-next-line
|
||||
await knex(TableName.SuperAdmin)
|
||||
.update({ id: ADMIN_CONFIG_UUID })
|
||||
.whereNotNull("id")
|
||||
.andWhere("id", "<>", ADMIN_CONFIG_UUID)
|
||||
.limit(1);
|
||||
/* eslint-enable */
|
||||
}
|
||||
|
||||
export async function down(knex: Knex): Promise<void> {
|
||||
|
Reference in New Issue
Block a user