- Change MYSQL blob to mediumblob.

This commit is contained in:
Paulo Gustavo Veiga 2012-10-01 00:57:49 -03:00 committed by Paulo Gustavo Veiga
parent a179875fee
commit 04d43e62c7
3 changed files with 6 additions and 2 deletions

View File

@ -35,6 +35,7 @@ import java.util.concurrent.ConcurrentHashMap;
* Refresh page should not lost the lock.
* En caso que no sea posible grabar por que se perdio el lock, usar mensaje de error para explicar el por que...
* Mensaje modal explicando que el mapa esta siendo editado, por eso no es posible edilarlo....
* Internacionalizacion de los mensaje ...
*/
class LockManagerImpl implements LockManager {

View File

@ -21,7 +21,7 @@ CREATE TABLE MINDMAP (
id INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT,
title varchar(255) CHARACTER SET utf8 NOT NULL,
description varchar(255) CHARACTER SET utf8 NOT NULL,
xml blob NOT NULL,
xml mediumblob NOT NULL,
public BOOL not null default 0,
creation_date datetime,
edition_date datetime,
@ -34,7 +34,7 @@ FOREIGN KEY(creator_id) REFERENCES USER(colaborator_id) ON DELETE CASCADE ON UPD
CREATE TABLE MINDMAP_HISTORY
(id INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT,
xml blob NOT NULL,
xml mediumblob NOT NULL,
mindmap_id INTEGER NOT NULL,
creation_date datetime,
editor_id INTEGER NOT NULL,

View File

@ -45,3 +45,6 @@ INSERT INTO `COLLABORATOR` (`id`, `email`, `creation_date`) VALUES (8081, 'migfa
DELETE FROM `USER` where activation_date is null;
DROP TABLE FEEDBACK;
ALTER TABLE `MINDMAP` CHANGE COLUMN `XML` `XML` MEDIUMBLOB NULL DEFAULT NULL;
ALTER TABLE `MINDMAP_HISTORY` CHANGE COLUMN `XML` `XML` MEDIUMBLOB NULL DEFAULT NULL;