summaryrefslogtreecommitdiffstats
path: root/db/knex_migrations/2023-09-29-0000-heartbeat-retires.js
diff options
context:
space:
mode:
Diffstat (limited to 'db/knex_migrations/2023-09-29-0000-heartbeat-retires.js')
-rw-r--r--db/knex_migrations/2023-09-29-0000-heartbeat-retires.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/db/knex_migrations/2023-09-29-0000-heartbeat-retires.js b/db/knex_migrations/2023-09-29-0000-heartbeat-retires.js
new file mode 100644
index 0000000..a6b9c7b
--- /dev/null
+++ b/db/knex_migrations/2023-09-29-0000-heartbeat-retires.js
@@ -0,0 +1,15 @@
+exports.up = function (knex) {
+ // Add new column heartbeat.retries
+ return knex.schema
+ .alterTable("heartbeat", function (table) {
+ table.integer("retries").notNullable().defaultTo(0);
+ });
+
+};
+
+exports.down = function (knex) {
+ return knex.schema
+ .alterTable("heartbeat", function (table) {
+ table.dropColumn("retries");
+ });
+};