Index: openacs-4/contrib/packages/simulation/sql/postgresql/simulation-content-types-create.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/simulation/sql/postgresql/Attic/simulation-content-types-create.sql,v diff -u -r1.3 -r1.4 --- openacs-4/contrib/packages/simulation/sql/postgresql/simulation-content-types-create.sql 17 Oct 2003 09:55:53 -0000 1.3 +++ openacs-4/contrib/packages/simulation/sql/postgresql/simulation-content-types-create.sql 24 Oct 2003 09:46:13 -0000 1.4 @@ -2,7 +2,19 @@ -- @creation-date 2003-10-14 -- @cvs-id $Id$ +-- sim_stylesheet +-- a chunk of css stylesheet +select content_type__create_type( + 'sim_stylesheet', -- content_type + 'content_revision', -- supertype + 'Stylesheet', -- pretty_name, + 'Stylesheets', -- pretty_plural + 'sim_stylesheets', -- table_name + 'stylesheet_id', -- id_column + null -- name_method +); + -- sim_character select content_type__create_type( @@ -18,16 +30,14 @@ select content_type__create_attribute( 'sim_character', -- content_type 'stylesheet', -- attribute_name - 'text', -- datatype + 'integer', -- datatype 'Stylesheet', -- pretty_name 'Stylesheets', -- pretty_plural 1, -- sort_order null, -- default_value - 'text' -- column_spec + 'integer constraint sim_char_stylesheet_fk references sim_stylesheets(stylesheet_id)' -- column_spec ); - - -- sim_prop select content_type__create_type( @@ -41,19 +51,17 @@ ); select content_type__create_attribute( - 'sim_prop', -- content_type + 'sim_prop', -- content_type 'stylesheet', -- attribute_name - 'text', -- datatype + 'integer', -- datatype 'Stylesheet', -- pretty_name 'Stylesheets', -- pretty_plural 1, -- sort_order null, -- default_value - 'text' -- column_spec + 'integer constraint sim_char_stylesheet_fk references sim_stylesheets(stylesheet_id)' -- column_spec ); - - -- sim_home select content_type__create_type( @@ -99,13 +107,14 @@ 'text' -- column_spec ); + select content_type__create_attribute( 'sim_home', -- content_type 'stylesheet', -- attribute_name - 'text', -- datatype + 'integer', -- datatype 'Stylesheet', -- pretty_name 'Stylesheets', -- pretty_plural 4, -- sort_order null, -- default_value - 'text' -- column_spec + 'integer constraint sim_char_stylesheet_fk references sim_stylesheets(stylesheet_id)' -- column_spec );