changed: db: table item: url_subject into url

changed: item.url_subject into item.url
changed: a new table: content
         with: id, subject, content, content_type
         (those from the item table)
         it helps to create hard links


git-svn-id: svn://ttmath.org/publicrep/cmslu/trunk@466 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2008-12-14 05:28:28 +00:00
parent 023faa66fc
commit 86f28faf8d
10 changed files with 389 additions and 165 deletions

View File

@@ -19,9 +19,19 @@ struct Item
{
long id;
long user_id;
long group_id;
int privileges;
std::string subject;
std::string content;
std::string url_subject;
std::string url;
int content_type;
enum Type
{
@@ -41,6 +51,9 @@ long parent_id;
long default_item;
// used by the database
long content_id;
Item()
{
@@ -52,13 +65,22 @@ Item()
void Clear()
{
id = -1;
user_id = -1;
group_id = -1;
privileges = 0;
subject.clear();
content.clear();
url_subject.clear();
url.clear();
content_type = 0;
type = none;
parent_id = -1;
default_item = -1;
content_id = -1;
}