Fossil SCM

Fix a problem introduced by [06586ef70f]: on cloning, only create the tables for the email notification system if any configuration data from the 'Email subscribers' group is received.

florian 2018-12-21 08:01 trunk
Commit fca6626269f703dfff519d5ca0c74d0bd1cd28474e187e19d378a1d3a1c8fb77
1 file changed +1 -1
+1 -1
--- src/configure.c
+++ src/configure.c
@@ -419,11 +419,11 @@
419419
}else{
420420
blob_append_sql(&sql, "INSERT OR IGNORE INTO ");
421421
}
422422
blob_append_sql(&sql, "\"%w\"(\"%w\",mtime",
423423
&zName[1], aType[ii].zPrimKey);
424
- if( fossil_stricmp(zName,"/subscriber") ) alert_schema(0);
424
+ if( fossil_stricmp(zName,"/subscriber")==0 ) alert_schema(0);
425425
for(jj=2; jj<nToken; jj+=2){
426426
blob_append_sql(&sql, ",\"%w\"", azToken[jj]);
427427
}
428428
blob_append_sql(&sql,") VALUES(%s,%s",
429429
azToken[1] /*safe-for-%s*/, azToken[0]/*safe-for-%s*/);
430430
--- src/configure.c
+++ src/configure.c
@@ -419,11 +419,11 @@
419 }else{
420 blob_append_sql(&sql, "INSERT OR IGNORE INTO ");
421 }
422 blob_append_sql(&sql, "\"%w\"(\"%w\",mtime",
423 &zName[1], aType[ii].zPrimKey);
424 if( fossil_stricmp(zName,"/subscriber") ) alert_schema(0);
425 for(jj=2; jj<nToken; jj+=2){
426 blob_append_sql(&sql, ",\"%w\"", azToken[jj]);
427 }
428 blob_append_sql(&sql,") VALUES(%s,%s",
429 azToken[1] /*safe-for-%s*/, azToken[0]/*safe-for-%s*/);
430
--- src/configure.c
+++ src/configure.c
@@ -419,11 +419,11 @@
419 }else{
420 blob_append_sql(&sql, "INSERT OR IGNORE INTO ");
421 }
422 blob_append_sql(&sql, "\"%w\"(\"%w\",mtime",
423 &zName[1], aType[ii].zPrimKey);
424 if( fossil_stricmp(zName,"/subscriber")==0 ) alert_schema(0);
425 for(jj=2; jj<nToken; jj+=2){
426 blob_append_sql(&sql, ",\"%w\"", azToken[jj]);
427 }
428 blob_append_sql(&sql,") VALUES(%s,%s",
429 azToken[1] /*safe-for-%s*/, azToken[0]/*safe-for-%s*/);
430

Keyboard Shortcuts

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