Fossil SCM
Make sure the 'modreq' table is created, if necessary, in the repository database.
Commit
12b463ca05d54958f51e776167c672c7803e8940
Parent
d81c42d9eda6bc8…
1 file changed
+2
-2
+2
-2
| --- src/moderate.c | ||
| +++ src/moderate.c | ||
| @@ -26,15 +26,15 @@ | ||
| 26 | 26 | ** Create a table to represent pending moderation requests, if the |
| 27 | 27 | ** table does not already exist. |
| 28 | 28 | */ |
| 29 | 29 | void moderation_table_create(void){ |
| 30 | 30 | db_multi_exec( |
| 31 | - "CREATE TABLE IF NOT EXISTS modreq(\n" | |
| 31 | + "CREATE TABLE IF NOT EXISTS %s.modreq(\n" | |
| 32 | 32 | " objid INTEGER PRIMARY KEY,\n" /* Record pending approval */ |
| 33 | 33 | " attachRid INT,\n" /* Object attached */ |
| 34 | 34 | " tktid TEXT\n" /* Associated ticket id */ |
| 35 | - ");\n" | |
| 35 | + ");\n", db_name("repository") | |
| 36 | 36 | ); |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | /* |
| 40 | 40 | ** Return TRUE if the modreq table exists |
| 41 | 41 |
| --- src/moderate.c | |
| +++ src/moderate.c | |
| @@ -26,15 +26,15 @@ | |
| 26 | ** Create a table to represent pending moderation requests, if the |
| 27 | ** table does not already exist. |
| 28 | */ |
| 29 | void moderation_table_create(void){ |
| 30 | db_multi_exec( |
| 31 | "CREATE TABLE IF NOT EXISTS modreq(\n" |
| 32 | " objid INTEGER PRIMARY KEY,\n" /* Record pending approval */ |
| 33 | " attachRid INT,\n" /* Object attached */ |
| 34 | " tktid TEXT\n" /* Associated ticket id */ |
| 35 | ");\n" |
| 36 | ); |
| 37 | } |
| 38 | |
| 39 | /* |
| 40 | ** Return TRUE if the modreq table exists |
| 41 |
| --- src/moderate.c | |
| +++ src/moderate.c | |
| @@ -26,15 +26,15 @@ | |
| 26 | ** Create a table to represent pending moderation requests, if the |
| 27 | ** table does not already exist. |
| 28 | */ |
| 29 | void moderation_table_create(void){ |
| 30 | db_multi_exec( |
| 31 | "CREATE TABLE IF NOT EXISTS %s.modreq(\n" |
| 32 | " objid INTEGER PRIMARY KEY,\n" /* Record pending approval */ |
| 33 | " attachRid INT,\n" /* Object attached */ |
| 34 | " tktid TEXT\n" /* Associated ticket id */ |
| 35 | ");\n", db_name("repository") |
| 36 | ); |
| 37 | } |
| 38 | |
| 39 | /* |
| 40 | ** Return TRUE if the modreq table exists |
| 41 |