mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] sqlite: enable foreign keys by default
@ 2020-02-15 12:52 Bruno Thomsen
  2020-02-21  7:23 ` Michael Olbrich
  0 siblings, 1 reply; 4+ messages in thread
From: Bruno Thomsen @ 2020-02-15 12:52 UTC (permalink / raw)
  To: ptxdist; +Cc: Bruno Thomsen, bth

Support for foreign_keys pragma was already enabled at
compile-time, but it was not enabled by default on new
database connections. It's still possible to turn off
enforcement at runtime.
This makes it easier to work on databases that uses
this feature without causing them to end up in an
invalid state.

Signed-off-by: Bruno Thomsen <bruno.thomsen@gmail.com>
---
 rules/sqlite.make | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rules/sqlite.make b/rules/sqlite.make
index b23c2d377..e0b26e3cb 100644
--- a/rules/sqlite.make
+++ b/rules/sqlite.make
@@ -42,6 +42,7 @@ SQLITE_CONF_ENV := \
 	$(CROSS_ENV) \
 	ac_cv_header_zlib_h=no \
 	CPPFLAGS=" \
+	-DSQLITE_DEFAULT_FOREIGN_KEYS=1 \
 	-DSQLITE_ENABLE_COLUMN_METADATA=1 \
 	-DSQLITE_ENABLE_FTS3_PARENTHESIS=1 \
 	-DSQLITE_ENABLE_UNLOCK_NOTIFY=1 \
-- 
2.24.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-02-21 11:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-15 12:52 [ptxdist] [PATCH] sqlite: enable foreign keys by default Bruno Thomsen
2020-02-21  7:23 ` Michael Olbrich
2020-02-21 11:20   ` Bruno Thomsen
2020-02-21 11:41     ` Uwe Kleine-König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox