Fossil SCM

Make sure the synclog table exists when running the synclog command.

drh 2021-12-20 13:43 synclog
Commit ce5802534c9635a75dafc7b5b933219abfcb7f9336f535845666a33feea8fea5
1 file changed +1
+1
--- src/sync.c
+++ src/sync.c
@@ -792,10 +792,11 @@
792792
void synclog_cmd(void){
793793
Stmt q;
794794
int cnt;
795795
const int nIndent = 2;
796796
db_find_and_open_repository(0,0);
797
+ schema_synclog();
797798
db_prepare(&q,
798799
"WITH allpull(xfrom,xto,xtime) AS MATERIALIZED (\n"
799800
" SELECT sfrom, sto, max(stime) FROM synclog GROUP BY 1\n"
800801
"),\n"
801802
"pull(level, url, mtime, ex) AS (\n"
802803
--- src/sync.c
+++ src/sync.c
@@ -792,10 +792,11 @@
792 void synclog_cmd(void){
793 Stmt q;
794 int cnt;
795 const int nIndent = 2;
796 db_find_and_open_repository(0,0);
 
797 db_prepare(&q,
798 "WITH allpull(xfrom,xto,xtime) AS MATERIALIZED (\n"
799 " SELECT sfrom, sto, max(stime) FROM synclog GROUP BY 1\n"
800 "),\n"
801 "pull(level, url, mtime, ex) AS (\n"
802
--- src/sync.c
+++ src/sync.c
@@ -792,10 +792,11 @@
792 void synclog_cmd(void){
793 Stmt q;
794 int cnt;
795 const int nIndent = 2;
796 db_find_and_open_repository(0,0);
797 schema_synclog();
798 db_prepare(&q,
799 "WITH allpull(xfrom,xto,xtime) AS MATERIALIZED (\n"
800 " SELECT sfrom, sto, max(stime) FROM synclog GROUP BY 1\n"
801 "),\n"
802 "pull(level, url, mtime, ex) AS (\n"
803

Keyboard Shortcuts

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