diff --git a/mysql/tables/llx_surveys_answers.sql b/mysql/tables/llx_surveys_answers.sql index 6b81110f791..b286230599f 100644 --- a/mysql/tables/llx_surveys_answers.sql +++ b/mysql/tables/llx_surveys_answers.sql @@ -16,8 +16,6 @@ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- -- $Id$ --- $Source$ --- -- =========================================================================== CREATE TABLE llx_surveys_answers ( diff --git a/mysql/tables/llx_surveys_answers_summary.key.sql b/mysql/tables/llx_surveys_answers_summary.key.sql new file mode 100644 index 00000000000..f0174e6a54f --- /dev/null +++ b/mysql/tables/llx_surveys_answers_summary.key.sql @@ -0,0 +1,21 @@ +-- ============================================================================ +-- Copyright (C) 2007 Laurent Destailleur +-- +-- This program is free software; you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as published by +-- the Free Software Foundation; either version 2 of the License, or +-- (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +-- +-- $Id$ +-- =========================================================================== + + diff --git a/mysql/tables/llx_surveys_answers_summary.sql b/mysql/tables/llx_surveys_answers_summary.sql index 0e5fc6f84a2..58c93dffad2 100644 --- a/mysql/tables/llx_surveys_answers_summary.sql +++ b/mysql/tables/llx_surveys_answers_summary.sql @@ -16,12 +16,10 @@ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- -- $Id$ --- $Source$ --- -- =========================================================================== CREATE TABLE llx_surveys_answers_summary ( - fk_question integer NOT NULL, + fk_question integer PRIMARY KEY, nb_rep1 decimal(10,0) NOT NULL default '0', nb_rep2 decimal(10,0) default NULL, nb_rep3 decimal(10,0) default NULL, diff --git a/mysql/tables/llx_surveys_questions.sql b/mysql/tables/llx_surveys_questions.sql index 556af54d386..9a9214eec66 100644 --- a/mysql/tables/llx_surveys_questions.sql +++ b/mysql/tables/llx_surveys_questions.sql @@ -16,8 +16,6 @@ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- -- $Id$ --- $Source$ --- -- =========================================================================== CREATE TABLE llx_surveys_questions ( diff --git a/mysql/tables/llx_user.sql b/mysql/tables/llx_user.sql index e5c73b4ee88..d39b53a4702 100644 --- a/mysql/tables/llx_user.sql +++ b/mysql/tables/llx_user.sql @@ -18,8 +18,6 @@ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- -- $Id$ --- $Source$ --- -- =========================================================================== create table llx_user