Fossil SCM
Make sure the synclog table exists when running the synclog command.
Commit
ce5802534c9635a75dafc7b5b933219abfcb7f9336f535845666a33feea8fea5
Parent
59bd2ec738a381c…
1 file changed
+1
+1
| --- src/sync.c | ||
| +++ src/sync.c | ||
| @@ -792,10 +792,11 @@ | ||
| 792 | 792 | void synclog_cmd(void){ |
| 793 | 793 | Stmt q; |
| 794 | 794 | int cnt; |
| 795 | 795 | const int nIndent = 2; |
| 796 | 796 | db_find_and_open_repository(0,0); |
| 797 | + schema_synclog(); | |
| 797 | 798 | db_prepare(&q, |
| 798 | 799 | "WITH allpull(xfrom,xto,xtime) AS MATERIALIZED (\n" |
| 799 | 800 | " SELECT sfrom, sto, max(stime) FROM synclog GROUP BY 1\n" |
| 800 | 801 | "),\n" |
| 801 | 802 | "pull(level, url, mtime, ex) AS (\n" |
| 802 | 803 |
| --- 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 |