1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

Initial batch of colourization changes. This includes:

- schema changes for first post and last post
 - display in viewforum, search and ucp of first post
 - update of database on posting
Still outstanding
 - display of last post


git-svn-id: file:///svn/phpbb/trunk@6309 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Graham Eames
2006-08-21 15:58:48 +00:00
parent 1332ec033f
commit 4553293053
15 changed files with 38 additions and 12 deletions

View File

@@ -1285,9 +1285,11 @@ CREATE TABLE phpbb_topics (
topic_type INTEGER DEFAULT 0 NOT NULL,
topic_first_post_id INTEGER DEFAULT 0 NOT NULL,
topic_first_poster_name VARCHAR(255) DEFAULT '' NOT NULL,
topic_first_poster_colour VARCHAR(6) DEFAULT '' NOT NULL,
topic_last_post_id INTEGER DEFAULT 0 NOT NULL,
topic_last_poster_id INTEGER DEFAULT 0 NOT NULL,
topic_last_poster_name VARCHAR(255) DEFAULT '' NOT NULL,
topic_last_poster_colour VARCHAR(6) DEFAULT '' NOT NULL,
topic_last_post_time INTEGER DEFAULT 0 NOT NULL,
topic_last_view_time INTEGER DEFAULT 0 NOT NULL,
topic_moved_id INTEGER DEFAULT 0 NOT NULL,

View File

@@ -1469,9 +1469,11 @@ CREATE TABLE [phpbb_topics] (
[topic_type] [int] DEFAULT (0) NOT NULL ,
[topic_first_post_id] [int] DEFAULT (0) NOT NULL ,
[topic_first_poster_name] [varchar] (255) DEFAULT ('') NOT NULL ,
[topic_first_poster_colour] [varchar] (6) DEFAULT ('') NOT NULL ,
[topic_last_post_id] [int] DEFAULT (0) NOT NULL ,
[topic_last_poster_id] [int] DEFAULT (0) NOT NULL ,
[topic_last_poster_name] [varchar] (255) DEFAULT ('') NOT NULL ,
[topic_last_poster_colour] [varchar] (6) DEFAULT ('') NOT NULL ,
[topic_last_post_time] [int] DEFAULT (0) NOT NULL ,
[topic_last_view_time] [int] DEFAULT (0) NOT NULL ,
[topic_moved_id] [int] DEFAULT (0) NOT NULL ,

View File

@@ -886,9 +886,11 @@ CREATE TABLE phpbb_topics (
topic_type tinyint(3) DEFAULT '0' NOT NULL,
topic_first_post_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
topic_first_poster_name varchar(255) DEFAULT '' NOT NULL,
topic_first_poster_colour varchar(6) DEFAULT '' NOT NULL,
topic_last_post_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
topic_last_poster_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
topic_last_poster_name varchar(255) DEFAULT '' NOT NULL,
topic_last_poster_colour varchar(6) DEFAULT '' NOT NULL,
topic_last_post_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
topic_last_view_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
topic_moved_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,

View File

@@ -1653,9 +1653,11 @@ CREATE TABLE phpbb_topics (
topic_type number(3) DEFAULT '0' NOT NULL,
topic_first_post_id number(8) DEFAULT '0' NOT NULL,
topic_first_poster_name varchar2(255) DEFAULT '' ,
topic_first_poster_colour varchar2(6) DEFAULT '' ,
topic_last_post_id number(8) DEFAULT '0' NOT NULL,
topic_last_poster_id number(8) DEFAULT '0' NOT NULL,
topic_last_poster_name varchar2(255) DEFAULT '' ,
topic_last_poster_colour varchar2(6) DEFAULT '' ,
topic_last_post_time number(11) DEFAULT '0' NOT NULL,
topic_last_view_time number(11) DEFAULT '0' NOT NULL,
topic_moved_id number(8) DEFAULT '0' NOT NULL,

View File

@@ -1134,9 +1134,11 @@ CREATE TABLE phpbb_topics (
topic_type INT2 DEFAULT '0' NOT NULL,
topic_first_post_id INT4 DEFAULT '0' NOT NULL CHECK (topic_first_post_id >= 0),
topic_first_poster_name varchar(255) DEFAULT '' NOT NULL,
topic_first_poster_colour varchar(6) DEFAULT '' NOT NULL,
topic_last_post_id INT4 DEFAULT '0' NOT NULL CHECK (topic_last_post_id >= 0),
topic_last_poster_id INT4 DEFAULT '0' NOT NULL CHECK (topic_last_poster_id >= 0),
topic_last_poster_name varchar(255) DEFAULT '' NOT NULL,
topic_last_poster_colour varchar(6) DEFAULT '' NOT NULL,
topic_last_post_time INT4 DEFAULT '0' NOT NULL CHECK (topic_last_post_time >= 0),
topic_last_view_time INT4 DEFAULT '0' NOT NULL CHECK (topic_last_view_time >= 0),
topic_moved_id INT4 DEFAULT '0' NOT NULL CHECK (topic_moved_id >= 0),

View File

@@ -858,9 +858,11 @@ CREATE TABLE phpbb_topics (
topic_type tinyint(3) NOT NULL DEFAULT '0',
topic_first_post_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
topic_first_poster_name varchar(255) NOT NULL DEFAULT '',
topic_first_poster_colour varchar(6) NOT NULL DEFAULT '',
topic_last_post_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
topic_last_poster_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
topic_last_poster_name varchar(255) NOT NULL DEFAULT '',
topic_last_poster_colour varchar(6) NOT NULL DEFAULT '',
topic_last_post_time INTEGER UNSIGNED NOT NULL DEFAULT '0',
topic_last_view_time INTEGER UNSIGNED NOT NULL DEFAULT '0',
topic_moved_id INTEGER UNSIGNED NOT NULL DEFAULT '0',