Revert "adding directory table to sql scripts"

This reverts commit a7e0ef30fa8a061920c22e4cda6e6e92e83b7a92.
This commit is contained in:
Ezequiel Bergamaschi
2014-01-21 01:46:04 -03:00
committed by Ezequiel Bergamaschi
parent f4fb008f1b
commit 2aa68c3d4b
4 changed files with 4 additions and 53 deletions

View File

@@ -28,19 +28,6 @@ CREATE TABLE USER (
)
CHARACTER SET utf8;
CREATE TABLE DIRECTORY (
id INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(255)
CHARACTER SET utf8 NOT NULL,
description VARCHAR(255)
CHARACTER SET utf8 NOT NULL,
creator_id INTEGER NOT NULL,
FOREIGN KEY (creator_id) REFERENCES USER (colaborator_id)
ON DELETE CASCADE
ON UPDATE NO ACTION
)
CHARACTER SET utf8;
CREATE TABLE MINDMAP (
id INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT,
title VARCHAR(255)
@@ -55,9 +42,7 @@ CREATE TABLE MINDMAP (
tags VARCHAR(1014)
CHARACTER SET utf8,
last_editor_id INTEGER NOT NULL,
directory_id INTEGER NOT NULL,
FOREIGN KEY (creator_id) REFERENCES USER (colaborator_id),
FOREIGN KEY (directory_id) REFERENCES DIRECTORY (id)
FOREIGN KEY (creator_id) REFERENCES USER (colaborator_id)
ON DELETE CASCADE
ON UPDATE NO ACTION
)