File: 20010112.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 (20 lines) | stat: -rw-r--r-- 820 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
-- by: pfalcon
-- purpose: add default due periods (in sec) for tools
--30*24*60*60,
--0*24*60*60,
--15*24*60*60

ALTER TABLE groups ADD COLUMN bug_due_period int;
UPDATE groups SET bug_due_period=(30*24*60*60);
ALTER TABLE groups ALTER COLUMN bug_due_period SET NOT NULL;
ALTER TABLE groups ALTER COLUMN bug_due_period SET DEFAULT 2592000;

ALTER TABLE groups ADD COLUMN patch_due_period int;
UPDATE groups SET patch_due_period=(0*24*60*60);
ALTER TABLE groups ALTER COLUMN patch_due_period SET NOT NULL;
ALTER TABLE groups ALTER COLUMN patch_due_period SET DEFAULT 5184000;

ALTER TABLE groups ADD COLUMN support_due_period int;
UPDATE groups SET support_due_period=(15*24*60*60);
ALTER TABLE groups ALTER COLUMN support_due_period SET NOT NULL;
ALTER TABLE groups ALTER COLUMN support_due_period SET DEFAULT 1296000;