X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=doc%2Fdb-backend.txt;h=10774509d8b95fcca5009015ada1cb15b2d4ac26;hb=491187bd3f0d193f5983378a78640cb48005edfd;hp=1e12922e834c63fe7698b9ab27ea84d5fe14b44b;hpb=7ac2b3722ba3bfeb5de6efcd94dd97c411607fd8;p=squirrelmail.git diff --git a/doc/db-backend.txt b/doc/db-backend.txt index 1e12922e..10774509 100644 --- a/doc/db-backend.txt +++ b/doc/db-backend.txt @@ -73,7 +73,8 @@ Next, edit your configuration so that the address book DSN (Data Source Name) is specified, this can be done using either conf.pl or via the administration plugin. The DSN should look something like: - mysql://squirreluser:sqpassword@localhost/squirrelmail + mysql://squirreluser:sqpassword@localhost/squirrelmail or + pgsql://squirreluser:sqpassword@localhost/squirrelmail From now on all users' personal addressbooks will be stored in a database. @@ -97,21 +98,21 @@ The table structure should be similar to this (for MySQL): and for PostgreSQL: CREATE TABLE "userprefs" ( - "user" varchar(128) NOT NULL, + "username" varchar(128) NOT NULL, "prefkey" varchar(64) NOT NULL, "prefval" text, - CONSTRAINT "userprefs_pkey" PRIMARY KEY ("prefkey", "user") + CONSTRAINT "userprefs_pkey" PRIMARY KEY ("prefkey", "username") ); Next, edit your configuration so that the preferences DSN (Data Source Name) is specified, this can be done using either conf.pl or via the administration plugin. The DSN should look something like: - mysql://squirreluser:sqpassword@localhost/squirrelmail + mysql://squirreluser:sqpassword@localhost/squirrelmail or + pgsql://squirreluser:sqpassword@localhost/squirrelmail From now on all users' personal preferences will be stored in a database. Default preferences can be set by altering the $default array in db_prefs.php. -