From: drh <> Date: Thu, 15 May 2025 18:50:19 +0000 (+0000) Subject: Add the --enablefk option to the "changeset apply" command of the X-Git-Tag: major-release~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cecf833325535a91edc9b4ceb57ffe6a438c4b53;p=thirdparty%2Fsqlite.git Add the --enablefk option to the "changeset apply" command of the changeset program. FossilOrigin-Name: e98d46d436f8d251ae0da5ee85fd856aca3b57cd48d1be31fa6ca88fe72cad00 --- diff --git a/ext/session/changeset.c b/ext/session/changeset.c index 7d1ae28297..fe5c4dc5e7 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