Fossil SCM
The configuration loader automatically creates the subscriber table if necessary. This fixes the "fossil clone" command for privileged users.
Commit
06586ef70f36afb7f2838cd4f0e9dc1ca778ce46a4a77c090424d67ac9b83fba
Parent
a8d220b9ff6deba…
1 file changed
+1
+1
| --- src/configure.c | ||
| +++ src/configure.c | ||
| @@ -421,10 +421,11 @@ | ||
| 421 | 421 | }else{ |
| 422 | 422 | blob_append_sql(&sql, "INSERT OR IGNORE INTO "); |
| 423 | 423 | } |
| 424 | 424 | blob_append_sql(&sql, "\"%w\"(\"%w\",mtime", |
| 425 | 425 | &zName[1], aType[ii].zPrimKey); |
| 426 | + if( fossil_stricmp(zName,"/subscriber") ) email_schema(0); | |
| 426 | 427 | for(jj=2; jj<nToken; jj+=2){ |
| 427 | 428 | blob_append_sql(&sql, ",\"%w\"", azToken[jj]); |
| 428 | 429 | } |
| 429 | 430 | blob_append_sql(&sql,") VALUES(%s,%s", |
| 430 | 431 | azToken[1] /*safe-for-%s*/, azToken[0]/*safe-for-%s*/); |
| 431 | 432 |
| --- src/configure.c | |
| +++ src/configure.c | |
| @@ -421,10 +421,11 @@ | |
| 421 | }else{ |
| 422 | blob_append_sql(&sql, "INSERT OR IGNORE INTO "); |
| 423 | } |
| 424 | blob_append_sql(&sql, "\"%w\"(\"%w\",mtime", |
| 425 | &zName[1], aType[ii].zPrimKey); |
| 426 | for(jj=2; jj<nToken; jj+=2){ |
| 427 | blob_append_sql(&sql, ",\"%w\"", azToken[jj]); |
| 428 | } |
| 429 | blob_append_sql(&sql,") VALUES(%s,%s", |
| 430 | azToken[1] /*safe-for-%s*/, azToken[0]/*safe-for-%s*/); |
| 431 |
| --- src/configure.c | |
| +++ src/configure.c | |
| @@ -421,10 +421,11 @@ | |
| 421 | }else{ |
| 422 | blob_append_sql(&sql, "INSERT OR IGNORE INTO "); |
| 423 | } |
| 424 | blob_append_sql(&sql, "\"%w\"(\"%w\",mtime", |
| 425 | &zName[1], aType[ii].zPrimKey); |
| 426 | if( fossil_stricmp(zName,"/subscriber") ) email_schema(0); |
| 427 | for(jj=2; jj<nToken; jj+=2){ |
| 428 | blob_append_sql(&sql, ",\"%w\"", azToken[jj]); |
| 429 | } |
| 430 | blob_append_sql(&sql,") VALUES(%s,%s", |
| 431 | azToken[1] /*safe-for-%s*/, azToken[0]/*safe-for-%s*/); |
| 432 |