From 6ccd45a13a259b917ec71feaf6865840b3357b13 Mon Sep 17 00:00:00 2001 From: till <till@php.net> Date: Fri, 01 Feb 2008 20:59:52 -0500 Subject: [PATCH] * cleaned up CS (confusion in #1484467) * simplyfied lots of if-else structures --- SQL/mysql.update.sql | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/SQL/mysql.update.sql b/SQL/mysql.update.sql index ef5f07d..e904be2 100644 --- a/SQL/mysql.update.sql +++ b/SQL/mysql.update.sql @@ -1,6 +1,8 @@ -- RoundCube Webmail update script for MySQL databases -- Updates from version 0.1-beta and 0.1-beta2 +TRUNCATE TABLE `messages`; + ALTER TABLE `messages` DROP `body`, DROP INDEX `cache_key`, @@ -9,3 +11,11 @@ ALTER TABLE `identities` ADD `html_signature` tinyint(1) default 0 NOT NULL; + +ALTER TABLE `session` CHANGE `ip` `ip` VARCHAR(40) + +-- Uncomment these lines if you're using MySQL 4.1 or higher +-- ALTER TABLE `users` +-- DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci, +-- CHANGE `username` `username` VARCHAR( 128 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, +-- CHANGE `alias` `alias` VARCHAR( 128 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL; -- Gitblit v1.9.1