allow longer author names, db update.

This commit is contained in:
Garvin Hicking 2007-01-12 08:13:36 +00:00
parent 3847f10cd5
commit 5b55ba0939
6 changed files with 12 additions and 2 deletions

View File

@ -3,6 +3,8 @@
Version 1.2 ()
------------------------------------------------------------------------
* Upgraded DB-scheme to allow longer author usernames
* Improved Spamblock plugin to allow filtering email addresses
(Boris)

View File

@ -31,7 +31,7 @@ if (!defined('IN_serendipity')) {
include(S9Y_INCLUDE_PATH . 'include/compat.inc.php');
// The version string
$serendipity['version'] = '1.2-alpha1';
$serendipity['version'] = '1.2-alpha2';
// Setting this to 'false' will enable debugging output. All alpa/beta/cvs snapshot versions will emit debug information by default. To increase the debug level (to enable Smarty debugging), set this flag to 'debug'.
$serendipity['production'] = (preg_match('@\-(alpha|beta|cvs)@', $serendipity['version']) ? false : true);

View File

@ -13,7 +13,7 @@
create table {PREFIX}authors (
realname varchar(255) NOT NULL default '',
username varchar(20) default null,
username varchar(32) default null,
password varchar(32) default null,
authorid {AUTOINCREMENT} {PRIMARY},
mail_comments int(1) default '1',

View File

@ -0,0 +1 @@
ALTER TABLE {PREFIX}authors CHANGE username username VARCHAR(32) NOT NULL;

View File

@ -0,0 +1,7 @@
ALTER TABLE {PREFIX}authors ADD COLUMN oldusername varchar(32);
UPDATE {PREFIX}authors SET oldusername = username;
ALTER TABLE {PREFIX}authors DROP username;
ALTER TABLE {PREFIX}authors ADD COLUMN username varchar(32);
UPDATE {PREFIX}authors SET username = oldusername;
ALTER TABLE {PREFIX}authors DROP COLUMN oldusername;