allow longer author names, db update.
This commit is contained in:
parent
3847f10cd5
commit
5b55ba0939
@ -3,6 +3,8 @@
|
||||
Version 1.2 ()
|
||||
------------------------------------------------------------------------
|
||||
|
||||
* Upgraded DB-scheme to allow longer author usernames
|
||||
|
||||
* Improved Spamblock plugin to allow filtering email addresses
|
||||
(Boris)
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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',
|
||||
|
1
sql/db_update_1.2-alpha1_1.2_alpha2_mysql.sql
Normal file
1
sql/db_update_1.2-alpha1_1.2_alpha2_mysql.sql
Normal file
@ -0,0 +1 @@
|
||||
ALTER TABLE {PREFIX}authors CHANGE username username VARCHAR(32) NOT NULL;
|
7
sql/db_update_1.2-alpha1_1.2_alpha2_postgres.sql
Normal file
7
sql/db_update_1.2-alpha1_1.2_alpha2_postgres.sql
Normal 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;
|
0
sql/db_update_1.2-alpha1_1.2_alpha2_sqlite.sql
Normal file
0
sql/db_update_1.2-alpha1_1.2_alpha2_sqlite.sql
Normal file
Loading…
x
Reference in New Issue
Block a user