From cecf833325535a91edc9b4ceb57ffe6a438c4b53 Mon Sep 17 00:00:00 2001 From: drh <> Date: Thu, 15 May 2025 18:50:19 +0000 Subject: Add the --enablefk option to the "changeset apply" command of the changeset program. FossilOrigin-Name: e98d46d436f8d251ae0da5ee85fd856aca3b57cd48d1be31fa6ca88fe72cad00 --- ext/session/changeset.c | 19 ++++++++++++++----- manifest | 12 ++++++------ manifest.uuid | 2 +- 3 files changed, 21 insertions(+), 12 deletions(-) diff --git a/ext/session/changeset.c b/ext/session/changeset.c index 7d1ae2829..fe5c4dc5e 100644 --- a/ext/session/changeset.c +++ b/ext/session/changeset.c @@ -30,10 +30,11 @@ static void usage(const char *argv0){ "COMMANDs:\n" " apply DB [OPTIONS] Apply the changeset to database file DB. OPTIONS:\n" " -n|--dryrun Test run. Don't apply changes\n" - " --nosavepoint\n" - " --invert\n" - " --ignorenoop\n" - " --fknoaction\n" + " --enablefk Enable FOREIGN KEY support\n" + " --nosavepoint \\\n" + " --invert \\___ Flags passed into\n" + " --ignorenoop / changeset_apply_v2()\n" + " --fknoaction /\n" " concat FILE2 OUT Concatenate FILENAME and FILE2 into OUT\n" " dump Show the complete content of the changeset\n" " invert OUT Write an inverted changeset into file OUT\n" @@ -166,7 +167,7 @@ static int conflictCallback( case SQLITE_DELETE: zOp = "DELETE from"; break; } printf("%s conflict on %s table %s with primary key", zType, zOp, zTab); - for(i=0; i