Fix: Add missing FK for monitor-tls-info table

pull/4632/head
Nelson Chan 1 month ago
parent d88e7702b9
commit 8e37bd78fe
No known key found for this signature in database

@ -318,7 +318,10 @@ async function createTables() {
// monitor_tls_info
await knex.schema.createTable("monitor_tls_info", (table) => {
table.increments("id");
table.integer("monitor_id").unsigned().notNullable(); //TODO: no fk ?
table.integer("monitor_id").unsigned().notNullable()
.references("id").inTable("monitor")
.onDelete("CASCADE")
.onUpdate("CASCADE");
table.text("info_json");
});

Loading…
Cancel
Save