File: 20021124-2_theming.sql

package info (click to toggle)
gforge 4.5.14-22etch13
  • links: PTS
  • area: main
  • in suites: etch
  • size: 13,004 kB
  • ctags: 11,918
  • sloc: php: 36,047; sql: 29,050; sh: 10,538; perl: 6,496; xml: 3,810; makefile: 341; python: 263; ansic: 256
file content (37 lines) | stat: -rw-r--r-- 1,682 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
drop table theme_prefs;
drop table themes;
--
--      Re-add themes table, which I hastily dropped in 3pre2
--
CREATE TABLE themes (
theme_id SERIAL UNIQUE,
dirname character varying(80),
fullname character varying(80)
);

CREATE TABLE theme_prefs (
user_id integer DEFAULT '0' NOT NULL,
user_theme integer DEFAULT '0' NOT NULL,
body_font character(80) DEFAULT '',
body_size character(5) DEFAULT '',
titlebar_font character(80) DEFAULT '',
titlebar_size character(5) DEFAULT '',
color_titlebar_back character(7) DEFAULT '',
color_ltback1 character(7) DEFAULT '',
PRIMARY KEY (user_id)
);
CREATE INDEX themeprefs_userid ON theme_prefs(user_id);

--INSERT INTO themes (dirname, fullname) VALUES ('default', 'Default Theme');
--These themes have to be converted to new Layout.class
--INSERT INTO themes (dirname, fullname) VALUES ('savannah_codex', 'Savannah CodeX');
--INSERT INTO themes (dirname, fullname) VALUES ('savannah_forest', 'Savannah Forest');
--INSERT INTO themes (dirname, fullname) VALUES ('savannah_reverse', 'Savannah Reverse');
--INSERT INTO themes (dirname, fullname) VALUES ('savannah_sad', 'Savannah Sad');
--INSERT INTO themes (dirname, fullname) VALUES ('savannah_savannah', 'Savannah Original');
--INSERT INTO themes (dirname, fullname) VALUES ('savannah_slashd', 'Savannah SlashDot');
--INSERT INTO themes (dirname, fullname) VALUES ('savannah_startrek', 'Savannah StarTrek');
--INSERT INTO themes (dirname, fullname) VALUES ('savannah_transparent', 'Savannah Transparent');
--INSERT INTO themes (dirname, fullname) VALUES ('savannah_water', 'Savannah Water');
--INSERT INTO themes (dirname, fullname) VALUES ('savannah_www.gnu.org', 'Savannah www.gnu.org');