Skip to content
This repository was archived by the owner on Jul 11, 2021. It is now read-only.

Commit a45fe4f

Browse files
author
Simone Mosciatti
committed
enable by default foreign key constrait
1 parent b3fea8f commit a45fe4f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,9 @@ extern "C" fn CreateDB(ctx: *mut r::ffi::RedisModuleCtx,
455455
"setup".to_owned(),
456456
"path".to_owned(),
457457
path,
458-
)
458+
).and_then(|_| {
459+
r::enable_foreign_key(&rc)
460+
})
459461
}) {
460462
Err(e) => e.reply(ctx),
461463
Ok(()) => {

0 commit comments

Comments
 (0)