2015-06-28 20:58:51 +00:00
|
|
|
<?php
|
2015-07-15 21:33:06 +00:00
|
|
|
/*! @file
|
|
|
|
|
|
|
|
@id $Id$
|
|
|
|
|
|
|
|
@see @ref usertable for the database schema
|
|
|
|
|
|
|
|
@page database Database
|
|
|
|
|
|
|
|
@tableofcontents
|
|
|
|
|
|
|
|
@section usertable User Table
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<caption>Table: user</caption>
|
|
|
|
<tr><th>Colum Name</th><th>SQL Type</th><th>Description</th></tr>
|
2015-11-04 15:48:54 +00:00
|
|
|
<tr><td>name</td><td>varchar(50), primary key</td><td>The user's name (pseudonym).</td></tr>
|
2015-07-15 21:33:06 +00:00
|
|
|
<tr><td>pubkey</td><td>text</td><td>The user's public key.</td></tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
*/
|
|
|
|
// 1 2 3 4 5 6 7 8
|
|
|
|
// 45678901234567890123456789012345678901234567890123456789012345678901234567890
|
|
|
|
|
2015-11-03 22:02:51 +00:00
|
|
|
require_once("opendb.php");
|
2015-06-28 20:58:51 +00:00
|
|
|
try {
|
2015-11-04 15:48:54 +00:00
|
|
|
$db->query('create table if not exists user (name varchar(50) not null primary key, pubkey text not null) character set utf8 engine=innodb;');
|
2015-06-28 20:58:51 +00:00
|
|
|
} catch (Exception $e) {
|
2015-11-03 22:02:51 +00:00
|
|
|
error('database error on server');
|
2015-06-28 20:58:51 +00:00
|
|
|
}
|
|
|
|
?>
|