File: 20021216.sql

package info (click to toggle)
gforge 3.1-31sarge5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 9,148 kB
  • ctags: 11,865
  • sloc: sql: 27,860; php: 25,574; perl: 7,124; xml: 3,152; sh: 2,586; ansic: 315; makefile: 143
file content (14 lines) | stat: -rw-r--r-- 520 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--
-- If the theme with theme_id=1 exits it is copied at the end of the list
--
INSERT INTO themes (dirname, fullname) SELECT dirname,fullname FROM themes where theme_id=1;
DELETE FROM themes WHERE theme_id=1;
INSERT INTO themes (theme_id,dirname, fullname) VALUES (1,'gforge', 'Default Theme');

ALTER TABLE theme_prefs
	ADD CONSTRAINT themeprefs_userid FOREIGN KEY (user_id)
	REFERENCES users(user_id);

ALTER TABLE theme_prefs
	ADD CONSTRAINT themeprefs_themeid FOREIGN KEY (user_theme)
	REFERENCES themes(theme_id);