mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-19 17:32:37 +00:00
* feat: add fromDate in reminders * feat: update reminder form * fix: lint * chore: generate schema * fix: reminder logic * fix: update ui * fix: pr change --------- Co-authored-by: sidwebworks <[email protected]>
20 lines
566 B
TypeScript
20 lines
566 B
TypeScript
import { Knex } from "knex";
|
|
|
|
import { TableName } from "../schemas";
|
|
|
|
export async function up(knex: Knex): Promise<void> {
|
|
if (!(await knex.schema.hasColumn(TableName.Reminder, "fromDate"))) {
|
|
await knex.schema.alterTable(TableName.Reminder, (t) => {
|
|
t.timestamp("fromDate", { useTz: true }).nullable();
|
|
});
|
|
}
|
|
}
|
|
|
|
export async function down(knex: Knex): Promise<void> {
|
|
if (await knex.schema.hasColumn(TableName.Reminder, "fromDate")) {
|
|
await knex.schema.alterTable(TableName.Reminder, (t) => {
|
|
t.dropColumn("fromDate");
|
|
});
|
|
}
|
|
}
|