mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-26 15:54:55 +01:00
Fix SQL on creation.
This commit is contained in:
parent
853aa0ad5c
commit
5c94291b06
@ -35,7 +35,8 @@ CREATE TABLE MINDMAP_HISTORY
|
|||||||
xml LONGVARBINARY NOT NULL,
|
xml LONGVARBINARY NOT NULL,
|
||||||
mindmap_id INTEGER NOT NULL,
|
mindmap_id INTEGER NOT NULL,
|
||||||
creation_date DATETIME,
|
creation_date DATETIME,
|
||||||
editor_id INTEGER NOT NULL);
|
editor_id INTEGER NOT NULL,
|
||||||
|
FOREIGN KEY(mindmap_id) REFERENCES MINDMAP(id));
|
||||||
|
|
||||||
CREATE TABLE COLLABORATION_PROPERTIES
|
CREATE TABLE COLLABORATION_PROPERTIES
|
||||||
(id INTEGER NOT NULL IDENTITY,
|
(id INTEGER NOT NULL IDENTITY,
|
||||||
|
@ -10,9 +10,9 @@ colaborator_id INTEGER NOT NULL,
|
|||||||
firstname varchar(255) CHARACTER SET utf8 NOT NULL,
|
firstname varchar(255) CHARACTER SET utf8 NOT NULL,
|
||||||
lastname varchar(255) CHARACTER SET utf8 NOT NULL,
|
lastname varchar(255) CHARACTER SET utf8 NOT NULL,
|
||||||
password varchar(255) CHARACTER SET utf8 NOT NULL,
|
password varchar(255) CHARACTER SET utf8 NOT NULL,
|
||||||
activationCode BIGINT(20) NOT NULL,
|
activation_code BIGINT(20) NOT NULL,
|
||||||
activation_date date,
|
activation_date date,
|
||||||
allowSendEmail char(1) CHARACTER SET utf8 NOT NULL default 0,
|
allow_send_email char(1) CHARACTER SET utf8 NOT NULL default 0,
|
||||||
locale varchar(5),
|
locale varchar(5),
|
||||||
FOREIGN KEY(colaborator_id) REFERENCES COLLABORATOR(id) ON DELETE CASCADE ON UPDATE NO ACTION
|
FOREIGN KEY(colaborator_id) REFERENCES COLLABORATOR(id) ON DELETE CASCADE ON UPDATE NO ACTION
|
||||||
) CHARACTER SET utf8 ;
|
) CHARACTER SET utf8 ;
|
||||||
@ -37,7 +37,8 @@ CREATE TABLE MINDMAP_HISTORY
|
|||||||
xml blob NOT NULL,
|
xml blob NOT NULL,
|
||||||
mindmap_id INTEGER NOT NULL,
|
mindmap_id INTEGER NOT NULL,
|
||||||
creation_date datetime,
|
creation_date datetime,
|
||||||
editor_id INTEGER NOT NULL
|
editor_id INTEGER NOT NULL,
|
||||||
|
FOREIGN KEY(mindmap_id) REFERENCES MINDMAP(id) ON DELETE CASCADE ON UPDATE NO ACTION
|
||||||
) CHARACTER SET utf8 ;
|
) CHARACTER SET utf8 ;
|
||||||
|
|
||||||
CREATE TABLE COLLABORATION_PROPERTIES(
|
CREATE TABLE COLLABORATION_PROPERTIES(
|
||||||
|
Loading…
Reference in New Issue
Block a user