started merging uss and forum into one beast

This commit is contained in:
JT Smith 2005-02-10 02:50:47 +00:00
parent 45157d246b
commit df7f09c722
9 changed files with 3444 additions and 0 deletions

View file

@ -98,6 +98,7 @@ WebGUI::SQL->write("alter table Product_related add assetId varchar(22) not null
WebGUI::SQL->write("alter table Product_related add relatedAssetId varchar(22) not null");
WebGUI::SQL->write("alter table Product_related add primary key (assetId,relatedAssetId)");
WebGUI::SQL->write("alter table WobjectProxy add column description mediumtext");
WebGUI::SQL->write("alter table forum add assetId varchar(22) not null");
@ -204,6 +205,8 @@ WebGUI::SQL->write("alter table Product_related drop column wobjectId");
WebGUI::SQL->write("alter table Product_specification drop column wobjectId");
WebGUI::SQL->write("alter table Product_related drop column RelatedWobjectId");
WebGUI::SQL->write("alter table Product_accessory drop column AccessoryWobjectId");
WebGUI::SQL->write("alter table forum drop column forumId");
WebGUI::SQL->write("alter table forum drop column groupToView");
# start migrating non-wobject stuff into assets

View file

@ -247,5 +247,81 @@ drop table pageStatistics;
delete from settings where name='snippetPreviewLength';
delete from incrementer where incrementerId in ('collateralFolderId','themeId','themeComponentId');
create table Collaboration (
assetId varchar(22) not null primary key,
postGroupId varchar(22) not null default '2',
moderateGroupId varchar(22) not null default '4',
moderatePosts int not null default 0,
karmaPerPost int not null default 0,
collaborationTemplateId varchar(22) not null,
threadTemplateId varchar(22) not null,
postTemplateId varchar(22) not null,
postFormTemplateId varchar(22) not null,
postPreviewTemplateId varchar(22) not null,
searchTemplateId varchar(22) not null,
notificationTemplateId varchar(22) not null,
sortBy varchar(35) not null default 'dateUpdated',
sortOrder varchar(4) not null default 'desc',
usePreview int not null default 1,
addEditStampToPosts int not null default 0,
editTimeout int not null default 3600,
attachmentsPerPost int not null default 0,
allowRichEdit int not null default 1,
filterCode varchar(30) not null default 'javascript',
useContentFilter int not null default 1,
threads int not null default 0,
views int not null default 0,
replies int not null default 0,
rating int not null default 0,
lastPostId varchar(22),
lastPostDate bigint,
archiveAfter int not null default 31536000,
postsPerPage int not null default 10,
threadsPerPage int not null default 30,
subscriptionGroupId varchar(22)
);
create table Thread (
assetId varchar(22) not null primary key,
views int not null default 0,
replies int not null default 0,
lastPostId varchar(22) not null default 0,
lastPostDate bigint,
isLocked int not null default 0,
isSticky int not null default 0,
status varchar(30) not null default 'approved',
rating int not null default 0
);
create table Post (
assetId varchar(22) not null primary key,
threadId varchar(22) not null,
dateSubmitted bigint,
dateUpdated bigint,
username varchar(30),
content mediumtext,
status varchar(30) not null default 'approved',
views int not null default 0,
contentType varchar(35) not null default 'mixed',
userDefined1 text,
userDefined2 text,
userDefined3 text,
userDefined4 text,
userDefined5 text,
rating int not null default 0
);
create table Post_rating (
assetId varchar(22) not null,
userId varchar(22) not null,
ipAddress varchar(15) not null,
dateOfRating bigint,
rating int not null default 0
);
create table Post_read (
postId varchar(22) not null,
threadId varchar(22) not null,
userId varchar(22) not null,
readDate bigint
);

1129
lib/WebGUI/Asset/Post.pm Normal file

File diff suppressed because it is too large Load diff

1038
lib/WebGUI/Asset/Thread.pm Normal file

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 2 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 457 B

After

Width:  |  Height:  |  Size: 457 B

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 680 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB