Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Refactor how the IF NOT EXISTS check is performed on the repository.admin_log table, per request from drh. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
2da6010b7cdd12aeccaf5fea268a36d3 |
| User & Date: | stephan 2023-01-26 01:46:56.706 |
Context
|
2023-01-27
| ||
| 15:40 | Update the built-in SQLite to the latest 3.41.0 alpha, for testing of SQLite. check-in: 0f30113b3b user: drh tags: trunk | |
|
2023-01-26
| ||
| 01:46 | Refactor how the IF NOT EXISTS check is performed on the repository.admin_log table, per request from drh. check-in: 2da6010b7c user: stephan tags: trunk | |
|
2023-01-25
| ||
| 13:59 | More updates f() to f(void). check-in: 46ddf0e80b user: danield tags: trunk | |
Changes
Changes to src/db.c.
| ︙ | ︙ | |||
4915 4916 4917 4918 4919 4920 4921 |
/*
** Make sure the adminlog table exists. Create it if it does not
*/
void create_admin_log_table(void){
static int once = 0;
if( once ) return;
| > | | | | | | | | | | > | 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 |
/*
** Make sure the adminlog table exists. Create it if it does not
*/
void create_admin_log_table(void){
static int once = 0;
if( once ) return;
if( !db_table_exists("repository","admin_log") ){
once = 1;
db_multi_exec(
"CREATE TABLE repository.admin_log(\n"
" id INTEGER PRIMARY KEY,\n"
" time INTEGER, -- Seconds since 1970\n"
" page TEXT, -- path of page\n"
" who TEXT, -- User who made the change\n"
" what TEXT -- What changed\n"
")"
);
}
}
/*
** Write a message into the admin_event table, if admin logging is
** enabled via the admin-log configuration option.
*/
void admin_log(const char *zFormat, ...){
|
| ︙ | ︙ |