Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

use cron instead of interval

Fendy Heryantofc3c6456f94b
diff --git a/packages/nocodb/src/meta/migrations/v0/nc_014_automation_is_polling.ts b/packages/nocodb/src/meta/migrations/v0/nc_014_automation_is_polling.ts
index ab72b9be23..4d8efd93f6 100644
--- a/packages/nocodb/src/meta/migrations/v0/nc_014_automation_is_polling.ts
+++ b/packages/nocodb/src/meta/migrations/v0/nc_014_automation_is_polling.ts
@@ -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');
});
};