use cron instead of interval

This commit is contained in:
Fendy Heryanto
2026-01-20 11:19:40 +00:00
parent f603c0ac12
commit fc3c6456f9

View File

@@ -5,7 +5,7 @@ const up = async (knex: Knex) => {
await knex.schema.alterTable(MetaTable.AUTOMATIONS, (table) => {
table.boolean('wf_is_polling').defaultTo(false);
table.boolean('wf_is_polling_heartbeat').defaultTo(false);
table.integer('wf_polling_interval');
table.string('wf_polling_cron');
table.bigint('wf_next_polling_at');
});
};
@@ -14,7 +14,7 @@ const down = async (knex: Knex) => {
await knex.schema.alterTable(MetaTable.AUTOMATIONS, (table) => {
table.dropColumn('wf_is_polling');
table.dropColumn('wf_is_polling_heartbeat');
table.dropColumn('wf_polling_interval');
table.dropColumn('wf_polling_cron');
table.dropColumn('wf_next_polling_at');
});
};