From 68e5a64c9f491f414d90997f9405a94a4a21eee5 Mon Sep 17 00:00:00 2001 From: SJ Date: Mon, 8 Oct 2012 22:06:03 +0200 Subject: [PATCH] updated the folder table scheme --- util/db-mysql.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/db-mysql.sql b/util/db-mysql.sql index eff61ca8..c5185fe6 100644 --- a/util/db-mysql.sql +++ b/util/db-mysql.sql @@ -244,7 +244,8 @@ create table if not exists `group_email` ( create table if not exists `folder` ( `id` int not null auto_increment, `parent_id` int default 0, - `name` char(64) not null unique, + `name` char(64) not null, + unique(`parent_id`, `name`), primary key (`id`) ) Engine=InnoDB;