Fossil SCM

Remove the synclog table when doing a "fossil scrub --verily".

drh 2021-12-19 18:22 synclog
Commit 94709e8ed24f09cebb62b75d0d01f142092d8d28ea38c5fb51fd2447d4d57599
1 file changed +3 -1
+3 -1
--- src/rebuild.c
+++ src/rebuild.c
@@ -392,13 +392,14 @@
392392
" WHERE type='table'"
393393
" AND name NOT IN ('admin_log', 'blob','delta','rcvfrom','user','alias',"
394394
"'config','shun','private','reportfmt',"
395395
"'concealed','accesslog','modreq',"
396396
"'purgeevent','purgeitem','unversioned',"
397
- "'subscriber','pending_alert','chat')"
397
+ "'subscriber','pending_alert','chat','synclog')"
398398
" AND name NOT GLOB 'sqlite_*'"
399399
" AND name NOT GLOB 'fx_*'"
400
+ " AND name NOT GLOB 'ftsidx_*'"
400401
);
401402
while( db_step(&q)==SQLITE_ROW ){
402403
blob_appendf(&sql, "DROP TABLE IF EXISTS \"%w\";\n", db_column_text(&q,0));
403404
}
404405
db_finalize(&q);
@@ -945,10 +946,11 @@
945946
"DROP TABLE IF EXISTS purgeevent;\n"
946947
"DROP TABLE IF EXISTS purgeitem;\n"
947948
"DROP TABLE IF EXISTS admin_log;\n"
948949
"DROP TABLE IF EXISTS vcache;\n"
949950
"DROP TABLE IF EXISTS chat;\n"
951
+ "DROP TABLE IF EXISTS synclog;\n"
950952
);
951953
}
952954
db_protect_pop();
953955
}
954956
if( !bNeedRebuild ){
955957
--- src/rebuild.c
+++ src/rebuild.c
@@ -392,13 +392,14 @@
392 " WHERE type='table'"
393 " AND name NOT IN ('admin_log', 'blob','delta','rcvfrom','user','alias',"
394 "'config','shun','private','reportfmt',"
395 "'concealed','accesslog','modreq',"
396 "'purgeevent','purgeitem','unversioned',"
397 "'subscriber','pending_alert','chat')"
398 " AND name NOT GLOB 'sqlite_*'"
399 " AND name NOT GLOB 'fx_*'"
 
400 );
401 while( db_step(&q)==SQLITE_ROW ){
402 blob_appendf(&sql, "DROP TABLE IF EXISTS \"%w\";\n", db_column_text(&q,0));
403 }
404 db_finalize(&q);
@@ -945,10 +946,11 @@
945 "DROP TABLE IF EXISTS purgeevent;\n"
946 "DROP TABLE IF EXISTS purgeitem;\n"
947 "DROP TABLE IF EXISTS admin_log;\n"
948 "DROP TABLE IF EXISTS vcache;\n"
949 "DROP TABLE IF EXISTS chat;\n"
 
950 );
951 }
952 db_protect_pop();
953 }
954 if( !bNeedRebuild ){
955
--- src/rebuild.c
+++ src/rebuild.c
@@ -392,13 +392,14 @@
392 " WHERE type='table'"
393 " AND name NOT IN ('admin_log', 'blob','delta','rcvfrom','user','alias',"
394 "'config','shun','private','reportfmt',"
395 "'concealed','accesslog','modreq',"
396 "'purgeevent','purgeitem','unversioned',"
397 "'subscriber','pending_alert','chat','synclog')"
398 " AND name NOT GLOB 'sqlite_*'"
399 " AND name NOT GLOB 'fx_*'"
400 " AND name NOT GLOB 'ftsidx_*'"
401 );
402 while( db_step(&q)==SQLITE_ROW ){
403 blob_appendf(&sql, "DROP TABLE IF EXISTS \"%w\";\n", db_column_text(&q,0));
404 }
405 db_finalize(&q);
@@ -945,10 +946,11 @@
946 "DROP TABLE IF EXISTS purgeevent;\n"
947 "DROP TABLE IF EXISTS purgeitem;\n"
948 "DROP TABLE IF EXISTS admin_log;\n"
949 "DROP TABLE IF EXISTS vcache;\n"
950 "DROP TABLE IF EXISTS chat;\n"
951 "DROP TABLE IF EXISTS synclog;\n"
952 );
953 }
954 db_protect_pop();
955 }
956 if( !bNeedRebuild ){
957

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button