set cascade in trusted ip for project id

This commit is contained in:
Maidul Islam
2024-01-27 12:40:36 +05:30
committed by Akhil Mohan
parent 83bff9ae14
commit 15fc4fd609
@@ -13,7 +13,7 @@ export async function up(knex: Knex): Promise<void> {
t.boolean("isActive").defaultTo(true); t.boolean("isActive").defaultTo(true);
t.string("comment"); t.string("comment");
t.string("projectId").notNullable(); t.string("projectId").notNullable();
t.foreign("projectId").references("id").inTable(TableName.Project); t.foreign("projectId").references("id").inTable(TableName.Project).onDelete("CASCADE");
t.timestamps(true, true, true); t.timestamps(true, true, true);
}); });
} }