File: 20040729.sql

package info (click to toggle)
fusionforge 5.3.2%2B20141104-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 60,472 kB
  • sloc: php: 271,846; sql: 36,817; python: 14,575; perl: 6,406; sh: 5,980; xml: 4,294; pascal: 1,411; makefile: 911; cpp: 52; awk: 27
file content (19 lines) | stat: -rw-r--r-- 666 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--
--
--	WARNING - modifying on 10-22-2004 since the 0729 version was incomplete
--
--
-- Christian Bayle, finally renaming 0729 in 1022
-- Insert record in plugins table only if it doesn't already exists


INSERT INTO plugins (plugin_name,plugin_desc) (SELECT 'scmcvs','CVS Plugin' WHERE (SELECT count(*) FROM plugins WHERE plugin_name ='scmcvs')=0) ;

-- Subscribe groups that use SCM to scmcvs plugin
DELETE FROM group_plugin
	WHERE plugin_id=(SELECT plugin_id FROM plugins WHERE plugin_name='scmcvs');

INSERT INTO group_plugin (group_id,plugin_id)
	(SELECT group_id,(SELECT plugin_id FROM plugins WHERE plugin_name='scmcvs')
	FROM groups
	WHERE status != 'P');