implemented front page content management, finally wired up the user locale

and timezone default mechanism, and did some other bugfixing and stuff
This commit is contained in:
Eric J. Bowersox
2001-02-28 07:55:00 +00:00
parent 129b69973b
commit 2e455b4bdd
37 changed files with 1555 additions and 109 deletions

View File

@@ -1,4 +1,3 @@
# MySQL script for initializing the Venice database.
# Written by Eric J. Bowersox <erbo@silcom.com>
#---------------------------------------------------------------------------
@@ -39,7 +38,8 @@ CREATE TABLE globals (
old_posts_at_top INT NOT NULL,
max_search_page INT NOT NULL,
max_sig_mbr_page INT NOT NULL,
max_conf_mbr_page INT NOT NULL
max_conf_mbr_page INT NOT NULL,
fp_posts INT NOT NULL
);
# The audit records table. Most "major" events add a record to this table.
@@ -87,7 +87,7 @@ CREATE TABLE users (
CREATE TABLE userprefs (
uid INT NOT NULL PRIMARY KEY,
tzid VARCHAR(64) DEFAULT 'UTC',
localeid VARCHAR(64) DEFAULT 'en-US-'
localeid VARCHAR(64) DEFAULT 'en_US'
);
# Indicates what the top-level "sidebox" configuration is for any given user.
@@ -377,6 +377,7 @@ CREATE TABLE postattach (
datalen INT,
filename VARCHAR(255),
mimetype VARCHAR(128),
stgmethod SMALLINT DEFAULT 0,
data MEDIUMBLOB
);
@@ -387,6 +388,15 @@ CREATE TABLE postdogear (
PRIMARY KEY (uid, postid)
);
# "Front page" publishing table.
CREATE TABLE postpublish (
sigid INT NOT NULL,
postid BIGINT NOT NULL PRIMARY KEY,
by_uid INT NOT NULL,
on_date DATETIME NOT NULL,
INDEX display_order (on_date, postid)
);
##############################################################################
# Set table access rights
##############################################################################
@@ -409,6 +419,7 @@ GRANT INSERT, DELETE, UPDATE, SELECT ON venice.*
# Types of audit records. This MUST be kept in sync with the constant definitions in
# com.silverwrist.venice.security.Audit!!!!
INSERT INTO refaudit (type, descr) VALUES
(1, 'Publish Message to Front Page'),
(101, 'Login OK'),
(102, 'Login Failure'),
(103, 'Account Created'),
@@ -1312,8 +1323,9 @@ INSERT INTO refsigftr (ftr_code, is_default, is_locked, is_hidden, require_read,
##############################################################################
# Initialize the system globals table.
INSERT INTO globals (posts_per_page, old_posts_at_top, max_search_page, max_sig_mbr_page, max_conf_mbr_page)
VALUES (20, 2, 20, 50, 50);
INSERT INTO globals (posts_per_page, old_posts_at_top, max_search_page, max_sig_mbr_page, max_conf_mbr_page,
fp_posts)
VALUES (20, 2, 20, 50, 50, 10);
# Add the 'Anonymous Honyak' user to the users table.
# (Do 'SELECT * FROM users WHERE is_anon = 1' to retrieve the AC user details.)