Differences From:
File
src/db.c
part of check-in
[22552fb803]
- Extend the commit command so that specific files can be committed. There are still some problems with doing this after a merge.
by
dan on
2007-08-03 15:31:33.
[view]
To:
File
src/db.c
part of check-in
[f5e8b1d736]
- Merge in and correct the changes to the new repository initialization.
Also fix other misc bugs seen while testing.
by
drh on
2007-08-04 00:08:17.
[view]
@@ -665,8 +665,9 @@
db_open_config();
db_begin_transaction();
db_set("content-schema", CONTENT_SCHEMA);
db_set("aux-schema", AUX_SCHEMA);
+ db_set_int("authenticate-localhost", 0);
db_multi_exec(
"INSERT INTO config(name,value) VALUES('server-code', hex(randomblob(20)));"
"INSERT INTO config(name,value) VALUES('project-code',hex(randomblob(20)));"
);
@@ -674,13 +675,19 @@
if( zUser==0 ){
zUser = getenv("USER");
}
if( zUser==0 ){
- zUser = "anonymous";
+ zUser = "root";
}
db_multi_exec(
"INSERT INTO user(login, pw, cap, info)"
"VALUES(%Q,'','s','')", zUser
+ );
+ db_multi_exec(
+ "INSERT INTO user(login,pw,cap,info)"
+ " VALUES('anonymous','anonymous','hjkorw','Anon');"
+ "INSERT INTO user(login,pw,cap,info)"
+ " VALUES('nobody','','jor','Nobody');"
);
user_select();
blob_zero(&manifest);
blob_appendf(&manifest, "C initial\\sempty\\sbaseline\n");