mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-10 12:28:56 +00:00
16 lines
383 B
TypeScript
16 lines
383 B
TypeScript
import { Knex } from "knex";
|
|
|
|
import { TableName } from "../schemas";
|
|
|
|
export async function up(knex: Knex): Promise<void> {
|
|
await knex.schema.alterTable(TableName.Users, (t) => {
|
|
t.boolean("isEmailVerified");
|
|
});
|
|
}
|
|
|
|
export async function down(knex: Knex): Promise<void> {
|
|
await knex.schema.alterTable(TableName.Users, (t) => {
|
|
t.dropColumn("isEmailVerified");
|
|
});
|
|
}
|