36 lines
1.4 KiB
SQL
Executable File
36 lines
1.4 KiB
SQL
Executable File
--
|
|
-- Copyright (C) 2003-2004 Red Hat Inc. All Rights Reserved.
|
|
--
|
|
-- This library is free software; you can redistribute it and/or
|
|
-- modify it under the terms of the GNU Lesser General Public License
|
|
-- as published by the Free Software Foundation; either version 2.1 of
|
|
-- the License, or (at your option) any later version.
|
|
--
|
|
-- This library 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
|
|
-- Lesser General Public License for more details.
|
|
--
|
|
-- You should have received a copy of the GNU Lesser General Public
|
|
-- License along with this library; if not, write to the Free Software
|
|
-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
--
|
|
-- $Id: oracle-se-upgrade-5.2.0-5.2.1.sql 287 2005-02-22 00:29:02Z sskracic $
|
|
-- $DateTime: 2004/08/17 23:26:27 $
|
|
|
|
alter table ss_surveys add (responses_public_p integer default(1) not null,
|
|
quiz_type varchar(50) default 'knowledge_test' not null check (quiz_type in ('knowledge_test','personal_assessment')));
|
|
|
|
-- Create a new table to hold the answers to questions
|
|
|
|
create table ss_correct_answers (
|
|
label_id integer not null references bebop_components,
|
|
widget_id integer not null references bebop_components,
|
|
value varchar(4000)
|
|
);
|
|
|
|
|
|
-- Add the column score to the responses
|
|
alter table ss_responses add (score integer default '0' not null);
|
|
|