head	1.1;
access;
symbols;
locks; strict;
comment	@# @;


1.1
date	2001.07.05.22.21.40;	author leonardr;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Licenses are now contained in a database-managed table rather than in a custom Java class (yay!)
@
text
@drop table if exists xxxx_POPULATE_LICENSE;
create table xxxx_POPULATE_LICENSE
(
    PROJECT_TYPE VARCHAR(10) NOT NULL,
    LICENSE_NAME VARCHAR (99) NOT NULL,
    LICENSE_DESCRIPTION MEDIUMTEXT
);

INSERT INTO xxxx_POPULATE_LICENSE
 (PROJECT_TYPE, LICENSE_NAME, LICENSE_DESCRIPTION)
values
           ("domain", "Apache License", "http://www.apache.org/LICENSE-1.0")
         , ("domain", "BSD License", 
                      "http://opensource.org/licenses/bsd-license.html")
         , ("domain", "GNU GPL", "http://www.gnu.org/copyleft/gpl.html")
         , ("domain", "GNU LGPL", "http://www.gnu.org/copyleft/lesser.html")
         , ("domain", "Proprietary", "Hands off!")
;

insert into HELM_LICENSE (PROJECT_ID, NAME, DESCRIPTION)
 select PROJECT_ID, LICENSE_NAME, LICENSE_DESCRIPTION 
  from HELM_PROJECT, xxxx_POPULATE_LICENSE
  where HELM_PROJECT.TYPE=xxxx_POPULATE_LICENSE.PROJECT_TYPE;

drop table xxxx_POPULATE_LICENSE;@
