Fossil

Check-in [16a6dfefd1]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Update the "scrub" command to drop the accesslog table when the --verily option is used.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 16a6dfefd1f4515002b659cb38455a5ba30ea3b6
User & Date: drh 2011-10-10 13:19:53.013
Context
2011-10-10
19:33
Fix a C++ comment in sha1.c. Fix a help text typo. ... (check-in: a6f3dd1ce7 user: drh tags: trunk)
13:19
Update the "scrub" command to drop the accesslog table when the --verily option is used. ... (check-in: 16a6dfefd1 user: drh tags: trunk)
13:05
Additional formatting fixes: shorten lines to 80 characters or less. ... (check-in: c1d78e0556 user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/rebuild.c.
784
785
786
787
788
789
790

791
792
793
794
795
796
797
      "DELETE FROM config WHERE name GLOB 'skin:*';"
      "DELETE FROM config WHERE name GLOB 'subrepo:*';"
    );
    if( bVerily ){
      db_multi_exec(
        "DELETE FROM concealed;"
        "UPDATE rcvfrom SET ipaddr='unknown';"

        "UPDATE user SET photo=NULL, info='';"
      );
    }
  }
  if( !bNeedRebuild ){
    db_end_transaction(0);
    db_multi_exec("VACUUM;");







>







784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
      "DELETE FROM config WHERE name GLOB 'skin:*';"
      "DELETE FROM config WHERE name GLOB 'subrepo:*';"
    );
    if( bVerily ){
      db_multi_exec(
        "DELETE FROM concealed;"
        "UPDATE rcvfrom SET ipaddr='unknown';"
        "DROP TABLE IF EXISTS accesslog;"
        "UPDATE user SET photo=NULL, info='';"
      );
    }
  }
  if( !bNeedRebuild ){
    db_end_transaction(0);
    db_multi_exec("VACUUM;");